/* EBRU - parcours minimal : feuille de style provisoire, sobre et lisible. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #222;
  background: #faf8f5;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: min(960px, 100% - 32px); margin: 0 auto; }

header.ebru-header {
  background: #2d3a45;
  color: #f2ede4;
  padding: 12px 0;
}
.ebru-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ebru-brand { font-size: 22px; letter-spacing: .5px; text-decoration: none; color: #f2ede4; }
.ebru-brand small { display: block; font-size: 11px; opacity: .75; font-weight: normal; }
.ebru-nav a { color: #d8e0d6; text-decoration: none; margin-left: 14px; }
.ebru-nav a:hover { text-decoration: underline; }

.auth-box { font-size: 13px; }
.auth-box .pill { color: #f2ede4; }
.auth-box a, .auth-box button {
  margin-left: 10px; font-family: inherit; font-size: 13px; cursor: pointer;
}
.auth-box a, .auth-box a:visited { color: #f2ede4; text-decoration: none; }
.auth-box a:hover, .auth-box a:focus-visible { color: #fff; text-decoration: underline; }
.auth-box a:focus-visible { outline: 2px solid #e8dcc0; outline-offset: 3px; }
.auth-box button {
  border: 1px solid #f2ede4; background: transparent; color: #f2ede4;
  padding: 4px 10px; border-radius: 4px;
}
.auth-box button:hover { background: #3b4a58; }

main { flex: 1 0 auto; padding: 24px 0 48px; min-width: 0; }
h1 { font-size: 26px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
.sub { color: #66727b; font-size: 13px; }

.home-main { padding: 0; }
.home-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #d9e7e7 url('/assets/ebru-fond-desktop.webp') center 38% / cover no-repeat;
}
@media (max-width: 768px) {
  .home-hero { background-image: url('/assets/ebru-fond-mobile.webp'); }
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(255 255 255 / 0.42);
}
.home-hero-content {
  width: min(640px, calc(100% - 48px));
  padding: 46px 28px 50px;
  text-align: center;
  color: #17272d;
}
.home-hero-logo {
  display: block;
  width: min(330px, 76%);
  height: auto;
  margin: 0 auto 50px;
}
.home-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 400;
  letter-spacing: .03em;
}
.home-hero-text {
  width: min(570px, 100%);
  margin: 0 auto 42px;
}
.home-hero-copy {
  margin: 0 0 42px;
  color: #17272d;
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.75;
  font-weight: bold;
  white-space: pre-line;
}
.home-hero-copy-line { display: block; }
.home-hero-presentation-title {
  margin: 0 0 28px;
  color: #17272d;
  text-align: left;
  font-size: clamp(21px, 2.5vw, 26px);
  font-weight: bold;
  line-height: 1.5;
}
.home-hero-presentation {
  margin: 0 0 24px;
  color: #17272d;
  text-align: left;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
}
.home-hero-presentation:last-child { margin-bottom: 0; }
.btn.home-hero-cta {
  min-width: 210px;
  border: 1px solid #2d3a45;
  border-radius: 2px;
  background: #2d3a45;
  color: #fff;
  padding: 13px 26px;
  font-size: 18px;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.btn.home-hero-cta:hover,
.btn.home-hero-cta:focus-visible { background: #3b4a58; color: #fff; }
.btn.home-hero-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgb(23 39 45 / 0.7);
}

.card {
  background: #fff; border: 1px solid #e2dcd2; border-radius: 6px;
  padding: 14px 16px; margin: 10px 0;
}
.catalog-list { display: grid; gap: 18px; }
.catalog-entry {
  display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 26px;
  align-items: center; padding: 22px; background: #fff; border: 1px solid #e2dcd2; border-radius: 7px;
}
.catalog-cover, .book-cover {
  position: relative; overflow: hidden; background: #e8e2d8; color: #8a8170;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid #ddd4c6; border-radius: 4px; font-size: 12px; padding: 6px;
}
.catalog-cover { width: 100%; aspect-ratio: 2 / 3; text-decoration: none; }
.catalog-cover:focus-visible { outline: 2px solid #2f5d2f; outline-offset: 3px; }
.catalog-cover img, .book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.catalog-cover.has-img span, .book-cover.has-img span { display: none; }
.catalog-cover.has-img img, .book-cover.has-img img { display: block; }
.catalog-entry h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.catalog-entry h2 a { color: #1f313c; text-decoration: none; }
.catalog-entry h2 a:hover, .catalog-entry h2 a:focus-visible { color: #47616f; text-decoration: underline; }
.catalog-author, .book-author { margin: 7px 0 14px; color: #4e5f69; font-size: 17px; }
.catalog-meta, .book-meta { color: #66727b; font-size: 14px; }
.catalog-status, .book-status { margin: 16px 0 0; color: #7a5b12; font-weight: bold; }
.catalog-summary {
  display: -webkit-box; overflow: hidden; max-height: 6.2em; margin: 14px 0 0; color: #394953;
  font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
}
.catalog-summary p, .catalog-summary ul, .catalog-summary ol { margin: 0; }
.catalog-summary li + li { margin-top: 0; }
a.cover:focus-visible { outline: 2px solid #2f5d2f; outline-offset: 2px; }
a.cover { text-decoration: none; }
.cover {
  position: relative; overflow: hidden;
  width: 120px; height: 180px; background: #e8e2d8; color: #8a8170;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px solid #ddd4c6; border-radius: 4px; font-size: 12px; padding: 6px;
}
.book-layout { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(220px, 260px); gap: 30px; align-items: start; }
.book-layout.book-coming-soon { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
.book-cover { width: 100%; aspect-ratio: 2 / 3; }
.book-content h1 { margin-bottom: 4px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.book-summary { margin-top: 26px; font-size: 17px; line-height: 1.7; }
.book-summary p { margin: 0; white-space: pre-line; }
.book-actions { padding: 20px; border: 1px solid #ded7ca; border-radius: 7px; background: #f4f0e9; }
.book-actions section + section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d8d0c3; }
.book-actions h2 { font-size: 17px; }
.book-actions .format { padding: 12px; background: #fff; }
.cover img.coverimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.cover.has-img span { display: none; }
.cover.has-img img.coverimg { display: block; }
.fiche-meta dt { font-weight: bold; margin-top: 8px; }
.fiche-meta dd { margin: 2px 0 0; }

.btn {
  display: inline-block; background: #2d3a45; color: #f2ede4;
  border: 0; border-radius: 5px; padding: 10px 18px; font-family: inherit;
  font-size: 16px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #3b4a58; }
.btn:disabled { background: #9aa3ab; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid #2d3a45; color: #2d3a45; }

.msg { margin: 10px 0; padding: 10px 12px; border-radius: 5px; font-size: 14px; }
.msg.ok { background: #eef5ec; border: 1px solid #bcd9b6; color: #2f5d2f; }
.msg.warn { background: #fbf3e0; border: 1px solid #e6cf9c; color: #7a5b12; }
.msg.err { background: #fbeae8; border: 1px solid #e3b3ad; color: #8a2f24; }

.lire-zone { margin-top: 18px; }
.quota { margin-top: 10px; font-size: 14px; color: #2f5d2f; }

.une-item { border-left: 4px solid #b8a25f; background: #fff; padding: 12px 14px; margin-bottom: 10px; border-radius: 4px; }
.une-item h3 { margin: 0 0 4px; font-size: 16px; }
.une-item .badge { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #8a7d5f; }

footer { background: #f0ebe2; color: #6b6b6b; font-size: 13px; padding: 14px 0; text-align: center; }
.legal-footer { padding: 18px 20px; line-height: 1.5; }
.legal-footer-line { margin: 0; }
.legal-footer-separator { padding: 0 6px; }
.legal-footer a { color: #2d3a45; }
.legal-footer a:hover { color: #17272d; }
.legal-footer a:focus-visible { outline: 2px solid #2d3a45; outline-offset: 2px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.filters input, .filters select {
  font-family: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid #cfc6b8; border-radius: 4px;
}
#search { width: 260px; }

.meta small { color: #66727b; }
.coming-soon-badge {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid #b88a1f;
  border-radius: 5px;
  background: #ffe45a;
  color: #30230d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
}
.book-status .coming-soon-badge { padding: 6px 13px; font-size: 17px; }
.hide { display: none; }

@media (max-width: 560px) {
  .home-hero { min-height: 620px; background-position: 47% 44%; }
  .home-hero-content { width: min(100% - 32px, 480px); padding: 44px 12px 48px; }
  .home-hero-logo { width: min(260px, 82%); margin-bottom: 38px; }
  .home-hero-text { margin-bottom: 34px; }
  .home-hero-copy { margin: 0 0 32px; font-size: 18px; line-height: 1.7; }
  .home-hero-presentation-title { margin-bottom: 22px; font-size: 20px; }
  .home-hero-presentation { margin-bottom: 22px; font-size: 17px; line-height: 1.65; }
  .home-hero-cta { min-width: 200px; padding: 12px 22px; font-size: 17px; }
  .catalog-entry { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .catalog-cover { width: min(170px, 58vw); margin: 0 auto; }
  .catalog-entry h2 { font-size: 24px; }
  .book-layout, .book-layout.book-coming-soon { grid-template-columns: 1fr; gap: 22px; }
  .book-cover { width: min(240px, 70vw); margin: 0 auto; }
  .book-content h1 { font-size: 26.7px; }
  #search { width: 100%; }
  .filters input, .filters select { max-width: 100%; }
  .legal-footer { padding: 16px; }
}

@media (max-width: 768px) {
  .home-hero-copy { margin-bottom: 24px; font-size: 16px; line-height: 1.48; }
}

.format { margin: 10px 0; }
ul.vendeurs { margin: 6px 0 0; padding-left: 18px; }
ul.vendeurs li { margin: 2px 0; }
.lang-box select {
  font-family: inherit; font-size: 13px; padding: 4px 6px;
  border: 1px solid #f2ede4; border-radius: 4px;
  background: #2d3a45; color: #f2ede4; max-width: 170px;
}
