/* ===== Site « Le loup & ses amis » — flat 2D façon Bluey, ciel pâle ===== */
@font-face { font-family: 'Fredoka'; src: url('assets/fredoka-bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Nunito'; src: url('assets/nunito-regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Nunito'; src: url('assets/nunito-bold.ttf') format('truetype'); font-weight: 700; }

:root {
  --sky: #CDE8F5;
  --sky-soft: #E3F2FA;
  --cream: #FDF8EE;
  --paper: #FFFDF7;
  --ink: #3A2E2A;
  --grey: #7A6A5E;
  --bordeaux: #8C2F1B;
  --forest: #5B8C5A;
  --gold: #E8A33A;
  --butter: #F2D8A7;
  --line: rgba(60, 40, 30, 0.16);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3, .brand { font-family: 'Fredoka', sans-serif; }
.container { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 238, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 10px; flex-wrap: wrap; }
a.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
a.brand img { width: 42px; height: 42px; object-fit: contain; }
a.brand .brand-name { color: var(--bordeaux); font-size: 1.25rem; }
a.brand .brand-name .amp { color: var(--forest); }
nav .menu { display: flex; gap: 8px; flex-wrap: wrap; }
.menu a {
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  color: var(--ink); background: var(--paper);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
}
.menu a:hover { background: var(--sky-soft); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-soft) 55%, var(--cream) 100%);
  text-align: center; padding: 56px 20px 40px;
}
.hero h1 { font-size: 3rem; line-height: 1.12; color: var(--bordeaux); letter-spacing: 0.5px; }
.hero h1 .amp { color: var(--forest); }
.hero .tagline { margin-top: 12px; color: var(--grey); font-size: 1.15rem; }
.hero .trio { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 30px auto 0; }
.hero .trio img { height: 220px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(60,40,30,0.12)); }
.hero .trio img.small { height: 180px; }
.hero .bubble {
  display: inline-block; background: var(--paper); border-radius: 22px;
  padding: 12px 24px; margin-top: 18px;
  font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 4px 0 rgba(60,40,30,0.06);
}
.hero .cta { display: flex; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* ===== Boutons ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 30px; border-radius: 999px; font-size: 1.05rem;
  box-shadow: 0 4px 0 rgba(60,40,30,0.18);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.coral { background: var(--bordeaux); color: #fff; }
.btn.forest { background: var(--forest); color: #fff; }
.btn.gold { background: var(--gold); color: #fff; }

/* ===== Sections ===== */
section { padding: 52px 20px; }
section.alt { background: var(--paper); }
.section-title { text-align: center; font-size: 2.1rem; color: var(--bordeaux); margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--grey); margin-bottom: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ===== Livres à colorier ===== */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.book {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  text-align: center; box-shadow: 0 6px 18px rgba(60,40,30,0.07);
}
.book img { width: 100%; max-width: 220px; margin: 0 auto; border-radius: 8px; border: 1px solid var(--line); }
.book h3 { font-size: 1.2rem; color: var(--bordeaux); }
.book p { color: var(--grey); font-size: 0.92rem; flex-grow: 1; }
.book .price { font-family: 'Fredoka'; font-size: 1.35rem; color: var(--bordeaux); }
.book.soon { opacity: 0.72; }
.book .tag { align-self: center; font-size: 0.72rem; font-weight: 700; background: var(--butter); color: var(--ink); padding: 3px 12px; border-radius: 999px; }

/* ===== Cadeau gratuit ===== */
.free-card {
  background: linear-gradient(160deg, #FBF3E0, #F6E8CF);
  border: 1px solid var(--butter); border-radius: 26px;
  padding: 32px; text-align: center; max-width: 580px; margin: 0 auto;
}
.free-badge {
  display: inline-block; background: var(--bordeaux); color: #fff;
  font-family: 'Fredoka'; font-size: 1rem; padding: 6px 20px; border-radius: 999px;
  transform: rotate(-3deg); margin-bottom: 12px; box-shadow: 0 3px 0 rgba(60,40,30,0.15);
}
.free-card h3 { font-size: 1.55rem; color: var(--ink); margin-bottom: 10px; }
.free-card p { color: #6B5B42; margin-bottom: 18px; }

/* ===== YouTube / QR ===== */
.yt-block { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.qr-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; text-align: center; max-width: 420px;
  box-shadow: 0 8px 24px rgba(60,40,30,0.08);
}
.qr-card img.qr { width: 190px; height: 190px; display: block; margin: 0 auto 14px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.qr-card .qr-url { font-weight: 700; color: var(--forest); margin-top: 12px; word-break: break-all; }

/* ===== Pour les parents (Montessori) ===== */
.parents { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.parents .text { max-width: 560px; }
.parents .text h3 { font-size: 1.5rem; color: var(--bordeaux); margin-bottom: 10px; }

/* ===== Footer ===== */
footer { background: var(--forest); color: #fff; text-align: center; padding: 34px 20px; }
footer .brand { color: #fff; font-size: 1.4rem; }
footer p { font-size: 0.9rem; opacity: 0.92; margin-top: 6px; }
footer a { color: #fff; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero .trio img { height: 150px; }
  .hero .trio img.small { height: 120px; }
  .section-title { font-size: 1.7rem; }
}
