:root {
  --creme: #f8f3e8;
  --creme-2: #f1e9d8;
  --encre: #1c1a17;
  --gris: #57514a;
  --ocre: #b8862b;
  --ocre-fonce: #8f6519;
  --rouge: #7d1d24;
  --rouge-fonce: #61151b;
  --ligne: #e2d7c1;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--creme); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ocre-fonce);
  font-weight: 700;
  margin-bottom: .9rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 232, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ligne);
}
.header-inner { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding-top: .8rem; padding-bottom: .7rem; }
.brand {
  font-family: var(--serif); font-weight: 700; text-decoration: none;
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.brand em { font-style: normal; color: var(--rouge); }
.nav { display: flex; gap: 1.4rem; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--gris); padding: .2rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); border-color: var(--ocre); }

/* Buttons */
.btn-primary, .btn-ghost, .btn-buy {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; text-decoration: none;
  border-radius: 3px; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--encre); color: var(--creme); padding: .85rem 1.5rem; font-size: .95rem; }
.btn-primary:hover { background: var(--rouge); }
.btn-ghost { border: 1px solid var(--encre); color: var(--encre); padding: calc(.85rem - 1px) 1.5rem; font-size: .95rem; }
.btn-ghost:hover { background: var(--encre); color: var(--creme); }
.btn-buy {
  width: 100%; background: var(--rouge); color: #fff;
  padding: .8rem 1rem; font-size: .95rem; letter-spacing: .02em; margin-top: auto;
  box-shadow: 0 2px 0 var(--rouge-fonce);
}
.btn-buy:hover { background: var(--rouge-fonce); }
.btn-buy-inline { width: auto; padding: .85rem 1.6rem; }
a:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }

/* Hero */
.hero { padding: 3rem 0 3.5rem; border-bottom: 1px solid var(--ligne); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 .accent { display: block; font-style: italic; font-weight: 500; color: var(--rouge); }
.hero-lead { margin-top: 1.2rem; color: var(--gris); font-size: 1.05rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-covers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; align-items: end;
}
.hero-cover:nth-child(odd) { transform: translateY(-14px); }

/* Covers */
.cover {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  background: var(--creme-2);
  box-shadow: 0 1px 2px rgba(28, 26, 23, .12), 0 10px 24px -10px rgba(28, 26, 23, .35);
  border-radius: 2px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-typo { color: var(--creme); }
.cover-ocre { background: var(--ocre); }
.cover-rouge { background: var(--rouge); }
.cover-noir { background: var(--encre); }
.tc-frame {
  position: absolute; inset: 7%;
  border: 1px solid rgba(248, 243, 232, .55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10% 8%;
}
.tc-author { font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.tc-rule { width: 28px; height: 1px; background: currentColor; opacity: .7; margin: .9rem 0; }
.tc-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1rem, 4.6vw, 1.35rem); line-height: 1.15; }
.tc-sub { font-family: var(--serif); font-style: italic; font-size: .72rem; margin-top: .7rem; opacity: .9; line-height: 1.35; }
.tc-mark { position: absolute; bottom: 6%; left: 0; right: 0; font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--creme-2); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }

/* Univers */
.univ-grid { display: grid; gap: 1.25rem; }
.univ-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fffdf8; border: 1px solid var(--ligne); border-radius: 3px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.univ-card:hover { border-color: var(--ocre); box-shadow: 0 10px 28px -16px rgba(28, 26, 23, .35); }
.univ-visual { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: var(--creme-2); overflow: hidden; }
.univ-logo { background: #fff; }
.univ-logo img { width: 100%; height: 100%; object-fit: contain; }
.univ-fan { gap: 0; padding: 1.2rem 0; }
.univ-fan img { height: 82%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 6px 16px -6px rgba(28, 26, 23, .45); border-radius: 2px; }
.univ-fan.n3 img:nth-child(1) { transform: rotate(-6deg) translateX(18px); }
.univ-fan.n3 img:nth-child(2) { position: relative; z-index: 2; height: 88%; }
.univ-fan.n3 img:nth-child(3) { transform: rotate(6deg) translateX(-18px); }
.univ-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.univ-num { font-family: var(--serif); font-style: italic; color: var(--ocre); font-size: 1rem; margin-bottom: .3rem; display: block; }
.univ-body h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.univ-body p { color: var(--gris); font-size: .97rem; }
.univ-link { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--rouge); }

/* Livres */
.book-group { padding-top: 1rem; margin-bottom: 3.5rem; scroll-margin-top: 90px; }
.book-group:last-child { margin-bottom: 0; }
.group-head { max-width: 760px; margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--ligne); }
.group-head h3 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin-bottom: .6rem; }
.group-head p { color: var(--gris); margin: 0; }
.book-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
.book { display: flex; flex-direction: column; }
.book-body { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.book-title { font-size: 1.05rem; line-height: 1.3; }
.book-sub { font-family: var(--serif); font-style: italic; color: var(--gris); font-size: .88rem; margin: .3rem 0 0; line-height: 1.4; }
.book-hook { font-size: .9rem; color: var(--gris); margin: .7rem 0 1rem; line-height: 1.55; }
.book-hook + .book-desc { margin-top: -.4rem; }
.book-desc { font-size: .85rem; font-style: normal; color: var(--gris); margin: 0 0 1rem; line-height: 1.55; }

/* Autrice */
.author-inner { display: grid; gap: 2rem; align-items: center; }
.author-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 3px; }
.author-text h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 1rem; }
.author-text p { color: var(--gris); font-size: 1.05rem; max-width: 32rem; margin-bottom: 1.6rem; }

/* Footer */
.site-footer { background: var(--encre); color: var(--creme); padding: 2.8rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.footer-brand { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.footer-brand em { font-style: normal; color: #d9a54a; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; font-size: .92rem; }
.footer-nav a { text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.copy { font-size: .82rem; opacity: .6; margin: 0; }

/* Histoire */
.story-hero { padding: 2.5rem 0 3rem; border-bottom: 1px solid var(--ligne); }
.story-hero-inner { display: grid; gap: 2rem; align-items: center; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 3px; }
.story-intro h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.story-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 3.5vw, 1.45rem); color: var(--rouge); margin-top: 1rem; }
.story-inner { display: grid; gap: 2rem; align-items: center; }
.story-text h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin-bottom: 1.1rem; }
.story-text p { color: var(--gris); font-size: 1.04rem; }
.story-figure { margin: 0; }
.story-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.story-buy { margin-top: 1.4rem; }
.story-end { text-align: center; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.35; color: var(--encre); margin-bottom: 1.2rem; }
.story-end p:not(.quote) { color: var(--gris); margin-bottom: 1.8rem; }

/* Apparition douce */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablette */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.5rem; }
  .univ-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-covers { gap: 1rem; }
}

/* Desktop */
@media (min-width: 960px) {
  .header-inner { flex-direction: row; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .brand { font-size: 1.15rem; }
  .nav { gap: 2rem; font-size: .95rem; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .section { padding: 5.5rem 0; }
  .univ-grid { grid-template-columns: repeat(4, 1fr); }
  .univ-body h3 { font-size: 1.25rem; }
  .book-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem 2rem; }
  .tc-title { font-size: 1.3rem; }
  .author-inner { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
  .story-hero { padding: 4rem 0 4.5rem; }
  .story-hero-inner { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
  .story-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .story-inner-rev .story-figure { order: 0; }
}

/* Galerie */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gal-item { margin: 0; position: relative; overflow: hidden; border-radius: 3px; box-shadow: 0 1px 2px rgba(28, 26, 23, .12), 0 10px 24px -10px rgba(28, 26, 23, .35); background: var(--ligne); }
.gal-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gal-1 img { aspect-ratio: 4 / 5; }
.gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .6rem; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(28, 26, 23, .6)); }
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1.1rem; }
  .gal-item img { aspect-ratio: auto; }
  .gal-1 { grid-row: span 2; }
  .gal-6 { grid-column: span 2; }
}

/* Mention univers libertin (Évie) */
.tag-adulte {
  display: inline-block; font-family: var(--sans); font-style: normal; font-weight: 700;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--rouge); padding: .3rem .6rem; border-radius: 2px; line-height: 1.2;
}
.univ-visual { position: relative; }
.tag-over { position: absolute; top: .8rem; left: .8rem; z-index: 3; box-shadow: 0 2px 8px -2px rgba(28, 26, 23, .4); }
.warn-adulte { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--rouge) !important; }
.group-head .warn-adulte { margin-bottom: .5rem; }

/* Contact */
.contact { scroll-margin-top: 80px; }
.contact-inner { display: grid; gap: 2rem; }
.contact-text h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 1rem; }
.contact-text p { color: var(--gris); font-size: 1.05rem; max-width: 30rem; }
.contact-help { font-size: .95rem !important; }
.contact-form {
  background: #fffdf8; border: 1px solid var(--ligne); border-radius: 3px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; color: var(--encre); background: var(--creme);
  border: 1px solid var(--ligne); border-radius: 3px; padding: .75rem .9rem; width: 100%;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ocre); outline-offset: 1px; border-color: var(--ocre); }
.field [aria-invalid="true"] { border-color: var(--rouge); }
.form-error { color: var(--rouge); font-weight: 700; font-size: .9rem; margin: 0; }
.contact-actions { display: grid; gap: .7rem; }
.btn-send { gap: .55rem; border: 0; cursor: pointer; width: 100%; }
.btn-wa {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; border-radius: 3px;
  padding: .85rem 1.5rem; background: #1f7a4d; color: #fff; transition: background-color .2s;
}
.btn-wa:hover { background: #17603c; }
button:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }
.contact-direct { font-size: .88rem; color: var(--gris); margin: 0; text-align: center; }
.contact-direct a { color: var(--rouge); }
@media (min-width: 640px) {
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 2rem; }
}
@media (min-width: 960px) {
  .contact-inner { grid-template-columns: 5fr 7fr; gap: 4.5rem; align-items: start; }
}

/* Mentions légales, 404, crédit */
.legal h1, .notfound h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .8rem; }
.legal p, .notfound p { color: var(--gris); }
.legal a { color: var(--rouge); }
.legal-list { display: grid; grid-template-columns: 1fr; gap: .2rem 1.5rem; margin: 0; }
.legal-list dt { font-weight: 700; margin-top: .6rem; }
.legal-list dd { margin: 0; color: var(--gris); }
@media (min-width: 640px) {
  .legal-list { grid-template-columns: 14rem 1fr; }
  .legal-list dt { margin-top: 0; }
}
.notfound { text-align: center; min-height: 55vh; display: flex; align-items: center; }
.notfound .hero-actions { justify-content: center; }
.copy a { color: inherit; }
.credit a { text-decoration: underline; }
