/* LibrEdit — feuille de style (direction « Plaquette ») */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #FBF8F3;
  --cream: #F1E6D3;
  --brick: #A8452F;
  --brick-dark: #8A3624;
  --band: #F1E6D3;
  --ink: #1E2228;
  --text: #2A2E34;
  --slate: #4A6380;
  --link: #3E566F;
  --rule: #D5C4AA;
  --muted: #5B5F66;
  --field: #FFFFFF;
  --shadow: rgba(30, 34, 40, 0.18);
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
strong { font-weight: 500; color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 3.4vw, 40px); }
h3 { font-size: 24px; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 600px) { .wrap { padding-inline: 20px; } }
.rule { height: 3px; background: var(--ink); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* En-tête */
.site-header { padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; }
.logo { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0 26px; font-size: 15px; letter-spacing: 0.03em; }
.menu a { color: var(--link); text-decoration: none; padding: 11px 0; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.site-header + .wrap { margin-top: 16px; }

/* Accueil */
.banner { margin-top: 28px; margin-bottom: 0; }
.banner img { width: 100%; height: clamp(170px, 27vw, 320px); object-fit: cover; object-position: 55% 50%; }
.banner figcaption { margin-top: 8px; text-align: right; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--slate); }
.hero { padding-top: 72px; padding-bottom: 72px; }
.hero-title { font-size: clamp(36px, 4.9vw, 62px); line-height: 1.08; }
.hero-title em { font-style: italic; color: var(--slate); }
.hero-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 56px; }
.hero-lead { margin: 0; flex: 999 1 420px; min-width: 0; max-width: 600px; font-size: 18px; }
.hero-img { flex: 1 1 300px; max-width: 440px; width: 100%; aspect-ratio: 7 / 3; object-fit: cover; object-position: 55% 50%; margin-top: -60px; }
@media (max-width: 900px) { .hero-img { margin-top: 0; max-width: 100%; } }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding-bottom: 80px; }
.door { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; border-top: 1px solid var(--rule); padding-top: 20px; }
.door-kicker { font-size: 13px; letter-spacing: 0.12em; color: var(--slate); }
.door-title { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1.1; }
.door-link { color: var(--link); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.door:hover .door-title { color: var(--slate); }

.band { background: var(--band); }
.band > .wrap { padding-top: 72px; padding-bottom: 72px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; }
.cover-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 28px 24px; }
.cover-grid img, .book-cover, .example img { width: 100%; aspect-ratio: 600 / 860; object-fit: cover; box-shadow: 0 6px 18px var(--shadow); }

.about { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px 72px; }
.about-side { flex: 1 1 280px; max-width: 360px; }
.about-sub { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--slate); }
.portrait { margin-top: 28px; width: 50%; max-width: 180px; aspect-ratio: 1; object-fit: cover; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text p { margin: 0; max-width: 68ch; }
.aq-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.aq-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 600px) { .aq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pages intérieures */
.page-head { padding-top: 72px; padding-bottom: 48px; }
.page-head h1 { font-size: clamp(40px, 5vw, 60px); }
.lead { margin: 20px 0 0; max-width: 680px; font-size: 19px; }
.lead-italic { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 30px); color: var(--slate); line-height: 1.25; }
.prose p { margin: 0 0 16px; max-width: 68ch; }
.prose h2 { margin: 40px 0 14px; font-size: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose-2 { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-bottom: 72px; }
.prose-2 > .prose { flex: 999 1 460px; min-width: 0; }
.prose-2 > aside { flex: 1 1 260px; max-width: 340px; }
.example h3 { margin-top: 24px; }
.example p { margin: 10px 0 0; }
.caption { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--slate); }
.aq-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.formules { margin: 0; display: grid; gap: 14px; }
.formules div { border-top: 1px solid var(--rule); padding-top: 12px; }
.formules dt { font-weight: 500; color: var(--ink); }
.formules dd { margin: 2px 0 0; }

/* Fiches livres */
.books { display: flex; flex-direction: column; padding-bottom: 72px; }
.book { display: flex; flex-wrap: wrap; gap: 28px 48px; padding: 48px 0; border-top: 1px solid var(--rule); }
.book:first-child { border-top: 0; padding-top: 8px; }
.book-cover { flex: 0 0 200px; width: 200px; height: auto; align-self: flex-start; }
@media (max-width: 600px) { .book-cover { flex-basis: 150px; width: 150px; } }
.book-body { flex: 999 1 420px; min-width: 0; max-width: 680px; }
.book-body > p, .more p { margin: 0 0 14px; }
.book-meta { color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px !important; }
.badge { font-size: 13px; letter-spacing: 0.03em; color: var(--ink); border: 1px solid var(--rule); padding: 2px 10px; border-radius: 999px; }
.book-quote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--slate); }
.book-lead { font-weight: 500; color: var(--ink); }
.book-coda { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--slate); }
.more { margin: 0 0 20px; }
.more summary { cursor: pointer; color: var(--link); font-weight: 400; padding: 8px 0; list-style-position: inside; }
.more[open] summary { margin-bottom: 10px; }
.avis-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 40px; }
.avis { margin: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
.avis blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--ink); }
.avis figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Boutons et formulaires */
.btn { font: inherit; font-weight: 400; font-size: 16px; min-height: 46px; padding: 10px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { background: var(--slate); border-color: var(--slate); }
.btn-outline { background: transparent; color: var(--ink); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.book-body a.btn { margin-top: 4px; }
.form-section > .form-note { margin-top: 16px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-section { padding-top: 56px; padding-bottom: 88px; border-top: 1px solid var(--rule); }
.form-section > p { max-width: 640px; }
.form { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 760px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide, .form .btn, .form-msg { grid-column: 1 / -1; }
.form .btn { justify-self: start; }
.field label { font-size: 15px; font-weight: 400; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-weight: 300; color: var(--text); background: var(--field); border: 1px solid var(--rule); padding: 11px 12px; min-height: 46px; border-radius: 0; }
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; grid-column: 1 / -1; }
.field.check input { min-height: 0; width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.field.check label { font-weight: 300; font-size: 15px; }
.form-note { grid-column: 1 / -1; margin: -6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 64ch; }
.form-msg { margin: 0; padding: 12px 14px; background: var(--band); color: var(--ink); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-bottom: 88px; }
.contact-card { flex: 1 1 240px; max-width: 300px; }
.contact-card .portrait { margin-top: 0; }
.contact-card p { margin: 16px 0 0; }
.cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta-row .btn { text-decoration: none; display: inline-flex; align-items: center; }
.cta-alt { margin: 0; color: var(--muted); }
.contact-cta { flex: 999 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact-cta p { margin: 0; }
.contact-cta .btn { text-decoration: none; display: inline-flex; align-items: center; }
a.btn:hover { color: var(--paper); }
.contact-grid .form { flex: 999 1 420px; margin-top: 0; }
.legal { padding-bottom: 80px; }

/* Pied de page */
.site-footer { padding-bottom: 48px; }
.footer-row { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; font-size: 15px; }
.footer-row p { margin: 0; }
.footer-name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
.footer-sign { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--slate); margin-bottom: 6px !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; color: var(--muted); }

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

/* ===== Direction v2 ===== */
.btn { background: var(--brick); border-color: var(--brick); color: #FFF; }
.btn:hover, a.btn:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #FFF; }
.btn-outline { background: transparent; color: var(--brick); border-color: var(--brick); }
.btn-outline:hover { background: var(--brick); color: #FFF; border-color: var(--brick); }
.door-link, .door-kicker { color: var(--brick); }
.door:hover .door-title { color: var(--brick); }

.hero2 { margin-top: 40px; }
.hero2-grid { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); align-items: start; }
.hero2-panel { grid-column: 1; grid-row: 1; background: var(--cream); padding: 64px 112px 72px 64px; margin-left: 32px; position: relative; z-index: 1; }
.hero2-panel h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; }
.hero2-panel h1 em { font-style: italic; color: var(--slate); }
.hero2-panel .lead { margin-top: 22px; }
.hero2-text { margin: 28px 0 0; font-size: 18px; max-width: 34em; }
.hero2-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero2-fig { grid-column: 2; grid-row: 1; margin: -24px 0 0 -88px; position: relative; z-index: 2; }
.hero2-fig img { width: 100%; box-shadow: 0 18px 40px rgba(30, 34, 40, 0.18); }
.hero2-fig figcaption { margin-top: 10px; text-align: right; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--slate); }
.hero2-fig--wide img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 22%; }
.hero2-fig--cover { margin-left: -40px; }
.hero2-fig--cover img { width: auto; max-width: 300px; aspect-ratio: 600 / 860; object-fit: cover; }
.hero2-fig--aq { margin-left: -40px; }
.hero2-fig--aq img { width: auto; max-width: 340px; }
.hero2--plain .hero2-grid { grid-template-columns: minmax(0, 1fr); max-width: 1184px; }
.hero2--plain .hero2-panel { margin: 0; padding: 56px 32px 60px; }
.hero2--plain + * , .hero2 + .prose-2, .hero2 + .contact-grid { margin-top: 64px; }
@media (max-width: 900px) {
  .hero2-grid, .hero2--plain .hero2-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .hero2-panel, .hero2--plain .hero2-panel { margin: 0; padding: 44px 20px 56px; }
  .hero2--home .hero2-panel { padding-bottom: 120px; }
  .hero2-fig { grid-column: 1; grid-row: 2; margin: -96px 20px 0; }
  .hero2-fig--cover, .hero2-fig--aq { margin: -40px 20px 0; }
  .hero2-fig--cover img, .hero2-fig--aq img { max-width: 240px; }
}
.doors2 { padding-top: 96px; }
.band { background: var(--cream); }
.about .portrait { width: 60%; max-width: 180px; }
.footer-band { background: var(--ink); color: #E9E3D8; margin-top: 0; }
.footer-band .footer-name { color: #FBF8F3; }
.footer-band .footer-sign { color: #C9D3DF; }
.footer-band a { color: #E9E3D8; }
.footer-band a:hover { color: #FFFFFF; }
.footer-band .footer-links { color: #BDB6AA; }
.footer-band .site-footer { padding-top: 40px; }
.footer-band .rule { display: none; }

/* Romans : fiches alternées */
.book-band { background: var(--paper); }
.book-band--alt { background: var(--cream); }
.book-band .book { border-top: 0; padding: 64px 0; }
.book-band:first-of-type .book { padding-top: 64px; }
.book--rev { flex-direction: row-reverse; }
.book--rev { justify-content: space-between; }
@media (max-width: 700px) { .book--rev { flex-direction: row; } .book--rev .book-body { margin-left: 0; } }
.avis-section { padding-top: 80px; padding-bottom: 80px; }
.form-band { padding-top: 64px; padding-bottom: 72px; }
.form-band > p { max-width: 640px; }
.form-band > .form-note { margin-top: 16px; }
.gallery { padding-bottom: 64px; }
.aq-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; margin-top: 0; }
.legal { padding-top: 56px; }

/* Accueil compact : aquarelle réduite, trois entrées visibles dès l'arrivée */
.hero2--home { margin-top: 28px; }
.hero2--home .hero2-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr); }
.hero2--home .hero2-panel { padding: 44px 88px 48px 56px; }
.hero2--home .hero2-panel h1 { font-size: clamp(30px, 3.1vw, 44px); }
.hero2--home .hero2-text { margin-top: 18px; font-size: 17px; max-width: 40em; }
.hero2--home .hero2-actions { margin-top: 22px; }
.hero2--home .hero2-fig { margin: 28px 0 0 -64px; }
.hero2--home .hero2-fig--wide img { aspect-ratio: 4 / 3; max-width: 340px; }
.hero2--home + .doors2 { padding-top: 44px; }
.hero2--home + .doors2 .door { gap: 6px; padding-top: 16px; }
@media (max-width: 900px) {
  .hero2--home .hero2-panel { padding: 36px 20px 96px; }
  .hero2--home .hero2-fig { margin: -72px 20px 0; }
  .hero2--home .hero2-fig--wide img { max-width: 100%; }
}
.hero2--home { margin-top: 20px; }
.hero2--home .hero2-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.3fr); }
.hero2--home .hero2-panel { padding: 36px 72px 40px 56px; }
.hero2--home .hero2-fig { margin: 36px 0 0 -48px; }
.hero2--home .hero2-fig--wide img { max-width: 270px; }
.hero2--home .hero2-fig figcaption { font-size: 14px; }
.hero2--home + .doors2 { padding-top: 32px; }
.site-header { padding-top: 18px; }
.site-header + .wrap { margin-top: 10px; }
.hero2--home .hero2-panel h1 { line-height: 1.04; }
.hero2--home + .doors2 { padding-top: 26px; }

.hero2-fig-btn { margin-top: 14px; width: 100%; max-width: 270px; justify-content: center; text-align: center; }
@media (max-width: 900px) { .hero2-fig-btn { max-width: none; } }

.logo { font-size: 38px; line-height: 1.1; }
@media (max-width: 600px) { .logo { font-size: 32px; } }

.hero2-fig-btn { width: auto; max-width: none; min-height: 40px; padding: 7px 18px; font-size: 15px; display: flex; margin-left: auto; margin-right: 0; width: fit-content; }
.hero2--home .hero2-fig { display: flex; flex-direction: column; max-width: 270px; }
@media (max-width: 900px) { .hero2--home .hero2-fig { max-width: none; } }

/* Accueil : l'espace entre les blocs grandit avec la hauteur de l'écran */
.hero2--home { margin-top: clamp(20px, calc(20px + (100vh - 650px) * 0.06), 44px); }
.hero2--home .hero2-panel { padding-top: clamp(36px, calc(36px + (100vh - 650px) * 0.06), 60px); padding-bottom: clamp(40px, calc(40px + (100vh - 650px) * 0.06), 64px); }
.hero2--home .hero2-fig { margin-top: clamp(36px, calc(36px + (100vh - 650px) * 0.08), 68px); }
.hero2--home + .doors2 { padding-top: clamp(26px, calc(26px + (100vh - 650px) * 0.16), 72px); }
.hero2--home { margin-top: clamp(20px, calc(20px + (100vh - 650px) * 0.1), 56px); }
.hero2--home .hero2-panel { padding-top: clamp(36px, calc(36px + (100vh - 650px) * 0.12), 80px); padding-bottom: clamp(40px, calc(40px + (100vh - 650px) * 0.12), 84px); }
.hero2--home .hero2-fig { margin-top: clamp(36px, calc(36px + (100vh - 650px) * 0.16), 96px); }
.hero2--home + .doors2 { padding-top: clamp(26px, calc(26px + (100vh - 650px) * 0.3), 112px); }

/* Pages intérieures : bandeau de titre plus compact, contenu remonté */
.hero2--plain { margin-top: 28px; }
.hero2--plain .hero2-panel { padding-top: 40px; padding-bottom: 44px; }
.hero2--plain + .book-band { margin-top: 0; }
.hero2--plain + .book-band .book { padding-top: 36px; }

/* Accueil sans boutons : texte centré verticalement dans le panneau crème */
.hero2--home .hero2-panel { display: flex; flex-direction: column; justify-content: center; min-height: clamp(300px, calc(300px + (100vh - 650px) * 0.6), 450px); }
.hero2--home .hero2-fig { margin-top: clamp(40px, calc(40px + (100vh - 650px) * 0.2), 90px); }
@media (max-width: 900px) { .hero2--home .hero2-panel { min-height: 0; } }

/* Accueil : plume en second plan, en chevauchement de l'aquarelle */
.hero2--home .hero2-fig { position: relative; padding-bottom: 64px; }
.hero2--home .hero2-fig img.hero2-pen { position: absolute; left: -40px; bottom: 0; width: 48%; max-width: 140px; aspect-ratio: 6 / 5; object-fit: cover; box-shadow: 0 12px 28px rgba(30, 34, 40, 0.25); z-index: 3; }
@media (max-width: 900px) {
  .hero2--home .hero2-fig { padding-bottom: 56px; }
  .hero2--home .hero2-fig img.hero2-pen { left: -8px; max-width: 120px; }
}

.hero2--home .hero2-fig { padding-bottom: 100px; }
@media (max-width: 900px) { .hero2--home .hero2-fig { padding-bottom: 90px; } }

/* Plume agrandie (taille liée à la hauteur d'écran pour garder les entrées visibles) */
.hero2--home .hero2-fig img.hero2-pen { max-width: none; width: clamp(140px, calc(140px + (100vh - 650px) * 0.24), 200px); left: -56px; }
.hero2--home .hero2-fig { padding-bottom: clamp(100px, calc(100px + (100vh - 650px) * 0.2), 150px); }
@media (max-width: 900px) { .hero2--home .hero2-fig img.hero2-pen { width: 140px; left: -8px; } .hero2--home .hero2-fig { padding-bottom: 100px; } }
