@import url('fonts.css');

/* ------------------------------------------------------------------ */
/* Charte Jardiland Gozée & Jumet                                      */
/* ------------------------------------------------------------------ */
:root {
  --orange: #ed6338;
  --orange-ink: #b8431c;      /* orange lisible pour du petit texte */
  --orange-soft: #fde9e1;
  --green: #2f6b3b;
  --green-dark: #24542e;
  --green-soft: #e3efe4;
  --ink: #252525;
  --muted: #6b645d;
  --cream: #f7f5f0;
  --sand: #ede7dc;
  --line: #e2dbcf;
  --white: #fff;

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(37, 30, 22, 0.06), 0 2px 8px rgba(37, 30, 22, 0.06);
  --shadow-md: 0 2px 6px rgba(37, 30, 22, 0.08), 0 14px 36px rgba(37, 30, 22, 0.12);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ */
/* Boutons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-orange { background: var(--orange); color: #1d120d; }
.btn-orange:hover { background: #f27a54; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: rgba(37, 37, 37, 0.06); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.brand-tag {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding-left: 14px; border-left: 2px solid var(--line); line-height: 1.1;
}
@media (max-width: 560px) {
  .brand img { width: 150px; }
  .brand-tag { font-size: 13px; padding-left: 10px; }
  .site-header .btn .label-long { display: none; }
}
@media (max-width: 400px) {
  .brand-tag { display: none; }
}

/* ------------------------------------------------------------------ */
/* Accueil — folder du moment                                          */
/* ------------------------------------------------------------------ */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 6vw, 72px); background: var(--white); }
.hero-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 4vw, 44px); }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange-ink);
}
.page-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.01em; line-height: 0.95; margin-top: 6px;
}
.page-title em { font-style: normal; color: var(--orange); }

.featured { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.featured-book { display: block; perspective: 1800px; justify-self: center; width: min(100%, 440px); text-decoration: none; }
.featured-book .book-3d {
  position: relative; transform: rotateY(-16deg) rotateX(3deg); transform-origin: 20% 50%;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.featured-book:hover .book-3d, .featured-book:focus-visible .book-3d { transform: rotateY(-5deg) rotateX(1deg) translateY(-4px); }
.book-3d img {
  position: relative; z-index: 2; width: 100%; height: auto; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 30px 50px -18px rgba(40, 25, 10, 0.45), 0 10px 18px -8px rgba(40, 25, 10, 0.3);
  background: var(--sand);
}
.book-3d::before, .book-3d::after {
  content: ''; position: absolute; inset: 0; border-radius: 3px 8px 8px 3px;
  background: #fbfaf7; border: 1px solid #e6e0d6;
}
.book-3d::before { transform: translate(10px, 7px); z-index: 0; }
.book-3d::after { transform: translate(5px, 3.5px); z-index: 1; }
.book-3d .spine {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 16px; border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0,0,0,0.22), rgba(0,0,0,0.06) 45%, rgba(255,255,255,0.18) 60%, transparent);
  pointer-events: none;
}

.featured-info { display: grid; gap: 18px; justify-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--cream); color: var(--ink); border: 1px solid var(--line);
}
.chip svg { width: 14px; height: 14px; }
.chip-current { background: var(--green-soft); border-color: #c7dcc9; color: var(--green-dark); }
.chip-current::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3f9a52; box-shadow: 0 0 0 3px rgba(63, 154, 82, 0.2); }
.chip-upcoming { background: var(--orange-soft); border-color: #f6cdbd; color: var(--orange-ink); }
.chip-past { background: #ece9e4; color: var(--muted); }
.featured-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 0.95; letter-spacing: -0.005em;
}
.featured-dates { font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.featured-dates strong { color: var(--orange-ink); }
.featured-sub { color: var(--muted); font-size: 18px; max-width: 46ch; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.featured-meta { font-size: 15px; color: var(--muted); }

@media (max-width: 820px) {
  .featured { grid-template-columns: 1fr; }
  .featured-book { width: min(78%, 360px); }
  .featured-info { justify-items: center; text-align: center; }
  .featured-actions { justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Grilles de folders                                                  */
/* ------------------------------------------------------------------ */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 38px); letter-spacing: 0.005em;
}
.section-count { color: var(--muted); font-weight: 600; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card {
  display: flex; flex-direction: column; text-decoration: none; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-cover { position: relative; background: var(--sand); padding: 18px 18px 0; aspect-ratio: 4 / 4.4; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.card-cover img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  border-radius: 2px 4px 0 0; box-shadow: 0 -2px 18px rgba(40, 25, 10, 0.18);
  transition: transform 0.3s;
}
.card:hover .card-cover img { transform: translateY(-4px); }
.card-cover .chip { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }
.card-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 25px; text-transform: uppercase; line-height: 1; }
.card-dates { color: var(--muted); font-size: 15px; font-weight: 500; }
.card.is-past { opacity: 0.86; }
.card.is-past .card-cover img { filter: saturate(0.6); }

.more { display: flex; justify-content: center; margin-top: 28px; }

.empty {
  background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px);
  text-align: center; display: grid; gap: 12px; justify-items: center; box-shadow: var(--shadow-sm);
}
.empty h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 32px; }
.empty p { color: var(--muted); max-width: 48ch; }

/* ------------------------------------------------------------------ */
/* Appel vers jardiland.be                                             */
/* ------------------------------------------------------------------ */
.cta-band { background: var(--orange); color: #1d120d; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); position: relative; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.2vw, 46px); max-width: 18ch; line-height: 0.98; }
.cta-band p { font-size: 18px; font-weight: 500; margin-top: 10px; max-width: 46ch; }
.cta-band .btn-green { min-height: 56px; padding: 0 28px; font-size: 18px; }
.cta-band::before {
  content: ''; position: absolute; left: -80px; bottom: -160px; width: 340px; aspect-ratio: 1;
  border-radius: 50%; border: 48px solid rgba(255, 255, 255, 0.14);
}

/* ------------------------------------------------------------------ */
/* Magasins & pied de page                                             */
/* ------------------------------------------------------------------ */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.store {
  background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  display: grid; gap: 10px; align-content: start;
}
.store h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; }
.store p, .store a { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.store svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--orange-ink); }
.store a { text-decoration: none; font-weight: 600; color: var(--green); }
.store a:hover { text-decoration: underline; }

.site-footer { background: var(--ink); color: #d8d2c8; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.socials a:hover { background: var(--orange); text-decoration: none; }
.socials svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ */
/* Squelettes de chargement & messages                                 */
/* ------------------------------------------------------------------ */
.skeleton { background: linear-gradient(90deg, var(--sand) 25%, #f4efe7 50%, var(--sand) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
