
:root {
  --primary: #3A7CE3;
  --primary-dark: #2764bd;
  --text: #333333;
  --muted: #5b6470;
  --surface: #ffffff;
  --surface-alt: #f5faff;
  --border: #d9e3ef;
  --footer: #f4f7fb;
  --max: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  padding-top: 61px;
  
   /* Maintenir le footer en bas */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }

/* ===== TOP BAR — inspired by the original Mealz page ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}
.nav-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 16px; font-size: 15px; }
.nav-link { color: #4b5563; }
.nav-link:hover, .lang-switch:hover { color: var(--primary); }
.lang-switch { color: var(--primary); font-weight: 700; }
.cta-btn {
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--primary-dark); }

/* ===== HERO ===== */
.hero, .page-hero {
  background: var(--surface-alt);
  text-align: center;
}
.hero { padding: 58px 20px 54px; }
.page-hero { padding: 46px 20px 42px; }
.hero h1, .page-hero h1 {
  color: var(--primary);
  line-height: 1.22;
  margin: 0 auto 16px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.hero h1 { font-size: clamp(34px, 5vw, 48px); max-width: 900px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 46px); max-width: 920px; }
.hero .lead, .page-hero .lead {
  max-width: 800px;
  margin: 0 auto 26px;
  font-size: 18px;
  color: #555;
}
.eyebrow { color: var(--primary-dark); font-weight: 700; margin: 0 0 8px; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.play-badge { width: 200px; height: auto; display: block; }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  color: var(--primary);
  background: #fff;
  font-weight: 700;
}
.breadcrumbs { max-width: 1000px; margin: 0 auto 10px; text-align: center; font-size: 14px; color: #6b7280; }
.breadcrumbs a { color: var(--primary-dark); }

/* ===== FEATURE ROWS — close to the original layout ===== */
.features { width: 100%; }
.feature-row { width: 100%; background: #fff; padding: 26px 0; }
.feature-row.alt { background: var(--surface-alt); }
.feature-gradient { height: 20px; }
.feature-gradient.blue-to-white { background: linear-gradient(180deg, var(--surface-alt) 0%, #fff 100%); }
.feature-gradient.white-to-blue { background: linear-gradient(180deg, #fff 0%, var(--surface-alt) 100%); }
.feature-block {
  max-width: 860px;
  margin: auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
}
.feature-block.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; min-width: 0; }
.feature-text h2, .feature-text h3 {
  margin: 0 0 10px;
  color: var(--primary);
  line-height: 1.22;
}
.feature-text h2 { font-size: 30px; }
.feature-text h3 { font-size: 26px; }
.feature-text p { margin: 0 0 16px; color: #555; font-size: 17px; }
.feature-image-wrap { width: 250px; flex: 0 0 250px; display: flex; justify-content: center; align-items: center; }
.feature-image {
  height: 440px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}
.feature-image.icon-like { height: 420px; max-width: 420px; }
.text-link { color: var(--primary-dark); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 16px; }

/* ===== DETAIL PAGES ===== */
.detail-section { padding: 38px 0; background: #fff; }
.detail-section.alt { background: var(--surface-alt); }
.detail-block {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 64px;
  align-items: center;
}
.detail-block.reverse { grid-template-columns: 290px minmax(0,1fr); }
.detail-visual { display: flex; justify-content: center; }
.detail-visual img { max-height: 480px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.15)); }
.detail-visual img.icon-like { max-height: 430px; max-width: 430px; }
.content h2 { color: var(--primary); font-size: 28px; line-height: 1.25; margin: 30px 0 10px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 21px; margin: 24px 0 8px; }
.content p, .content li { font-size: 17px; color: #4d5763; }
.content ul { padding-left: 22px; }
.download-inline { margin-top: 22px; }

/* ===== SECTIONS ===== */
.section { padding: 54px 0; }
.section.alt { background: var(--surface-alt); }
.section-title { max-width: 800px; margin: 0 auto 28px; text-align: center; }
.section-title h2 { color: var(--primary); font-size: 32px; line-height: 1.2; margin: 0 0 10px; }
.section-title p { color: #5b6470; font-size: 17px; margin: 0; }
.steps { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; padding: 22px 18px; }
.step-number { width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items:center; justify-content:center; font-weight: 800; }
.step h3 { margin: 0 0 7px; color: var(--primary); }
.step p { margin: 0; color: #5b6470; }
.faq { max-width: 850px; margin: 0 auto; }
details { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; color: #333; }
details p { color: #5b6470; margin: 0 0 16px; }
.related { max-width: 850px; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.related a { border: 1px solid #bfd1ea; background: #fff; color: var(--primary-dark); border-radius: 6px; padding: 10px 14px; font-weight: 700; }
.related a:hover { background: var(--surface-alt); }

/* ===== BOTTOM BAR ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  background: var(--footer);
  border-top: 1px solid #dfe6ef;
  color: #555;
  padding: 14px 20px;
  font-size: 15px;
}
.footer a { color: var(--primary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.footer-contact { display: flex; gap: 5px; flex-wrap: wrap; }

/* ===== ROOT LANGUAGE PAGE ===== */
.language-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.language-box { flex: 1; display:flex; align-items:center; justify-content:center; text-align:center; padding: 60px 20px; background:var(--surface-alt); }
.language-card { max-width: 650px; }
.language-card img { width: 100px; height:100px; }
.language-card h1 { color: var(--primary); font-size: 42px; margin: 18px 0 8px; }
.language-card p { color:#555; }
.language-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:24px; }
.language-actions a { background:var(--primary); color:white; border-radius:5px; padding:11px 18px; font-weight:700; }

@media (max-width: 820px) {
  .desktop-link { display: none; }
  .feature-block, .feature-block.reverse { flex-direction: column; text-align: center; gap: 8px; padding: 10px 24px; }
  .feature-image-wrap { width: auto; flex-basis: auto; }
  .feature-image { height: 330px; margin-top: 8px; }
  .feature-image.icon-like { height: 180px; }
  .link-row { justify-content: center; }
  .detail-block, .detail-block.reverse { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .detail-visual { order: -1; }
  .content ul { display: inline-block; text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .brand span { display: none; }
  body { padding-top: 66px; }
  .navbar { padding: 10px 12px; }
  .brand span { font-size: 22px; }
  .nav-links { gap: 9px; }
  .cta-btn { padding: 8px 9px; font-size: 13px; }
  .lang-switch { font-size: 13px; }
  .hero { padding: 42px 16px 40px; }
  .hero .lead, .page-hero .lead { font-size: 17px; }
  .feature-block { padding-left: 20px; padding-right: 20px; }
  .feature-text h2 { font-size: 27px; }
  .section { padding: 44px 0; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ===== CONTACT PAGE ===== */
.contact-wrap { max-width: 800px; margin: 0 auto; padding: 48px 20px 58px; }
.contact-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 30px;
  box-shadow: 0 5px 20px rgba(24, 55, 95, .06);
}
.contact-card h2 { color: var(--primary); font-size: 28px; line-height: 1.25; margin: 0 0 10px; }
.contact-card p { max-width: 620px; margin: 0 auto 18px; color: #555; font-size: 17px; }
.contact-email {
  display: inline-block;
  max-width: 100%;
  margin: 5px 0 18px;
  padding: 14px 22px;
  border: 1px solid #bfd1ea;
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.contact-email:hover { background: #eaf3ff; text-decoration: underline; }
.contact-note { font-size: 15px !important; color: var(--muted) !important; margin-bottom: 0 !important; }
.contact-help { margin-top: 30px; text-align: center; }
.contact-help h2 { color: var(--primary); font-size: 24px; margin: 0 0 10px; }
.contact-help p { color: var(--muted); margin: 0 auto 16px; }
@media (max-width: 600px) {
  .contact-wrap { padding: 32px 16px 42px; }
  .contact-card { padding: 28px 18px; }
}
