:root {
  --shadow:0 14px 38px rgba(28,35,42,.08)
}

body {
  line-height:1.55
}

.header-inner {
  gap:34px
}

.hero {
  background:linear-gradient(115deg,var(--navy-dark),var(--navy));
  color:#fff;
  padding:68px 0 62px
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#f6cf78;
  font-size:12px;
  font-weight:800
}

.hero h1 {
  font:500 clamp(42px,5vw,64px)/1.1 Georgia,serif;
  margin:13px 0 15px
}

.hero p {
  max-width:760px;
  font-size:18px;
  color:#dce8f1;
  margin:0
}

.list-section {
  padding:58px 0 90px
}

.list-head {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:end;
  margin-bottom:28px
}

.list-head h2 {
  font:500 38px/1.15 Georgia,serif;
  color:var(--navy-dark);
  margin:0 0 8px
}

.list-head p {
  margin:0;
  color:var(--muted);
  max-width:720px
}

.legend {
  font-size:13px;
  color:var(--muted);
  white-space:nowrap
}

.book-row {
  display:grid;
  grid-template-columns:145px minmax(0,1fr) 145px;
  gap:28px;
  align-items:center;
  background:#fff;
  border:1px solid #ebe5da;
  border-radius:16px;
  padding:22px;
  margin-bottom:18px;
  box-shadow:0 6px 18px rgba(28,35,42,.045)
}

.cover {
  height:190px;
  background:#f0ece4;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  overflow:hidden
}

.cover img {
  max-height:100%;
  max-width:100%;
  object-fit:contain;
  box-shadow:0 7px 14px rgba(0,0,0,.16)
}

.placeholder-cover {
  height:100%;
  width:100%;
  background:linear-gradient(155deg,#0a355e,#0f477d);
  color:#fff;
  border:1px solid rgba(240,184,63,.45);
  padding:15px 12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:center;
  box-shadow:0 6px 14px rgba(0,0,0,.12)
}

.placeholder-cover .sunmoon {
  color:#f0b83f;
  font-size:22px;
  letter-spacing:4px
}

.placeholder-cover strong {
  font:500 17px/1.15 Georgia,serif
}

.placeholder-cover small {
  color:#dce8f1
}

.book-heading {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:flex-start
}

.book-heading h2 {
  font:500 27px/1.15 Georgia,serif;
  color:var(--navy-dark);
  margin:0 0 5px
}

.author {
  color:#9b6c11;
  font-weight:700
}

.status {
  display:inline-flex;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap
}

.status.available {
  background:#edf7ef;
  color:#246533
}

.status.soldout {
  background:#f7ebed;
  color:#7e2f39
}

.status.neutral {
  background:#eef4f9;
  color:var(--navy)
}

.meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  margin-top:15px;
  color:#47535c;
  font-size:14px
}

.meta span,.extra {
  display:flex;
  gap:7px
}

.meta b,.extra b {
  color:var(--navy);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em
}

.description {
  margin:14px 0 0;
  color:#525d65;
  font-size:15px;
  max-width:760px
}

.note {
  margin:9px 0 0;
  color:var(--muted);
  font-size:13px
}

.book-actions {
  text-align:right
}

.price {
  font:600 25px Georgia,serif;
  color:var(--navy-dark);
  margin-bottom:12px
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 17px;
  border-radius:7px;
  text-decoration:none;
  font-weight:800;
  font-size:13px
}

.btn-primary {
  background:var(--gold);
  color:#152b3d
}

.contact {
  background:var(--navy-dark);
  border-bottom: 1px solid rgba(240, 184, 63, 0.55);
  color:#fff;
  padding:55px 0
}

.contact h2 {
  font:500 36px Georgia,serif;
  margin:0 0 10px
}

.contact p {
  color:#dce8f1;
  max-width:770px
}

.contact-links {
  display:flex;
  flex-wrap:wrap;
  gap:12px 25px;
  margin-top:22px
}

.contact a {
  color:#fff;
  font-weight:700;
  text-decoration:none
}

@media(min-width:921px) and (max-width:1050px) {
  .nav {
    position:static;
    display:flex;
    flex-direction:row;
    align-items:center;
    padding:0;
    background:transparent;
    box-shadow:none
  }
  .menu-btn {
    display:none
  }
}

@media(max-width:920px) {
  .nav {
    display:none;
    position:absolute;
    left:24px;
    right:24px;
    top:88px;
    background:#fff;
    box-shadow:var(--shadow);
    padding:10px;
    border-radius:12px;
    flex-direction:column;
    align-items:stretch
  }
  .nav.open {
    display:flex
  }
  .menu-btn {
    display:block;
    border:0;
    background:var(--navy);
    color:#fff;
    padding:10px 13px;
    border-radius:8px;
    font-weight:800
  }
  .book-row {
    grid-template-columns:120px 1fr
  }
  .book-actions {
    grid-column:2;
    text-align:left;
    display:flex;
    align-items:center;
    gap:14px
  }
  .price {
    margin:0
  }
}

@media(max-width:620px) {
  .topbar .wrap {
    justify-content:center;
    flex-wrap:wrap;
    gap:8px 16px;
    padding:7px 0
  }
  .header-inner {
    min-height:76px
  }
  .brand img {
    width:125px
  }
  .nav {
    top:70px;
    left:15px;
    right:15px
  }
  .hero {
    padding:48px 0
  }
  .hero h1 {
    font-size:40px
  }
  .list-section {
    padding:42px 0 65px
  }
  .list-head {
    display:block
  }
  .legend {
    margin-top:10px
  }
  .book-row {
    grid-template-columns:92px 1fr;
    gap:16px;
    padding:15px
  }
  .cover {
    height:135px
  }
  .book-heading {
    display:block
  }
  .book-heading h2 {
    font-size:21px
  }
  .status {
    margin-top:9px
  }
  .meta {
    gap:7px 14px
  }
  .description {
    font-size:14px
  }
  .book-actions {
    grid-column:1/-1;
    text-align:left;
    border-top:1px solid var(--line);
    padding-top:13px
  }
  .footer-inner {
    display:block
  }
  .footer-nav {
    margin-top:14px
  }
}

.description {
  margin:14px 0 0;
  color:#4d5962;
  font-size:15px;
  line-height:1.6;
  max-width:780px;
}

.btn-pdf {
  margin-top:10px;
  border:1px solid #0f477d;
  color:#0f477d;
  background:#fff;
}

.btn-pdf:hover {
  background:#eef4f9;
}

.book-actions .btn {
  width:100%;
}

@media(max-width:920px) {
  .book-actions .btn {
    width:auto;
  }
  .btn-pdf {
    margin-top:0;
  }
}

.filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
}

.filter-btn {
  appearance:none;
  border:1px solid #d8dfe5;
  background:#fff;
  color:#394550;
  border-radius:999px;
  padding:9px 16px;
  font:800 13px Arial,Helvetica,sans-serif;
  cursor:pointer;
  transition:.18s ease;
}

.filter-btn:hover {
  border-color:#0f477d;
  color:#0f477d;
}

.filter-btn.active {
  background:#0f477d;
  border-color:#0f477d;
  color:#fff;
}

.book-row[hidden] {
  display:none !important;
}

.results-count {
  margin:2px 0 22px;
  color:#6c747b;
  font-size:13px;
  font-weight:700;
}

@media(max-width:820px) {
  .list-head {
    display:block;
  }
  .filters {
    justify-content:flex-start;
    margin-top:20px;
  }
}

/* Agrandissement des couvertures */

.cover {
  position:relative;
}

.cover-zoom {
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:zoom-in;
  border-radius:8px;
}

.cover-zoom img {
  transition:transform .2s ease, box-shadow .2s ease;
}

.cover-zoom:hover img, .cover-zoom:focus-visible img {
  transform:scale(1.035);
  box-shadow:0 10px 22px rgba(0,0,0,.22);
}

.cover-zoom:hover .placeholder-cover, .cover-zoom:focus-visible .placeholder-cover {
  transform:scale(1.025);
}

.cover-zoom:focus-visible {
  outline:3px solid rgba(240,184,63,.7);
  outline-offset:3px;
}

.book-lightbox {
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
}

.book-lightbox.open {
  display:flex;
}

.book-lightbox__backdrop {
  position:absolute;
  inset:0;
  background:rgba(4,18,31,.88);
  backdrop-filter:blur(4px);
}

.book-lightbox__dialog {
  position:relative;
  z-index:1;
  width:min(640px,92vw);
  max-height:92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.book-lightbox__content {
  display:flex;
  align-items:center;
  justify-content:center;
  max-height:78vh;
  max-width:100%;
}

.book-lightbox__content img {
  display:block;
  max-width:min(520px,82vw);
  max-height:76vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
}

.book-lightbox__content .placeholder-cover {
  width:min(420px,78vw);
  height:min(610px,70vh);
  min-height:420px;
  padding:40px 28px;
  border-radius:4px;
  transform:none !important;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
}

.book-lightbox__content .placeholder-cover strong {
  font-size:clamp(24px,4vw,36px);
}

.book-lightbox__content .placeholder-cover small {
  font-size:16px;
}

.book-lightbox__title {
  margin-top:16px;
  color:#fff;
  text-align:center;
  font:500 20px/1.3 Georgia,serif;
}

.book-lightbox__close {
  position:absolute;
  right:-10px;
  top:-10px;
  z-index:2;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#092f54;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
}

body.lightbox-open {
  overflow:hidden;
}

@media(max-width:620px) {
  .book-lightbox {
    padding:16px;
  }
  .book-lightbox__dialog {
    width:94vw;
  }
  .book-lightbox__content img {
    max-width:86vw;
    max-height:72vh;
  }
  .book-lightbox__close {
    right:0;
    top:-48px;
  }
}

/* Fenêtre Commander — sans boutique ni formulaire */

.order-modal {
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.order-modal.open {
  display:flex;
}

.order-modal__backdrop {
  position:absolute;
  inset:0;
  background:rgba(4,18,31,.86);
  backdrop-filter:blur(4px);
}

.order-modal__dialog {
  position:relative;
  z-index:1;
  width:min(760px,94vw);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.38);
  display:grid;
  grid-template-columns:250px 1fr;
}

.order-modal__cover-wrap {
  min-height:430px;
  background: radial-gradient(circle at 50% 20%,rgba(240,184,63,.18),transparent 28%), linear-gradient(155deg,#092f54,#0f477d);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.order-modal__cover-wrap img {
  max-width:175px;
  max-height:310px;
  object-fit:contain;
  box-shadow:0 18px 35px rgba(0,0,0,.32);
}

.order-modal__cover-placeholder {
  width:155px;
  height:225px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(240,184,63,.45);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font:500 22px Georgia,serif;
}

.order-modal__content {
  padding:38px 38px 32px;
}

.order-modal__eyebrow {
  color:#9b6c11;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:800;
  margin-bottom:8px;
}

.order-modal__content h2 {
  font:500 32px/1.12 Georgia,serif;
  color:#182734;
  margin:0 0 5px;
}

.order-modal__author {
  color:#68727b;
  font-weight:700;
  margin-bottom:12px;
}

.order-modal__price {
  font:600 28px Georgia,serif;
  color:#0f477d;
}

.order-modal__separator {
  width:46px;
  height:3px;
  background:#f0b83f;
  margin:19px 0;
}

.order-modal__content h3 {
  font:500 22px Georgia,serif;
  color:#182734;
  margin:0 0 8px;
}

.order-modal__content p {
  color:#5b6670;
  line-height:1.6;
  font-size:14px;
  margin:0 0 22px;
}

.order-modal__actions {
  display:grid;
  gap:10px;
}

.order-modal__actions a {
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}

.order-email {
  background:#f0b83f;
  color:#152b3d;
}

.order-phone {
  border:1px solid #0f477d;
  color:#0f477d;
  background:#fff;
}

.order-email:hover {
  background:var(--navy);
  color:#fff;
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 10px 22px rgba(15,71,125,.3);
}

.order-phone:hover {
  background:var(--burgundy);
  border-color:var(--burgundy);
  color:#fff;
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 10px 22px rgba(110,38,49,.3);
}

.order-modal__actions a:focus-visible {
  outline:3px solid var(--gold);
  outline-offset:3px;
}

.order-modal__address {
  margin-top:16px;
  color:#899198;
  font-size:11px;
  text-align:center;
}

.order-modal__close {
  position:absolute;
  right:14px;
  top:12px;
  z-index:3;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#f4f5f6;
  color:#24303a;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}

body.order-modal-open {
  overflow:hidden;
}

@media(max-width:680px) {
  .order-modal {
    padding:0;
    align-items:flex-end;
  }
  .order-modal__dialog {
    width:100%;
    max-height:92vh;
    border-radius:20px 20px 0 0;
    grid-template-columns:1fr;
    overflow:auto;
  }
  .order-modal__cover-wrap {
    min-height:190px;
    padding:20px;
  }
  .order-modal__cover-wrap img {
    max-height:160px;
  }
  .order-modal__cover-placeholder {
    height:150px;
  }
  .order-modal__content {
    padding:26px 22px 28px;
  }
  .order-modal__content h2 {
    font-size:27px;
  }
}

/* =========================================================
   PUBLICATIONS — VERSION PLUS FORTE / ÉDITORIALE
   Grandes couvertures + texte plus étroit + effet WOW
   ========================================================= */

.hero {
  position:relative;
  overflow:hidden;
  padding:82px 0 76px;
  background:radial-gradient(circle at 88% 18%,rgba(240,184,63,.18),transparent 22%),linear-gradient(115deg,#061f39 0%,#0a355e 52%,#0f477d 100%);
}

.hero:before {
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  right:0;
  bottom:0;
  width:62%;
  opacity:.82;
  background:url("../images/404/page-404-background.png") right center / cover no-repeat;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 32%);
  mask-image:linear-gradient(to right,transparent 0%,#000 32%);
}

.hero:after {
  content:"";
  position:absolute;
  z-index:1;
  width:420px;
  height:420px;
  right:-130px;
  bottom:-250px;
  border:1px solid rgba(240,184,63,.25);
  border-radius:50%;
}

.hero .wrap {
  display: block;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  position:relative;
  z-index:2;
}

.hero h1 {
  font-size:clamp(52px,6vw,78px);
  letter-spacing:-.035em;
  margin-top:15px;
  max-width:760px;
}

.hero p {
  max-width:650px;
  font-size:18px;
  line-height:1.65;
}

.list-section {
  padding:72px 0 105px;
  background: linear-gradient(180deg,#fbfaf7 0,#fff 180px);
}

.list-head {
  margin-bottom:34px;
  align-items:flex-end;
}

.list-head > div:first-child {
  max-width:600px;
}

.list-head h2 {
  font-size:42px;
  letter-spacing:-.02em;
}

.list-head p {
  max-width:540px;
  font-size:15px;
  line-height:1.65;
}

.results-count {
  margin-bottom:26px;
  color:#9b6c11;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-size:11px;
}

/* Carte livre plus imposante */

.book-row {
  position:relative;
  overflow:hidden;
  grid-template-columns:270px minmax(0,1fr) 170px;
  gap:46px;
  min-height:365px;
  align-items:center;
  padding:30px 32px 30px 28px;
  margin-bottom:26px;
  border:1px solid #e7dfd2;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(20,36,50,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.book-row:before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(#f6cf78,#d79b22);
  opacity:.9;
}

.book-row:hover {
  transform:translateY(-4px);
  border-color:#dccdaE;
  box-shadow:0 20px 50px rgba(20,36,50,.12);
}

/* La couverture devient la vedette */

.cover {
  width:100%;
  height:315px;
  padding:16px;
  border-radius:14px;
  background: radial-gradient(circle at 50% 18%,rgba(240,184,63,.12),transparent 25%), linear-gradient(155deg,#f6f2eb,#ece5da);
  box-shadow:inset 0 0 0 1px rgba(15,71,125,.05);
}

.cover-zoom {
  border-radius:10px;
}

.cover img {
  width:auto;
  max-width:100%;
  height:100%;
  max-height:100%;
  object-fit:contain;
  box-shadow:0 15px 28px rgba(0,0,0,.22);
}

.cover-zoom:hover img, .cover-zoom:focus-visible img {
  transform:scale(1.045);
  box-shadow:0 20px 35px rgba(0,0,0,.26);
}

/* Les placeholders occupent désormais la même place qu'une vraie couverture */

.placeholder-cover {
  width:100%;
  max-width:205px;
  height:100%;
  min-height:0;
  margin:auto;
  padding:24px 18px;
  border-radius:4px;
}

.placeholder-cover strong {
  font-size:21px;
  line-height:1.16;
}

.placeholder-cover small {
  font-size:13px;
}

/* Texte volontairement moins large */

.book-main {
  width:100%;
  max-width:575px;
}

.book-main:before {
  content:"ÉDITIONS JOUR ET NUIT";
  display:block;
  margin-bottom:11px;
  color:#b77b11;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
}

.book-heading {
  gap:18px;
}

.book-heading h2 {
  max-width:520px;
  font-size:clamp(29px,2.6vw,38px);
  line-height:1.08;
  letter-spacing:-.02em;
  margin-bottom:9px;
}

.author {
  font-size:15px;
}

.status {
  padding:7px 11px;
  font-size:10px;
}

.meta {
  margin-top:20px;
  gap:10px 24px;
}

.meta span {
  align-items:baseline;
}

.description {
  max-width:535px;
  margin-top:19px;
  font-size:15px;
  line-height:1.72;
  color:#4e5962;
}

/* Colonne prix/action */

.book-actions {
  position:relative;
  text-align:left;
  padding-left:20px;
  border-left:1px solid #e7dfd2;
}

.price {
  margin:0 0 18px;
  font-size:31px;
  line-height:1;
}

.book-actions .btn {
  width:100%;
  min-height:49px;
  border-radius:8px;
}

.btn-primary {
  box-shadow:0 8px 18px rgba(211,151,31,.24);
  transition:transform .18s ease,box-shadow .18s ease;
}

.btn-primary:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(211,151,31,.32);
}

.btn-pdf {
  margin-top:10px;
}

/* Filtres plus raffinés */

.filters {
  padding:5px;
  border:1px solid #e2ddd4;
  border-radius:999px;
  background:#fff;
  box-shadow:0 5px 18px rgba(20,36,50,.04);
}

.filter-btn {
  border:0;
  padding:10px 17px;
}

.filter-btn.active {
  box-shadow:0 5px 12px rgba(15,71,125,.18);
}

@media(max-width:1050px) {
  .book-row {
    grid-template-columns:225px minmax(0,1fr);
    gap:32px;
    min-height:330px;
  }
  .cover {
    height:285px;
  }
  .book-actions {
    grid-column:2;
    border-left:0;
    border-top:1px solid #e7dfd2;
    padding:17px 0 0;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
  }
  .book-actions .price {
    margin:0 8px 0 0;
  }
  .book-actions .btn {
    width:auto;
    min-width:145px;
  }
  .btn-pdf {
    margin-top:0;
  }
}

@media(max-width:760px) {
  .hero {
    padding:58px 0 54px;
  }
  .hero:before {
    width:100%;
    opacity:.3;
    background-position:70% center;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 55%);
    mask-image:linear-gradient(to right,transparent 0%,#000 55%);
  }
  .hero h1 {
    font-size:48px;
  }
  .list-section {
    padding:50px 0 72px;
  }
  .list-head h2 {
    font-size:36px;
  }
  .filters {
    width:max-content;
    max-width:100%;
    border-radius:14px;
  }
  .book-row {
    display:block;
    padding:20px;
    margin-bottom:24px;
    min-height:0;
  }
  .book-row:before {
    width:4px;
  }
  .cover {
    width:100%;
    max-width:300px;
    height:360px;
    margin:0 auto 28px;
    padding:14px;
  }
  .placeholder-cover {
    max-width:230px;
  }
  .book-main {
    max-width:none;
  }
  .book-heading {
    display:block;
  }
  .book-heading h2 {
    max-width:none;
    font-size:29px;
  }
  .status {
    margin-top:10px;
  }
  .description {
    max-width:none;
  }
  .book-actions {
    margin-top:22px;
    padding-top:18px;
    display:flex;
    border-top:1px solid #e7dfd2;
    gap:10px;
  }
}

@media(max-width:480px) {
  .cover {
    max-width:270px;
    height:330px;
  }
  .book-row {
    padding:18px 16px 20px;
  }
  .book-heading h2 {
    font-size:26px;
  }
  .book-actions {
    align-items:stretch;
  }
  .book-actions .price {
    width:100%;
    margin-bottom:4px;
  }
  .book-actions .btn {
    flex:1 1 140px;
  }
}
