/* ============================================
   Premier Repas — Feuille de styles
   Palette : beige/jaune clair, blanc, gris, rouge pastel
   ============================================ */

:root {
  --beige: #f7f1e3;
  --beige-clair: #fbf7ee;
  --jaune-doux: #f3e9cf;
  --blanc: #ffffff;
  --gris-texte: #6b6b66;
  --gris-clair: #e8e4da;
  --sombre: #2e2c28;
  --rouge-pastel: #d98880;
  --rouge-pastel-hover: #c9736a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sombre);
  background-color: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sombre);
}

p {
  color: var(--gris-texte);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Taches floues décoratives ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}

.blob-beige {
  background: var(--jaune-doux);
}

.blob-rose {
  background: rgba(217, 136, 128, 0.35);
}

/* ---------- Header (verre dépoli) ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(232, 228, 218, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--sombre);
}

.logo span {
  color: var(--rouge-pastel);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--gris-texte);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--sombre);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--sombre);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--beige-clair) 0%, var(--blanc) 100%);
  padding: 96px 0 88px;
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--rouge-pastel);
  color: var(--blanc);
  box-shadow: 0 4px 14px rgba(217, 136, 128, 0.3);
}

.btn-primary:hover {
  background-color: var(--rouge-pastel-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--sombre);
  border: 1px solid var(--gris-clair);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--rouge-pastel);
  color: var(--rouge-pastel);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 88px 0;
}

.section .container {
  position: relative;
  z-index: 1;
}

.section-alt {
  background-color: var(--beige-clair);
  overflow: hidden;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* ---------- Cartes (Bien manger) — effet verre ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 228, 218, 0.8);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.card svg {
  width: 44px;
  height: 44px;
  stroke: var(--rouge-pastel);
  stroke-width: 1.2;
  fill: none;
  margin: 0 auto 20px;
  display: block;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
}

/* ---------- E-book ---------- */

.ebook-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.ebook-cover {
  position: relative;
  background: linear-gradient(150deg, rgba(243, 233, 207, 0.75) 0%, rgba(247, 241, 227, 0.75) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 48px 40px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(232, 228, 218, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  max-width: 360px;
  margin: 0 auto;
  z-index: 1;
}

.ebook-cover .cover-brand {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gris-texte);
}

.ebook-cover .cover-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--sombre);
}

.ebook-cover .cover-sub {
  font-size: 0.85rem;
  color: var(--gris-texte);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 16px;
}

.ebook-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 20px;
}

.ebook-info > p {
  margin-bottom: 24px;
}

.ebook-topics {
  list-style: none;
  margin-bottom: 32px;
}

.ebook-topics li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--gris-texte);
  font-size: 0.95rem;
}

.ebook-topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--rouge-pastel);
  border-radius: 50%;
}

.ebook-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.ebook-price .price {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--sombre);
}

.ebook-price .price-note {
  font-size: 0.85rem;
  color: var(--gris-texte);
}

/* ---------- CTA finale ---------- */

.cta-final {
  text-align: center;
  overflow: hidden;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-final p {
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gris-texte);
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact a {
  color: var(--rouge-pastel);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.footer {
  background-color: var(--beige);
  padding: 56px 0 32px;
  font-size: 0.85rem;
  color: var(--gris-texte);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--gris-texte);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--sombre);
}

.footer-company {
  text-align: center;
  line-height: 1.9;
  margin-bottom: 24px;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 24px;
}

/* ---------- Pages de politique ---------- */

.policy-page {
  padding: 64px 24px 88px;
  max-width: 760px;
  margin: 0 auto;
}

.policy-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.policy-page h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.policy-page p,
.policy-page li {
  color: var(--gris-texte);
  margin-bottom: 12px;
}

.policy-page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.policy-page a {
  color: var(--rouge-pastel);
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--gris-texte);
}

.back-link:hover {
  color: var(--sombre);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .ebook-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gris-clair);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--gris-clair);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .blob {
    filter: blur(40px);
  }
}
