:root {
  --navy: #243b63;
  --brown: #8c6a3b;
  --cream: #faf8f3;
  --paper: #fffdf9;
  --ink: #243b63;
  --white: #fff;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

.section-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 38px 24px 32px;
  background: var(--cream);
  text-align: center;
}

.site-brand {
  color: var(--navy);
  text-decoration: none;
}

.site-brand__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.015em;
  font-variant: small-caps;
}

.site-brand__role {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-brand__role i {
  width: 42px;
  height: 1px;
  background: var(--brown);
}

/* Roman */

.book-hero {
  background: var(--navy);
  color: var(--white);
  padding: 68px 0 72px;
}

.book-hero__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(55px, 8vw, 110px);
  align-items: center;
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
}

.book-cover {
  width: min(100%, 345px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.book-copy h1,
.author-copy h2 {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.title-rule {
  width: 42px;
  height: 2px;
  margin: 22px 0;
  background: var(--brown);
}

.book-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.book-meta li {
  margin: 5px 0;
}

.book-meta span {
  display: inline-block;
  width: 28px;
  color: #e1c28f;
}

.book-summary {
  max-width: 680px;
}

.book-summary p {
  margin: 0 0 12px;
}

/* Boutons */

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  padding: 12px 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Bouton brun : conservé pour d'autres usages */
.button--primary {
  background: var(--brown);
  color: var(--white);
}

.button--primary:hover {
  background: #795b33;
}

/* CTA principal sur fond bleu */
.button--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.button--white:hover {
  background: var(--cream);
  border-color: var(--cream);
}

/* CTA secondaire sur fond bleu */
.button--outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.button--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Auteur */

.author-section {
  background: var(--cream);
  padding: 72px 0;
}

.author-section__inner {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: clamp(50px, 7vw, 90px);
  align-items: center;
}

.author-photo-placeholder {
  aspect-ratio: 4 / 4.2;
  background: #eee8de;
  border: 1px solid #e2d8c9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: #756957;
  font-family: var(--sans);
}

.author-photo-placeholder small {
  max-width: 220px;
  margin-top: 8px;
  font-size: 0.72rem;
}

.author-copy {
  max-width: 650px;
}

.author-copy h2 {
  color: var(--navy);
  font-size: clamp(2.7rem, 4vw, 4.5rem);
}

.author-copy p {
  margin: 0 0 8px;
}

.author-location {
  margin-top: 24px !important;
  font-size: 1.05rem;
}

/* Avis */

.reviews-section {
  padding: 68px 0 78px;
  background: var(--paper);
  border-top: 1px solid rgba(36, 59, 99, 0.06);
}

.section-title {
  margin: 0;
  text-align: center;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.title-rule--center {
  margin: 15px auto 34px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.review {
  position: relative;
  margin: 0;
  padding: 34px 30px 28px 54px;
  border: 1px solid #e7e0d6;
  background: #fffefa;
  min-height: 260px;
}

.quote-mark {
  position: absolute;
  left: 18px;
  top: 20px;
  color: var(--brown);
  font-size: 3.4rem;
  line-height: 1;
}

.review p {
  margin: 0 0 22px;
  font-style: italic;
}

.stars {
  color: var(--brown);
  letter-spacing: 0.06em;
}

.review cite {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 42px 24px 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-size: 0.92rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-nav span {
  opacity: 0.45;
}

.site-footer__copyright {
  margin: 30px 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Pages génériques */

.generic-content {
  padding-block: 70px;
  max-width: 850px;
}

.generic-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
}

/* Responsive */

@media (max-width: 800px) {
  body {
    font-size: 17px;
  }

  .section-inner {
    width: min(calc(100% - 34px), var(--max));
  }

  .site-header {
    min-height: 150px;
  }

  .site-brand__name {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .book-hero {
    padding: 48px 0 55px;
  }

  .book-hero__inner,
  .author-section__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .book-cover {
    width: min(72vw, 320px);
  }

  .book-copy {
    text-align: left;
  }

  .book-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .author-section {
    padding: 55px 0;
  }

  .author-photo-placeholder {
    width: min(100%, 380px);
    margin-inline: auto;
  }

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

  .review {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
