/* ===== Style du site Toto & ses amis — style aquarelle « Martine » années 70 ===== */
@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 {
  --cream: #FDF8EE;
  --paper: #FFFDF7;
  --ink: #4A3F35;
  --grey: #8A7D6D;
  --rose: #E8B4B8;
  --sage: #A8C3A0;
  --butter: #F2D8A7;
  --lilac: #C5B8D8;
  --teal: #7FA8A0;
  --coral: #D98E7A;
  --line: rgba(74, 63, 53, 0.18);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: 'Fredoka', sans-serif; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 10px; flex-wrap: wrap; }
.brand { color: var(--coral); font-size: 1.3rem; letter-spacing: 0.3px; }
.brand span { color: var(--teal); }
.lang { display: flex; gap: 6px; }
.lang a {
  text-decoration: none; font-weight: 700; font-size: 0.8rem;
  background: var(--paper); color: var(--ink);
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line);
}
.lang a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ===== Hero ===== */
.hero { text-align: center; padding: 60px 20px 36px; position: relative; overflow: hidden; }
.hero .deco { position: absolute; border-radius: 50%; opacity: 0.4; }
.hero .d1 { width: 130px; height: 130px; background: #F6E3C8; top: 10px; left: -40px; }
.hero .d2 { width: 150px; height: 150px; background: #E4EFE4; bottom: 0; right: -50px; }
.hero .d3 { width: 60px; height: 60px; background: #EFE3F0; top: 60px; right: 8%; }
.hero .d4 { width: 50px; height: 50px; background: #FBE9E9; bottom: 30px; left: 10%; }
.hero h1 { font-size: 2.7rem; line-height: 1.18; color: var(--coral); }
.hero h1 span { color: var(--teal); }
.hero .ornament { color: var(--rose); font-size: 1.3rem; letter-spacing: 12px; margin-top: 8px; }
.hero p.sub { margin-top: 10px; color: var(--grey); font-size: 1.12rem; }
.avatar-wrap { margin: 30px auto 12px; width: 190px; height: 190px; position: relative; }
.avatar-wrap img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--rose); background: #fff;
  box-shadow: 0 8px 24px rgba(74, 63, 53, 0.12);
}
.avatar-wrap .star1, .avatar-wrap .star2 { position: absolute; font-size: 1.6rem; }
.avatar-wrap .star1 { top: -10px; right: -12px; color: var(--butter); }
.avatar-wrap .star2 { bottom: -8px; left: -14px; color: var(--rose); }
.bubble {
  display: inline-block; background: var(--paper); border-radius: 22px;
  padding: 12px 24px; margin-top: 16px;
  font-weight: 700; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(74, 63, 53, 0.06);
}

/* ===== Sections ===== */
section { padding: 48px 20px; }
section.alt { background: var(--paper); }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 6px; color: var(--coral); }
.section-sub { text-align: center; color: var(--grey); margin-bottom: 34px; }

/* ===== Carte GRATUIT (appât) ===== */
.free-card {
  background: linear-gradient(160deg, #FBF3E0, #F6E8CF);
  border: 1px solid var(--butter);
  border-radius: 26px; padding: 30px; text-align: center; max-width: 580px; margin: 0 auto 46px;
}
.free-badge {
  display: inline-block; background: var(--coral); 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(74, 63, 53, 0.15);
}
.free-card h3 { font-size: 1.55rem; color: var(--ink); margin-bottom: 10px; }
.free-card p { color: #6B5B42; margin-bottom: 18px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--teal); color: #fff; padding: 13px 28px; border-radius: 999px;
  box-shadow: 0 4px 0 rgba(74, 63, 53, 0.18);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.coral { background: var(--coral); }
.btn.yellow { background: var(--butter); color: var(--ink); }

/* ===== Grille produits ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.product {
  background: var(--paper); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(74, 63, 53, 0.1); }
.product .corner { position: absolute; top: 10px; right: 14px; color: var(--rose); font-size: 0.9rem; letter-spacing: 4px; }
.product h3 { font-size: 1.18rem; color: var(--ink); }
.product p { color: var(--grey); font-size: 0.92rem; flex-grow: 1; }
.price { font-family: 'Fredoka'; font-size: 1.3rem; color: var(--coral); }
.price.free { color: var(--teal); }
.buy-btn { align-self: flex-start; margin-top: 4px; padding: 10px 22px; font-size: 0.95rem; }
.tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700;
  background: var(--lilac); color: #fff; padding: 3px 11px; border-radius: 999px;
}
.tag.teal { background: var(--teal); }
.tag.coral { background: var(--coral); }

/* ===== Blagues ===== */
.jokes { background: var(--cream); }
.joke-card {
  background: var(--paper); border-radius: 16px; padding: 18px 24px; margin-bottom: 14px;
  border-left: 5px solid var(--butter);
}
.joke-card .q { font-weight: 700; }
.joke-card .a { color: var(--grey); margin-top: 4px; }
.more-jokes { text-align: center; margin-top: 22px; }

/* ===== Histoire ===== */
.story { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.story img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; border: 3px solid var(--sage); }
.story .text { flex: 1; min-width: 260px; }
.story h3 { font-size: 1.6rem; color: var(--coral); margin-bottom: 12px; }
.story p { margin-bottom: 10px; }

/* ===== Personnages (trio) ===== */
.characters { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin: 30px 0 10px; }
.characters img { width: 110px; height: 110px; object-fit: contain; }
.characters .cap { text-align: center; font-size: 0.85rem; color: var(--grey); margin-top: 6px; }

/* ===== Pied de page ===== */
footer { background: var(--teal); color: #fff; text-align: center; padding: 32px 20px; margin-top: 30px; }
footer .brand { color: #fff; }
footer p { font-size: 0.9rem; opacity: 0.92; margin-top: 6px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .story { justify-content: center; text-align: center; }
}
