/* ═══════════════════════════════════════════════════════════
   MEILLEUREBOOK.COM — Feuille de style principale
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #f5d97e;
  --gold-dark:   #a07830;
  --cream:       #fdfaf4;
  --cream-dark:  #f5f0e6;
  --dark:        #1a1612;
  --dark-soft:   #2e2720;
  --text:        #3d342a;
  --text-light:  #7a6b5a;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.15);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  .25s ease;
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--dark);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,.35);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 6px 28px rgba(201,168,76,.5);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn--ghost:hover { background: var(--dark); color: var(--white); }

.btn--sm { padding: .6rem 1.4rem; font-size: .875rem; }

/* ── Section helpers ────────────────────────────────────── */
.section { padding: 5rem 0; }

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: .5rem;
}
.section__sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.section__badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,244,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.2);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
}
.logo span { color: var(--gold); }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--gold-dark); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 18px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-soft) 50%, #3a2e22 100%);
  padding-top: 68px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem 6rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(201,168,76,.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.4);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero__actions .btn--ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.hero__badges span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  padding: .35rem .85rem;
  border-radius: 50px;
}

.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
}
.hero__wave svg { display: block; width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════
   CATALOGUE — Filtres
   ══════════════════════════════════════════════════════════ */
.catalogue { background: var(--cream); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.filter-btn, .age-btn {
  background: var(--white);
  border: 2px solid #e8dfc8;
  color: var(--text-light);
  padding: .5rem 1.25rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .age-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}
.filter-btn.active, .age-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(201,168,76,.3);
}

.age-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
.age-label {
  font-size: .875rem;
  color: var(--text-light);
  font-weight: 600;
  margin-right: .25rem;
}
.age-btn {
  padding: .35rem 1rem;
  font-size: .8rem;
}

/* ══════════════════════════════════════════════════════════
   CATALOGUE — Cartes ebook
   ══════════════════════════════════════════════════════════ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.book-card--coming { opacity: .88; }

/* Couverture simulée */
.book-card__cover {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.book-card__cover-inner {
  text-align: center;
  color: var(--white);
}
.book-cover__series {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: .5rem;
}
.book-cover__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.book-cover__sub {
  font-size: .8rem;
  opacity: .85;
  margin-bottom: .75rem;
}
.book-cover__author {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.book-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: #22c55e;
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 50px;
}
.book-card__badge--soon { background: var(--gold-dark); }

/* Corps de la carte */
.book-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card__tags {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
}
.tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 50px;
}
.tag--age { background: #fef3c7; color: #92400e; }
.tag--theme { background: #ede9fe; color: #5b21b6; }

.book-card__title {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  font-family: 'Playfair Display', serif;
}

.book-card__desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.book-card__points {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.book-card__points li {
  font-size: .82rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
}
.book-card__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.book-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0e8d6;
}

.price { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--dark); }
.price__note { font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; color: var(--text-light); }

.no-results {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 3rem 0;
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════════════════
   CITATION
   ══════════════════════════════════════════════════════════ */
.quote-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 5rem 0;
}
.quote-section blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--white);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}
.quote-section cite {
  display: block;
  margin-top: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: .9rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════
   À PROPOS
   ══════════════════════════════════════════════════════════ */
.apropos { background: var(--cream-dark); }

.apropos__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}

.apropos__image-wrap { display: flex; justify-content: center; }

.apropos__image-placeholder {
  width: 260px; height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e8dfc8 0%, #d4c8a8 100%);
  border: 3px dashed var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .875rem;
}
.apropos__image-placeholder span { font-size: 3rem; margin-bottom: .5rem; }

.apropos__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}
.apropos__text p { margin-bottom: 1rem; font-size: 1rem; line-height: 1.75; }

.apropos__note {
  font-size: .82rem !important;
  color: #9c8060 !important;
  background: #fdf3dd;
  border: 1px dashed #d4b882;
  border-radius: 8px;
  padding: .5rem .85rem;
  margin-top: 1.25rem !important;
}

.apropos__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1.5px solid #e8dfc8;
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact { background: var(--cream); }

.contact__inner { text-align: center; }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card {
  background: var(--white);
  border: 1.5px solid #e8dfc8;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: all var(--transition);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.contact-card__icon { font-size: 1.75rem; }
.contact-card__label { font-size: .75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .08em; }
.contact-card__value { font-size: .9rem; font-weight: 600; color: var(--dark); }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 3rem 0;
  text-align: center;
}

.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.footer__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo span { color: var(--gold); }

.footer__tagline { font-size: .875rem; color: rgba(255,255,255,.55); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__nav a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold-light); }

.footer__copy { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--cream); padding: 1.5rem; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .apropos__inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .apropos__socials { justify-content: center; }
  .hero__content { padding-bottom: 5rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
  .contact__cards { grid-template-columns: 1fr 1fr; }
}
