/* =========================================================
   GEORGES OLTRA — Site auteur
   Palette chaleureuse & spirituelle
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

/* ---------- Variables ---------- */
:root {
  --cream: #f7f1e3;
  --cream-soft: #faf6ec;
  --paper: #fdfaf2;
  --sand: #e8d8b8;
  --gold: #c8a35a;
  --gold-deep: #a07d3e;
  --terracotta: #c75d3a;
  --terracotta-deep: #9c4628;
  --brown: #4a2e1f;
  --brown-deep: #2c1810;
  --ink: #1a0f08;
  --taupe: #8b6f47;
  --shadow: rgba(74, 46, 31, 0.15);
  --shadow-deep: rgba(26, 15, 8, 0.35);

  --serif-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-body: 'Lora', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max-w: 1200px;
  --max-w-text: 720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--brown-deep);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top, rgba(200, 163, 90, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(199, 93, 58, 0.06), transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terracotta-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta); }

/* Subtle paper grain via SVG noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.25 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
.container--narrow { max-width: var(--max-w-text); }

section { padding: 6rem 0; position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif-display); font-weight: 500; line-height: 1.15; color: var(--brown-deep); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
h4 { font-size: 1.3rem; margin-bottom: .75rem; }

p { margin-bottom: 1.2rem; }
.lead { font-family: var(--serif-display); font-size: 1.4rem; font-style: italic; line-height: 1.5; color: var(--brown); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider svg { width: 24px; height: 24px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247, 241, 227, 0.85);
  border-bottom: 1px solid rgba(200, 163, 90, 0.2);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-brand {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown-deep);
  letter-spacing: 0.03em;
}
.nav-brand small { display: block; font-size: 0.65rem; font-family: var(--sans); letter-spacing: 0.3em; color: var(--gold-deep); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracotta-deep); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--terracotta);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 8rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 40%, rgba(199, 93, 58, 0.08) 100%),
    radial-gradient(circle at 70% 30%, rgba(232, 216, 184, 0.4), transparent 60%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  font-weight: 500;
  margin: 1.5rem 0;
}
.hero h1 em {
  display: block;
  color: var(--terracotta);
  font-style: italic;
  font-size: 0.85em;
  font-weight: 400;
}
.hero-subtitle {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--brown);
  max-width: 560px;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Decorative caravan silhouette */
.hero-art {
  position: absolute;
  right: -2rem; bottom: 2rem;
  width: 50%;
  max-width: 600px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-art { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
}
.btn-primary:hover { background: var(--terracotta-deep); color: var(--cream); border-color: var(--terracotta-deep); }
.btn-ghost {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--brown);
}
.btn-ghost:hover { background: var(--brown-deep); color: var(--cream); }
.btn-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-link:hover { color: var(--brown-deep); transform: translateX(2px); }

/* ---------- Book covers ---------- */
.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.1),
    0 8px 25px rgba(74, 46, 31, 0.25),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  border-radius: 2px;
  display: flex;
  align-items: stretch;
  font-family: var(--serif-display);
  transition: transform .35s ease, box-shadow .35s ease;
}
.book-cover:hover { transform: translateY(-6px) rotate(-0.5deg); box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 18px 40px rgba(74,46,31,0.35); }

.book-cover-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1rem;
  position: relative;
  z-index: 2;
}

.book-cover .book-author {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: auto;
  margin-top: 0.5rem;
}
.book-cover .book-title {
  font-size: 1.6rem;
  line-height: 1.05;
  font-weight: 600;
  text-align: center;
  margin: auto 0;
  padding: 0 0.2rem;
}
.book-cover .book-publisher {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--sans);
  text-transform: uppercase;
}

/* Cover variants */
.cover--lettre {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 38%, #d96b3a 42%, #c75d3a 75%, #9c4628 100%);
  color: var(--brown-deep);
}
.cover--lettre .book-title { color: #c75d3a; font-style: normal; margin-top: 25%; margin-bottom: auto;}
.cover--lettre .book-author { color: var(--brown-deep); }
.cover--lettre .book-publisher { color: var(--paper); }

.cover--caravane {
  background:
    linear-gradient(180deg, #f4d889 0%, #e09b4f 25%, #4a2e1f 55%, #1a0f08 100%);
  color: var(--cream);
}
.cover--caravane .book-title { color: var(--cream); margin-top: auto; margin-bottom: 18%; font-size: 1.35rem; }
.cover--caravane .book-author { color: var(--brown-deep); margin-top: 0.5rem; }
.cover--caravane .book-publisher { color: var(--cream); }
.cover--caravane .book-cover-inner::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 38%;
  height: 22%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='xMidYMid meet'><g fill='%231a0f08'><path d='M20 50 q3-8 8-10 l3-12 q1-5 5-5 q3 0 4 4 l2 8 q3-2 7 2 l1 12 z'/><path d='M50 48 q3-9 9-11 l2-13 q1-5 5-5 q3 0 5 4 l2 9 q4-2 7 2 l1 12 z'/><path d='M85 47 q3-10 10-12 l2-13 q1-5 6-5 q3 0 5 4 l2 10 q4-2 8 2 l1 12 z'/><path d='M125 48 q3-9 9-11 l2-12 q1-5 5-5 q3 0 5 4 l2 9 q4-2 7 2 l1 11 z'/></g></svg>") no-repeat center/contain;
}

.cover--ecole {
  background:
    linear-gradient(95deg, #1a0f08 0%, #1a0f08 18%, #f7f1e3 18.5%, #f7f1e3 30%, #c92e1c 30.5%, #c92e1c 100%);
  color: var(--cream);
  font-family: var(--sans);
}
.cover--ecole .book-cover-inner { padding: 2rem 1rem 1rem 35%; }
.cover--ecole .book-title { color: var(--brown-deep); font-family: var(--sans); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.25; text-align: left; margin: 0 0 1.5rem; }
.cover--ecole .book-author { color: var(--brown-deep); text-align: left; font-family: var(--serif-display); font-size: 0.95rem; margin: 0 0 1rem; }
.cover--ecole .book-meta { color: var(--brown-deep); text-align: left; font-style: italic; font-size: 0.75rem; font-family: var(--serif-display); }
.cover--ecole .book-publisher { color: var(--cream); position: absolute; bottom: 1rem; right: 1rem; transform: rotate(-90deg); transform-origin: right; padding: 0; font-size: 0.6rem; }

.cover--coeur {
  background:
    radial-gradient(circle at 50% 60%, #4a7c2a 0%, #2d5018 35%, #1a3008 70%, #0d1a04 100%);
  color: var(--cream);
}
.cover--coeur .book-title { color: var(--cream); font-size: 1.4rem; line-height: 1.1; }
.cover--coeur .book-author { color: var(--cream); }
.cover--coeur .book-publisher { color: var(--cream); opacity: 0.85; }
.cover--coeur .book-cover-inner::after {
  content: '';
  position: absolute;
  left: 25%; right: 25%; bottom: 20%;
  height: 25%;
  background: radial-gradient(circle, #6ba846 0%, #4a7c2a 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
}

/* ---------- Books grid ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem 2rem;
  margin-top: 3rem;
}
.books-grid--showcase { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4rem 2.5rem; }

.book-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}
.book-card a { display: block; }
.book-card h4 {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--brown-deep);
  font-weight: 500;
}
.book-card .book-year {
  font-family: var(--sans);
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.book-card .book-tagline {
  font-size: 0.95rem;
  color: var(--brown);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* ---------- Detail book block ---------- */
.book-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 5rem 0;
  border-bottom: 1px solid rgba(200, 163, 90, 0.25);
  align-items: start;
}
.book-detail:last-child { border-bottom: none; }
.book-detail .book-cover { max-width: 280px; }
.book-detail-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.book-detail-content .book-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.book-detail-content blockquote {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--terracotta-deep);
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.book-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.book-info-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(139, 111, 71, 0.4);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--taupe);
  letter-spacing: 0.05em;
}
.book-info-list strong { color: var(--brown); font-weight: 500; }

@media (max-width: 700px) {
  .book-detail { grid-template-columns: 1fr; gap: 2rem; }
  .book-detail .book-cover { max-width: 220px; margin: 0 auto; }
}

/* ---------- Quote block ---------- */
.quote-block {
  text-align: center;
  padding: 5rem 2rem;
  background:
    linear-gradient(to bottom, transparent, rgba(232, 216, 184, 0.3), transparent);
  margin: 3rem 0;
  position: relative;
}
.quote-block::before {
  content: '“';
  font-family: var(--serif-display);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.quote-block blockquote {
  font-family: var(--serif-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--brown-deep);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
}
.quote-block cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Pull quote ---------- */
.pull-quote {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(200, 163, 90, 0.3);
}
.pull-quote:first-child { border-top: none; }
.pull-quote-source {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-deep);
}
.pull-quote-source strong { display: block; font-style: normal; color: var(--brown-deep); font-size: 1.3rem; margin-bottom: 0.3rem; }
.pull-quote-source small { display: block; font-family: var(--sans); font-style: normal; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin-top: 0.4rem; }
.pull-quote blockquote {
  font-family: var(--serif-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--brown-deep);
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--terracotta);
}
@media (max-width: 700px) {
  .pull-quote { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Bio / Timeline ---------- */
.bio-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.bio-portrait {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, var(--sand), var(--gold) 60%, var(--gold-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 5rem;
  color: var(--brown-deep);
  box-shadow: 0 15px 40px var(--shadow-deep), inset 0 0 0 6px rgba(255,255,255,0.4);
  position: relative;
}
.bio-portrait::after {
  content: '';
  position: absolute; inset: -12px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}
@media (max-width: 700px) {
  .bio-intro { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .bio-portrait { margin: 0 auto; }
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 3rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--terracotta), var(--brown));
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 0.5rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--terracotta);
  transform: translateX(2px);
}
.timeline-item .timeline-year {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}
.timeline-item h4 {
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
}
.timeline-item p {
  margin-top: 0.4rem;
  color: var(--brown);
}

/* ---------- Sections with dark feel ---------- */
.section-dark {
  background: var(--brown-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: var(--sand); }
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(199, 93, 58, 0.2), transparent 50%);
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--sand);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(200, 163, 90, 0.2);
}
.site-footer h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer p, .site-footer a { color: var(--sand); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer .footer-brand { font-family: var(--serif-display); font-size: 1.8rem; color: var(--cream); margin-bottom: 0.5rem; font-style: italic; }
.site-footer .footer-tagline { font-style: italic; max-width: 350px; opacity: 0.85; }
.site-footer .footer-bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}
@media (max-width: 700px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 700px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; }
  .nav-brand { font-size: 1.1rem; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
}

/* ---------- Subtle animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.9s ease both; }
.fade-up-2 { animation: fadeUp 0.9s ease 0.15s both; }
.fade-up-3 { animation: fadeUp 0.9s ease 0.3s both; }
.fade-up-4 { animation: fadeUp 0.9s ease 0.45s both; }

/* ---------- Tag / pill ---------- */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-deep);
  background: rgba(200, 163, 90, 0.08);
}
