/* Accueil : contenu centré sur la vie avec les MICI */
.home-page {
  background: #f5f7f6;
  color: #173b36;
}

.language-switcher {
  position: relative;
  margin-left: 12px;
  color: #fff;
}

.language-switcher summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  font-weight: 700;
}

.language-switcher summary::-webkit-details-marker { display: none; }

/* Globe en SVG plutot qu'en emoji : il suit la couleur du texte du header. */
.lang-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 145px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.language-options a {
  display: block;
  padding: 9px 10px;
  color: #173b36;
  text-decoration: none;
  white-space: nowrap;
}

.language-options a:hover { background: #edf4f1; }

.blog-page {
  min-height: 100vh;
  padding: 44px max(20px, 3vw) 80px;
  background: #f5f7f6;
  color: #173b36;
}

.blog-heading {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  color: #173b36;
}

.blog-heading .eyebrow { color: #176454; }
.blog-heading h1 { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.blog-heading p:last-child { line-height: 1.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1460px;
  margin: 0 auto;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 59, 54, .1);
}

.blog-card-image { display: block; height: 210px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.blog-card-meta { margin: 0 0 12px; color: #6a7a75; font-size: .82rem; }
.blog-card h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; }
.blog-card h2 a { color: #173b36; text-decoration: none; }
.blog-card-body > p:not(.blog-card-meta) { margin: 0 0 20px; line-height: 1.6; }
.blog-card-link { margin-top: auto; color: #176454; font-weight: 700; text-decoration: none; }
.blog-card-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.blog-card-link:hover span { transform: translateX(4px); }

.blog-page .pagination { margin: 38px auto 0; }
.blog-page .pagination a { border: 1px solid #c6d5cf; background: #fff; color: #176454; }
.blog-page .pagination a.active,
.blog-page .pagination a:hover { background: #176454; color: #fff; }

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: #111;
  color: #fff;
  padding: 110px 8% 80px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, .48);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../../assets/images/banque/accueil/img-base.webp') center/cover;
  filter: grayscale(1);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  padding: 30px 40px;
  background: rgba(0, 0, 0, .58);
}

.eyebrow {
  color: #b6d7c9;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1,
.home-section h2,
.home-book h2 { line-height: 1.15; }

.home-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  margin: 16px 0;
}

.home-hero .eyebrow { color: #d8a95b; }

.home-hero p:not(.eyebrow) {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
}

.home-theme-heading {
  padding: 54px 24px 24px;
  max-width: 1180px;
  margin: 0 auto;
  color: #173b36;
}

.home-theme-heading .eyebrow { color: #176454; }
.home-theme-heading h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; }

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 6px;
  background: #d8a95b;
  color: #173b36;
  font-weight: 700;
  text-decoration: none;
}

.home-button-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .8);
  color: #fff;
}

.home-section,
.home-book,
.home-disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.home-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
  background: #173b36;
  color: #fff;
}

.home-next .eyebrow { color: #d8a95b; }
.home-next h2 { margin: 8px 0 18px; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.15; }
.home-next-intro > p:not(.eyebrow) { max-width: 620px; line-height: 1.7; }
.home-next .book-note { margin-top: 28px; color: #d9e7e1; }

.home-path {
  display: grid;
  gap: 12px;
}

.home-path a,
.home-path > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.home-path a:hover { background: rgba(255, 255, 255, .09); }
.home-path span { grid-row: span 2; color: #d8a95b; font-weight: 700; }
.home-path strong { font-size: 1.05rem; }
.home-path small { color: #c8d9d3; line-height: 1.4; }

.home-section-heading { max-width: 760px; margin-bottom: 30px; }

.home-section-heading h2,
.home-book h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 8px 0 14px;
}

.home-section-heading > p:last-child,
.home-book p { line-height: 1.7; }

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

.home-topic-card,
.home-featured-card {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 59, 54, .1);
}

.home-topic-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-topic-card > div { padding: 22px; }
.home-topic-card h3 { margin-top: 0; }
.home-topic-card p { line-height: 1.6; }
.home-topic-card a { color: #176454; font-weight: 700; }

.home-book {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: none;
  padding-left: max(24px, calc((100% - 1132px) / 2));
  padding-right: max(24px, calc((100% - 1132px) / 2));
  background: #173b36;
  color: #fff;
}

.home-book .eyebrow { color: #d8a95b; }
.book-note { font-size: .92rem; color: #d9e7e1; }

.book-highlight {
  padding: 34px;
  border-left: 4px solid #d8a95b;
  background: rgba(255, 255, 255, .08);
  font-size: 1.35rem;
  line-height: 1.5;
}

.book-highlight span { display: block; margin-top: 18px; font-size: .95rem; }

.home-featured-card {
  display: flex;
  flex-direction: column;
  color: #173b36;
  text-decoration: none;
}

.home-featured-card img { width: 100%; height: 180px; object-fit: cover; }
.home-featured-card span { padding: 18px; font-weight: 700; line-height: 1.4; }

.home-disclaimer {
  padding-top: 0;
  padding-bottom: 48px;
  font-size: .9rem;
  color: #52655f;
}

@media (max-width: 768px) {
  .home-hero { min-height: 100vh; min-height: 100svh; padding: 96px 24px 48px; align-items: end; }
  .home-hero-content { padding: 24px; background: rgba(0, 0, 0, .62); }
  .home-topic-grid,
  .home-featured-grid,
  .home-book { grid-template-columns: 1fr; }
  .home-next { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; padding-bottom: 48px; }
  .home-section,
  .home-book { padding-top: 48px; padding-bottom: 48px; }

  .language-switcher { margin: 8px 20px; }
  .language-options { position: static; margin-top: 6px; }
  .blog-page { padding: 48px 18px; }
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card-image { height: 190px; }
}

/* ==========================================================================
   Ajouts 2026-09 — page livre, formulaires, refonte accueil et parcours
   ==========================================================================

   Palette : le site garde son vert/or. Tout ce qui touche au livre reprend
   la langue visuelle de la couverture (papier crème, rouge inflammatoire,
   sépia) pour que le site et le livre se reconnaissent.
   -------------------------------------------------------------------------- */

:root {
  --vert-fonce: #173b36;
  --vert: #176454;
  --or: #d8a95b;

  --livre-papier: #f2eae1;
  --livre-papier-fonce: #e6dacd;
  --livre-rouge: #b8352a;
  --livre-rouge-sombre: #8f271e;
  --livre-encre: #2c2420;
}

/* --- Accessibilité ------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--vert-fonce);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

/* --- Accueil : hauteur du hero ramenée à du raisonnable ----------------- */

.home-page .home-hero {
  min-height: 0;
  padding-top: 150px;
  padding-bottom: 90px;
}

/* --- Accueil : repères en texte, sans illustration ---------------------- */

.home-page .themes-section {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 64px;
  background: none;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin-top: 26px;
  background: #dfe7e3;
  border: 1px solid #dfe7e3;
}

.theme-card {
  background: #fff;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.theme-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--vert-fonce);
}

.theme-card p {
  margin: 0;
  line-height: 1.62;
  color: #46574f;
  font-size: .97rem;
}

/* --- Accueil : bloc livre ----------------------------------------------- */

.home-page .home-book {
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 66px;
  padding-bottom: 66px;
}

.home-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}

.home-book-text h2 {
  margin: 8px 0 4px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.home-book-subtitle {
  margin: 0 0 18px;
  font-size: 1.15rem;
  color: var(--or);
  font-style: italic;
}

.home-book-text p { line-height: 1.7; margin: 0 0 14px; }

/* --- Accueil : par où commencer ----------------------------------------- */

.home-path-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px;
}

.home-path-section .home-path {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-path-section .home-path a {
  grid-template-columns: 1fr;
  row-gap: 5px;
  border-color: #d6e0db;
  color: var(--vert-fonce);
  background: #fff;
}

.home-path-section .home-path a:hover {
  background: #f3f7f5;
  border-color: var(--vert);
}

.home-path-section .home-path small { color: #5d6d66; }

/* ==========================================================================
   Page livre
   ========================================================================== */

.book-page {
  background: var(--livre-papier);
  color: var(--livre-encre);
  padding-bottom: 10px;
}

.book-page .eyebrow { color: var(--livre-rouge); }

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 140px 24px 64px;
}

.book-cover-wrap { position: sticky; top: 110px; }

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 22px 50px rgba(44, 36, 32, .3);
}

.book-cover-note {
  margin: 12px 0 0;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a7a6d;
  text-align: center;
}

.book-hero-text h1 {
  margin: 10px 0 2px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  color: var(--livre-encre);
}

.book-subtitle {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  color: var(--livre-rouge);
}

.book-author {
  margin: 0 0 26px;
  font-size: .95rem;
  letter-spacing: .04em;
  color: #7b6b5f;
}

.book-pitch {
  font-size: 1.16rem;
  line-height: 1.65;
  margin: 0 0 26px;
  padding-left: 18px;
  border-left: 3px solid var(--livre-rouge);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 14px;
}

.book-button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 4px;
  background: var(--livre-rouge);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--livre-rouge);
}

.book-button:hover { background: var(--livre-rouge-sombre); border-color: var(--livre-rouge-sombre); }

.book-button-light {
  background: transparent;
  color: var(--livre-rouge);
}

.book-button-light:hover { background: rgba(184, 53, 42, .08); color: var(--livre-rouge-sombre); }

.book-channel-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  color: #7b6b5f;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* --- Formulaire d'alerte de sortie -------------------------------------- */

.book-notify {
  margin-top: 6px;
  padding: 26px 26px 22px;
  background: #fff;
  border: 1px solid var(--livre-papier-fonce);
  border-left: 4px solid var(--livre-rouge);
}

.book-notify-intro {
  margin: 0 0 18px;
  line-height: 1.65;
}

/* ==========================================================================
   Formulaires (contact + alerte), partagés
   ========================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-weight: 600;
  font-size: .93rem;
  color: var(--livre-encre);
}

.form-optional { font-weight: 400; color: #8a7a6d; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfc2b4;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.form-field input:focus,
.form-field textarea:focus { border-color: var(--livre-rouge); }

.form-field textarea { resize: vertical; min-height: 120px; }

/* Piège à robots : invisible à l'écran, ignoré des lecteurs d'écran. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify-form button,
.contact-form button {
  padding: 13px 26px;
  border: none;
  border-radius: 4px;
  background: var(--livre-rouge);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notify-form button:hover,
.contact-form button:hover { background: var(--livre-rouge-sombre); }

.form-legal {
  margin: 12px 0 0;
  font-size: .84rem;
  line-height: 1.5;
  color: #8a7a6d;
}

.form-success,
.form-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 4px;
  line-height: 1.55;
  font-weight: 600;
}

.form-success {
  background: #e4efe5;
  border-left: 4px solid #2f6b3c;
  color: #1f4a2a;
}

.form-error {
  background: #f8e6e2;
  border-left: 4px solid var(--livre-rouge);
  color: var(--livre-rouge-sombre);
}

/* --- Page livre : suite ------------------------------------------------- */

.book-about,
.book-contents,
.book-bridge {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.book-about { max-width: 760px; }

.book-about h2,
.book-contents h2,
.book-bridge h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--livre-encre);
}

.book-about p {
  line-height: 1.75;
  margin: 0 0 16px;
  font-size: 1.03rem;
}

.book-contents { border-top: 1px solid var(--livre-papier-fonce); padding-top: 46px; }
.book-contents-head { margin-bottom: 22px; }
.book-contents-head h2 { margin: 8px 0 0; }

.book-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: chapitre;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--livre-papier-fonce);
  border: 1px solid var(--livre-papier-fonce);
}

.book-toc li {
  counter-increment: chapitre;
  background: #fff;
  padding: 16px 20px 16px 54px;
  position: relative;
  line-height: 1.5;
}

.book-toc li::before {
  content: counter(chapitre, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--livre-rouge);
  font-weight: 700;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.book-toc-note {
  margin: 18px 0 0;
  font-size: .93rem;
  color: #7b6b5f;
  line-height: 1.6;
}

.book-bridge { border-top: 1px solid var(--livre-papier-fonce); padding-top: 46px; }

.book-bridge-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.book-bridge-links a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--livre-papier-fonce);
  border-radius: 4px;
  text-decoration: none;
  color: var(--livre-encre);
}

.book-bridge-links a:hover { border-color: var(--livre-rouge); }
.book-bridge-links strong { font-size: 1.05rem; }
.book-bridge-links small { color: #7b6b5f; line-height: 1.45; }

.book-disclaimer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 60px;
  font-size: .92rem;
  line-height: 1.65;
  color: #6d5f54;
}

/* ==========================================================================
   Page « Mon parcours »
   ========================================================================== */

.journey-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 140px 24px 40px;
}

.journey-intro { margin-bottom: 54px; }

.journey-intro h1 {
  margin: 10px 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.14;
  color: var(--vert-fonce);
}

.journey-intro-text p { line-height: 1.75; margin: 0 0 14px; }

/* Fiche de l'auteur : reste visible pendant la lecture */
.journey-aside {
  position: sticky;
  top: 130px;
  background: #fff;
  border: 1px solid #dfe7e3;
  border-radius: 6px;
  overflow: hidden;
}

.journey-portrait { margin: 0; }

.journey-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.85);
}

.journey-facts {
  margin: 0;
  padding: 6px 22px 10px;
}

.journey-facts div {
  padding: 12px 0;
  border-bottom: 1px solid #edf2ef;
}

.journey-facts div:last-child { border-bottom: 0; }

.journey-facts dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vert);
}

.journey-facts dd {
  margin: 4px 0 0;
  line-height: 1.45;
  color: var(--vert-fonce);
}

.journey-facts a { color: var(--livre-rouge); }
.journey-facts a:hover { color: var(--livre-rouge-sombre); }

.journey-step {
  padding: 34px 0;
  border-top: 1px solid #dfe7e3;
}

.journey-step h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.22;
  color: var(--vert-fonce);
}

.journey-step p { line-height: 1.75; margin: 0 0 14px; }

.journey-cta {
  margin-top: 24px;
  padding: 36px 34px;
  background: var(--livre-papier);
  border-left: 4px solid var(--livre-rouge);
}

.journey-cta .eyebrow { color: var(--livre-rouge); }
.journey-cta h2 { margin: 8px 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.85rem); color: var(--livre-encre); }
.journey-cta p { line-height: 1.7; margin: 0 0 20px; color: var(--livre-encre); }
.journey-cta .home-button { background: var(--livre-rouge); color: #fff; }
.journey-cta .home-button:hover { background: var(--livre-rouge-sombre); }

.journey-disclaimer { margin-top: 34px; font-size: .92rem; color: #5d6d66; line-height: 1.65; }

/* ==========================================================================
   Page contact
   ========================================================================== */

.contact-page {
  background: var(--livre-papier);
  color: var(--livre-encre);
  padding: 140px 0 70px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 54px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.contact-intro h1 {
  margin: 10px 0 18px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.14;
}

.contact-intro p { line-height: 1.72; margin: 0 0 14px; }

.contact-note {
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid var(--livre-rouge);
  font-size: .94rem;
}

.contact-form-wrap {
  padding: 30px 30px 26px;
  background: #fff;
  border: 1px solid var(--livre-papier-fonce);
}

/* Neutralise les anciennes règles .contact-form (largeur figée). */
.contact-page .contact-form { width: auto; max-width: none; margin: 0; }

/* ==========================================================================
   Pages légales et plan du site
   ========================================================================== */

.legal-page { padding: 140px 0 70px; }

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-inner h1 {
  margin: 10px 0 30px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--vert-fonce);
}

.legal-inner h2 {
  margin: 36px 0 12px;
  font-size: 1.28rem;
  color: var(--vert-fonce);
}

.legal-inner h3 { margin: 22px 0 8px; font-size: 1.03rem; color: var(--vert-fonce); }
.legal-inner p { line-height: 1.72; margin: 0 0 12px; }
.legal-inner ul { line-height: 1.9; padding-left: 1.2em; }
.legal-inner a { color: var(--vert); }
.legal-note { font-size: .88rem; color: #8a7a6d; font-style: italic; }

/* --- Plan du site ------------------------------------------------------- */

.sitemap-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 46px;
  align-items: start;
  margin-top: 6px;
}

.sitemap-section {
  grid-column: 1;
  margin: 0 0 26px;
}

/* La liste d'articles, la plus longue, tient la colonne de droite sur toute
   la hauteur ; les autres sections s'empilent a gauche. */
.sitemap-articles { grid-area: 1 / 2 / 3 / 3; }

.sitemap-section h2 {
  margin: 0 0 6px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--vert);
}

.sitemap-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.sitemap-nav a {
  display: block;
  padding: 9px 0;
  text-align: left;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 59, 54, .1);
}

.sitemap-nav a:hover,
.sitemap-nav a:focus-visible {
  color: var(--vert-fonce);
  text-decoration: underline;
  background: none;
}

@media (max-width: 767px) {
  .sitemap-nav { display: block; }
  .sitemap-articles { margin-top: 0; }
  /* mobile.css centre h1, h2 et h3 globalement : on realigne sur les liens. */
  .sitemap-section h2 { text-align: left; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  font-size: .93rem;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover { border-bottom-color: currentColor; }

.footer-legal { text-align: center; font-size: .87rem; opacity: .82; margin: 0; }

/* ==========================================================================
   Adaptation mobile
   ========================================================================== */

@media (max-width: 860px) {
  .book-hero,
  .contact-inner,
  .journey-page,
  .home-page .home-book {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-cover-wrap {
    position: static;
    max-width: 260px;
    margin: 0 auto;
  }

  .home-book-cover {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Fiche compacte au-dessus du texte : petit portrait rond + infos sur deux colonnes */
  .journey-aside {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
  }

  .journey-portrait img {
    width: 76px;
    aspect-ratio: 1;
    border-radius: 50%;
  }

  .journey-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 0;
  }

  .journey-facts div { padding: 0; border: 0; }
  .journey-facts div:nth-child(n+3) { grid-column: 1 / -1; }
  .journey-facts dt { font-size: .66rem; }
  .journey-facts dd { margin-top: 2px; font-size: .92rem; }

  .book-hero { padding-top: 120px; }
  .journey-page,
  .contact-page,
  .legal-page { padding-top: 110px; }

  .home-page .home-hero { padding-top: 120px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Correctifs de rendu ------------------------------------------------ */

/* Le logo est devenu un lien vers l'accueil : il ne doit pas se présenter
   comme un lien de texte (souligné, couleur de lien). */
a.logo-container,
a.logo-container:hover,
a.logo-container:visited {
  text-decoration: none;
  color: inherit;
}

a.logo-container .site-name { text-decoration: none; color: inherit; }

/* Huit chapitres : deux colonnes remplissent exactement quatre lignes,
   là où trois colonnes laissaient une case vide en fin de grille. */
.book-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 700px) {
  .book-toc { grid-template-columns: 1fr; }
}

/* Pied de page : liens puis mention légale, empilés et centrés. */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* --- Offre d'extrait gratuit -------------------------------------------- */

.book-notify-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--livre-encre);
}

.book-download {
  display: inline-block;
  margin-top: 4px;
}

/* --- Header mobile -------------------------------------------------------- */

/* Le burger est un vrai <button> : il ne doit pas hériter du style global des
   boutons (largeur 100 %, fond turquoise), qui écrasait le nom du site. */
.burger-menu,
.burger-menu:hover {
  width: auto;
  padding: 8px;
  background: transparent;
  border-radius: 6px;
}

@media (max-width: 767px) {
  /* Logo + nom à gauche, langue et burger à droite */
  .container-header {
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
  }

  .logo-container {
    flex: 1;
    min-width: 0;
  }

  .site-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switcher { margin: 0; }
  .language-switcher summary { padding: 7px 10px; }

  /* Le choix de langue s'ouvre par-dessus la page, sans pousser le header */
  .language-options { position: absolute; margin-top: 0; }
}

/* Sur mobile, la langue se choisit dans le menu burger, pas dans le header */
@media (max-width: 767px) {
  .container-header .language-switcher { display: none; }

  .mobile-lang {
    display: flex;
    border-bottom: 1px solid #ccc;
  }

  .mobile-nav .mobile-lang a {
    flex: 1;
    border-bottom: 0;
    text-align: center;
  }

  .mobile-nav .mobile-lang a + a { border-left: 1px solid #ccc; }

  .mobile-nav .mobile-lang a[aria-current] {
    font-weight: 700;
    background: rgba(255, 255, 255, .1);
  }
}

@media (min-width: 768px) {
  .mobile-lang { display: none; }
}
