:root {
  color-scheme: light;

  /*
    COULEURS PRINCIPALES
    Modifier ces variables pour changer rapidement l'identite visuelle.

    --bg : fond general du site
    --surface : fond des cartes et blocs
    --ink : texte principal
    --muted : texte secondaire
    --line : bordures fines
    --accent : couleur des boutons principaux
    --accent-dark : couleur des boutons principaux au survol
    --blue : titres et navigation
    --gold : detail decoratif
  */
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5e6673;
  --line: #ded8cd;
  --accent: #b3312f;
  --accent-dark: #85211f;
  --blue: #183a59;
  --gold: #d59d2b;

  /* REGLAGES GLOBAUX */
  --shadow: 0 24px 70px rgba(32, 33, 36, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* HEADER ET NAVIGATION */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand span {
  border-bottom: 3px solid var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  background: rgba(24, 58, 89, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* STRUCTURE GENERALE DES PAGES */
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* PAGE ACCUEIL */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0 72px;
}

.hero-content,
.page-hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--blue);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  margin-bottom: 24px;
}

h2 {
  color: var(--blue);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

h3 {
  color: var(--blue);
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* BOUTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--blue);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--blue);
}

.button.full {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

/* COUVERTURE SYMBOLIQUE DU LIVRE */
.book-panel {
  display: flex;
  justify-content: center;
}

.book-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(340px, 100%);
  aspect-ratio: 0.72;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #0f2538 65%, var(--accent));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.book-cover span {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  line-height: 1;
}

.book-cover strong {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.9;
}

.book-cover small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

/* SECTIONS ET CARTES */
.section {
  padding: 56px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.summary-card,
.download-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-grid p,
.summary-card p,
.download-box p,
.text-content p,
.clean-list {
  color: var(--muted);
}

.quote-section {
  margin: 24px 0 72px;
  padding: 34px;
  color: var(--blue);
  background: #eadfcf;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.quote-section p {
  margin: 0;
}

/* PAGES INTERIEURES */
.page-hero {
  padding: 72px 0 44px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-bottom: 72px;
}

.text-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
}

.text-content h2:not(:first-child) {
  margin-top: 34px;
}

.clean-list {
  padding-left: 20px;
}

.clean-list li + li {
  margin-top: 10px;
}

.summary-card {
  position: sticky;
  top: 18px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 72px;
}

.download-box.muted {
  background: #fdfbf8;
}

/* FOOTER */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

/* RESPONSIVE TABLETTE ET MOBILE */
@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .content-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .book-panel {
    justify-content: flex-start;
  }

  .book-cover {
    max-width: 300px;
  }

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

  .summary-card {
    position: static;
  }
}

@media (max-width: 540px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quote-section {
    padding: 24px;
  }
}

.bio-section {
  padding: 48px 0;
}

.bio-section .container {
  max-width: 900px;
  background: #f7f1e6;
  padding: 32px;
  border-radius: 14px;
  line-height: 1.7;
}

.bio-section h2 {
  margin-bottom: 20px;
  color: #2c2c2c;
}

.bio-section p {
  margin-bottom: 16px;
}

.bio-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .bio-section {
    padding: 32px 0;
  }

  .bio-section .container {
    padding: 24px;
  }
}
