/* ==========================================================================
   Cassandra Ambre — Feuille de style
   Portail de découverte fantasy : fond blanc franc, dense et professionnel.
   Base neutre blanc/encre ; chaque univers apporte sa propre couleur d'accent.
   ========================================================================== */

:root {
  /* Base neutre */
  --ink: #15151b;        /* texte principal / éléments forts */
  --ink-soft: #3b3b46;   /* texte secondaire */
  --muted: #6c6c79;      /* texte tertiaire */
  --bg: #ffffff;         /* fond principal */
  --bg-alt: #f6f6f9;     /* fond de section alterné */
  --line: #e7e7ee;       /* bordures */
  --line-strong: #d7d7e0;

  /* Accent par univers (réécrit en JS par carte / section) */
  --accent: var(--ink);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.05), 0 4px 14px rgba(20, 20, 30, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 20, 30, 0.10);
  --shadow-cover: 0 14px 30px rgba(20, 20, 30, 0.22);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); background: #000; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-left { display: flex; align-items: center; gap: 26px; }
/* Large tiret séparateur entre le logo et la barre de menu (style AllAuthor) */
.nav-divider {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--line-strong);
  flex: none;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
}
.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 600;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-end { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32%, 430px);
  min-height: 460px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
/* Effet ambré moderne (clin d'œil au nom « Ambre ») */
.hero-accent {
  background: linear-gradient(90deg, #f3c879, #d98a2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mur de couvertures collées (gap zéro) — tous les livres */
.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-content: start;
  gap: 0;
}
.m-tile {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.m-tile .cover-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.m-tile .cover-placeholder { padding: 16px; }
.m-tile .cover-placeholder .ph-title { font-size: 1rem; }
.m-tile img { transition: transform 0.45s ease; }
.m-tile.is-link { cursor: pointer; }
.m-tile.is-link::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 0 var(--card-accent);
  transition: box-shadow 0.2s ease;
  pointer-events: none;
}
.m-tile.is-link:hover img { transform: scale(1.06); }
.m-tile.is-link:hover::after { box-shadow: inset 0 0 0 3px var(--card-accent); }
.m-buy {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  background: #fff; color: var(--ink);
  font-size: 0.78rem; font-weight: 800;
  padding: 7px 14px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.m-tile.is-link:hover .m-buy { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Encart de bienvenue (colonne de droite, fond sombre) */
.hero-welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(15, 15, 22, 0.97);
  color: #fff;
  padding: 44px 40px;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
}
.hw-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 14px;
}
.hw-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: #fff;
}
.hw-text {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 24px;
}
.hw-form { margin: 0; }
.hw-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.hw-field { display: flex; gap: 8px; }
.hw-field input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.hw-field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.hw-field input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(91, 108, 255, 0.3);
}
.hw-field input.is-error { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); }
.hw-field .btn { flex: none; padding: 12px 18px; }
.hero-welcome .btn-primary { background: #fff; color: var(--ink); }
.hero-welcome .btn-primary:hover { background: #f0f0f4; }
.hw-note { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); margin: 10px 0 0; }
.hw-feedback {
  font-size: 0.86rem;
  font-weight: 600;
  margin: 12px 0 0;
}
.hw-feedback.is-ok { color: #57e0a0; }
.hw-feedback.is-error { color: #ff8a8a; }

/* ---------------------------------------------------------------- Stats band */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 36px 0;
}
.stats-row {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.stats-row li:last-child { border-right: 0; }
.stats-row strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.stats-row span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.66);
  font-weight: 600;
}

/* ---------------------------------------------------------------- Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -1px;
  margin: 0 0 14px;
  line-height: 1.08;
}
.section-desc { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

/* ---------------------------------------------------------------- Universe grid (cartes image animées) */
.universe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 20px;
}
.universe-card {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.universe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.universe-card::before { /* fine barre d'accent en haut */
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent);
  z-index: 2;
}
.uni-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.uni-bg {
  position: absolute; inset: -5%;
  background-size: cover;
  background-position: center;
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(0, -3%, 0); }
}
@media (prefers-reduced-motion: reduce) { .uni-bg { animation: none; } }
.uni-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,16,0.05) 0%, rgba(10,10,16,0.5) 52%, rgba(10,10,16,0.92) 100%),
    linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--card-accent) 55%, transparent) 135%);
}
.uni-content { position: relative; padding: 26px 24px; width: 100%; }
.universe-age {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--card-accent) 88%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.universe-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.universe-tag {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.86;
  margin: 0 0 10px;
}
.universe-card p.universe-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
}
.universe-card:hover p.universe-desc,
.universe-card:focus-within p.universe-desc { max-height: 140px; opacity: 1; margin: 0 0 16px; }
.universe-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  margin-top: 14px;
}
.universe-link::after { content: "→"; transition: transform 0.2s; }
.universe-card:hover .universe-link::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- Filters */
.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.filter {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.18s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------------------------------------------------------------- Catalogue blocks */
.cat-universe { margin-bottom: 60px; }
.cat-universe:last-child { margin-bottom: 0; }
.cat-universe-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-universe-head .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--card-accent);
  flex: none;
}
.cat-universe-head h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.4px;
  margin: 0;
}
.cat-universe-head .age-pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, white);
  padding: 5px 13px;
  border-radius: 999px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

/* ---------------------------------------------------------------- Book card */
.book-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--card-accent) 40%, var(--line));
}

.cover-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-alt);
  overflow: hidden;
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--card-accent) 78%, white) 0%, transparent 55%),
    linear-gradient(160deg, var(--card-accent), color-mix(in srgb, var(--card-accent) 50%, #15151b));
}
.cover-placeholder .ph-mark { font-size: 1.5rem; opacity: 0.9; margin-bottom: 10px; }
.cover-placeholder .ph-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.cover-placeholder .ph-soon {
  margin-top: 10px;
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}

.badge {
  position: absolute;
  top: 11px; left: 11px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.badge-soon { background: rgba(21,21,27,0.82); color: #fff; }
.badge-sale { background: rgba(255,255,255,0.94); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

.book-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.book-volume {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--card-accent);
  margin-bottom: 6px;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.book-synopsis {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
  flex: 1;
}
.book-cta { margin-top: auto; }
.btn-buy {
  width: 100%;
  background: var(--card-accent);
  color: #fff;
  border: 0;
  font-size: 0.88rem;
  padding: 11px 16px;
}
.btn-buy:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 8px 18px color-mix(in srgb, var(--card-accent) 32%, transparent); }
.btn-buy.is-soon {
  background: var(--bg);
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  cursor: default;
}
.btn-buy.is-soon:hover { transform: none; filter: none; box-shadow: none; }

.cat-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-style: italic;
}

/* ---------------------------------------------------------------- About */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text p { color: var(--ink-soft); font-size: 1.05rem; }
.about-text .section-title,
.about-text .section-eyebrow { text-align: left; }
.about-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #f3f3f6;
  box-shadow: var(--shadow-md);
}
.about-list { list-style: none; margin: 0; padding: 0; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}
.about-list li:last-child { border-bottom: 0; }
.about-list li span { color: #d98a2b; }

/* ---------------------------------------------------------------- Contact */
.contact { text-align: center; }
.contact .section-desc { margin: 0 auto 30px; max-width: 520px; }
.contact-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-weight: 700;
  transition: 0.18s;
}
.contact-links a:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------------------------------------------------------------- Vote (couverture du mois) */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
.vote-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.vote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vote-card.is-choice {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.vote-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 12px;
}
.vote-cover img { width: 100%; height: 100%; object-fit: cover; }
.vote-ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  text-align: center;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--muted);
}
.vote-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
  line-height: 1.25;
}
.vote-btn { width: 100%; margin-top: auto; }
.vote-result { margin-top: auto; }
.vote-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: 8px;
}
.vote-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f9e8f, #5b6cff);
}
.vote-card.is-choice .vote-bar span { background: linear-gradient(90deg, #d98a2b, #a23bd9); }
.vote-figures {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.vote-figures strong { font-family: var(--font-display); font-size: 1.1rem; }
.vote-figures span { font-size: 0.78rem; color: var(--muted); }
.vote-total {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 26px 0 0;
}
.vote-feedback {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 12px 0 0;
  min-height: 1.2em;
}
.vote-feedback.is-ok { color: #1f8a5b; }
.vote-feedback.is-error { color: #d23b3b; }
.vote-captcha { display: flex; justify-content: center; margin-top: 8px; }

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: #c9c9d2;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8c8c98; }
.footer-note { margin: 0; font-size: 0.86rem; color: #8c8c98; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 880px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .stats-row li:nth-child(2) { border-right: 0; }
  .about { grid-template-columns: 1fr; }
  /* Hero : encart en haut, tous les livres en grille dessous */
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-welcome {
    order: -1;
    padding: 30px 22px;
    box-shadow: none;
  }
  .hero-mosaic {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-divider { display: none; }
  .nav-end .btn-sm { display: none; }
  .hw-field { flex-direction: column; }
  .hw-field .btn { width: 100%; }
}
