/* ===== Design tokens ===== */
:root {
  --black: #121110;
  --near-black: #1a1917;
  --cream: #f6f1e6;
  --cream-dim: #ece4d3;
  --mustard: #cf9a2e;
  --mustard-light: #e0b356;
  --text-on-dark: #f6f1e6;
  --text-on-dark-dim: #cfc8b8;
  --text-on-light: #1a1917;
  --text-on-light-dim: #55524a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-on-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.1;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 0.8em;
  font-weight: 600;
}

/* ===== Language toggle ===== */
.en { display: none; }
html.lang-en .fr { display: none; }
html.lang-en .en { display: inline; }
html.lang-en .en.block { display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 1px solid currentColor;
  cursor: pointer;
}
.btn-outline { color: var(--text-on-dark); border-color: var(--mustard); }
.btn-outline:hover { background: var(--mustard); color: var(--black); }
.btn-outline-dark { color: var(--black); border-color: var(--black); background: transparent; }
.btn-outline-dark:hover { background: var(--black); color: var(--mustard); }
.btn-solid { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn-solid:hover { background: var(--mustard); border-color: var(--mustard); color: var(--black); }
.btn-solid-accent { background: var(--mustard); color: var(--black); border-color: var(--mustard); font-family: var(--sans); }
.btn-solid-accent:hover { background: var(--mustard-light); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 17, 16, 0.85);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-on-dark);
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--mustard);
  letter-spacing: 0.05em;
}
.main-nav {
  display: flex;
  gap: 1.8rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-on-dark-dim);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--mustard); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  background: none;
  border: 1px solid var(--text-on-dark-dim);
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: var(--sans);
}
.lang-toggle:hover { border-color: var(--mustard); color: var(--mustard); }
.lang-fr, .lang-en { transition: opacity 0.2s ease; }
html.lang-en .lang-fr { opacity: 0.4; }
html.lang-en .lang-en { opacity: 1; font-weight: 600; }
html:not(.lang-en) .lang-fr { opacity: 1; font-weight: 600; }
html:not(.lang-en) .lang-en { opacity: 0.4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-on-dark);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 8rem 1.5rem 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--black);
  color: var(--text-on-dark);
}
.hero-inner { max-width: 640px; }
.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--text-on-dark);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-on-dark-dim);
  max-width: 480px;
  margin: 1.2rem 0 2rem;
  font-style: italic;
  font-family: var(--serif);
}
.hero-photo {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(207,154,46,0.3);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* generic placeholder look for any image container that fails to load */
.placeholder {
  background: linear-gradient(135deg, #2a2822, #3a3730);
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder img { display: none; }
.photo-placeholder-label {
  display: none;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--mustard-light);
  text-align: center;
  padding: 0.6rem;
  letter-spacing: 0.03em;
  word-break: break-all;
}
.placeholder .photo-placeholder-label { display: block; }
.section-light .placeholder { background: linear-gradient(135deg, #e4dac2, #d8cba9); }
.section-light .photo-placeholder-label { color: #8a6d1f; }

/* ===== Sections ===== */
.section { padding: 6rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-light { background: var(--cream); color: var(--text-on-light); }
.section-dark { background: var(--black); color: var(--text-on-dark); }
.section-dark .eyebrow { color: var(--mustard); }
.section-accent { background: var(--mustard); color: var(--black); }
.section-accent .eyebrow { color: rgba(0,0,0,0.6); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p.fr, .about-text p.en { color: var(--text-on-light-dim); font-size: 1.05rem; }
.stat-row {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  padding-top: 1.5rem;
}
.stat-row li { display: flex; flex-direction: column; }
.stat-row strong { font-family: var(--serif); font-size: 1.5rem; color: var(--mustard); }
.stat-row span { font-size: 0.8rem; color: var(--text-on-light-dim); }

/* Cards / Films */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--near-black);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.card-media { aspect-ratio: 16/10; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 0.5rem;
}
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-body p.fr, .card-body p.en { color: var(--text-on-dark-dim); font-size: 0.92rem; }
.card-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--mustard-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.card-link:hover { text-decoration: underline; }

.other-credits { margin-top: 3.5rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 2rem; }
.other-credits-title { font-family: var(--sans); font-size: 0.95rem; color: var(--text-on-dark-dim); font-weight: 600; margin-bottom: 1rem; }
.other-credits ul { list-style: none; padding: 0; margin: 0; color: var(--text-on-dark-dim); font-size: 0.9rem; }
.other-credits li { padding: 0.3rem 0; }

/* Books */
.book-feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.5rem;
}
.book-cover {
  aspect-ratio: 3/4.2;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-text h3 { font-size: 1.8rem; }
.book-text p.fr, .book-text p.en { color: var(--text-on-light-dim); }
.book-quote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--mustard);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-on-light);
}
.book-feature-secondary {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.book-feature-secondary { grid-template-columns: 220px 1fr; }

/* Mentorat */
.mentorat-grid { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; }
.mentorat-photo { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; position: relative; }
.mentorat-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Timeline */
.timeline { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
}
.timeline-year { color: var(--mustard); font-size: 0.85rem; letter-spacing: 0.05em; }
.timeline-item h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.timeline-item p.fr, .timeline-item p.en { color: var(--text-on-dark-dim); font-size: 0.92rem; }

/* Content / accent section */
.content-block { max-width: 720px; }
.content-block h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.content-block p.fr, .content-block p.en { font-size: 1.05rem; }

/* DEKA */
.deka-block { max-width: 720px; }
.deka-block p.fr, .deka-block p.en { color: var(--text-on-light-dim); font-size: 1.05rem; }

/* Contact */
.contact-block { max-width: 560px; }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--text-on-dark-dim); }
.form-row input, .form-row textarea {
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.8em;
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--mustard);
}
.contact-form button { align-self: flex-start; margin-top: 0.5rem; }
.form-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: var(--mustard-light); }
.form-status.error { color: #e08a7d; }

/* Footer */
.site-footer { background: var(--black); color: var(--text-on-dark-dim); padding: 2rem 1.5rem; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-inner a { text-decoration: none; color: var(--mustard); }
.social-links { display: flex; gap: 1.1rem; align-items: center; }
.social-links a { color: var(--text-on-dark-dim); display: flex; transition: color 0.2s ease; }
.social-links a:hover { color: var(--mustard); }
.social-links svg { width: 19px; height: 19px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { flex-direction: column-reverse; text-align: center; padding-top: 7rem; }
  .hero-inner { max-width: 100%; }
  .hero-photo { width: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .book-feature { grid-template-columns: 1fr; }
  .book-cover { max-width: 260px; margin: 0 auto; }
  .timeline-item { grid-template-columns: 1fr; }
  .stat-row { flex-wrap: wrap; gap: 1.5rem; }
  .mentorat-grid { grid-template-columns: 1fr; }
  .mentorat-photo { max-width: 280px; margin: 2rem auto 0; order: -1; }
}

@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    padding: 1.5rem;
    gap: 1.2rem;
  }
}
