/* Babili homepage — modern responsive stylesheet (2026-11-14).
   Replaces the 2013 skel framework for index.html only.
   Same content, same images (images/header.jpg), same blue (#4091bf). */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: #303238;
}

a { color: #fff; }
img { max-width: 100%; height: auto; }

/* ---------- Top navigation ---------- */
.site-header {
  position: relative;
  background: #303238;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 50;
  font-family: "Nunito", "Trebuchet MS", Verdana, sans-serif;
}

.site-header .nav-inner {
  position: relative;
  max-width: 1175px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Mascot: hangs from the top bar, overlapping it and the content
   below (it never takes part in the layout: absolute, clicks pass
   through). The header-right group leaves room for it on the right. */
.mascot {
  position: absolute;
  right: 8px;
  top: 0;
  height: 96px;
  width: auto;
  z-index: 60;
  pointer-events: none;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 130px; /* leaves room for the mascot on the right */
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; }

.site-nav a[aria-current="page"] {
  background: #4091bf;
  color: #fff;
}

/* ---------- Language switch (top right) ----------
   One pill with two flags; the active flag sits on blue. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.lang-switch button,
.lang-switch a {
  background: none;
  border: none;
  border-bottom: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  text-decoration: none;
  -webkit-text-decoration: none;
}

.lang-switch button:hover,
.lang-switch button:focus-visible,
.lang-switch a:hover,
.lang-switch a:focus-visible { background: rgba(255, 255, 255, 0.15); }

.lang-switch button[aria-pressed="true"],
.lang-switch a.active { background: #4091bf; }

/* ---------- Hero / banner ---------- */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/header.jpg") center / cover no-repeat #303238;
  min-height: calc(100svh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.hero-inner { max-width: 720px; }

.hero h1 {
  margin: 0 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.hero h1 strong { font-weight: 800; color: #fff; }

/* Official logo on the homepage hero. The logo brings its own
   white speech bubble, so no pill or background is added here. */
.hero-logo {
  height: 62px;
  width: auto;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  border-radius: 6px;
  background: #4091bf;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out;
}

.button:hover,
.button:focus-visible { background: #50a1cf; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .site-header .nav-inner { min-height: 56px; }

  .mascot { height: 64px; top: 2px; right: 8px; }

  .header-right { margin-right: 90px; }

  .hero-logo { height: 48px; }

  .brand { font-size: 1.35rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-header .nav-inner { flex-wrap: nowrap; }

  .site-nav.open {
    /* Overlay dropdown: floats over the page, never pushes content down. */
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #303238;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }

  .site-nav ul { flex-direction: column; padding: 0.5rem 0 1rem; }

  .site-nav a { padding: 0.75rem 0.5rem; }

  /* Fit everything on one screen, no vertical scrolling:
     smaller headline (clear of the phone in the photo), tighter
     spacing, slimmer buttons. */
  .hero {
    min-height: calc(100svh - 60px);
    padding: 1rem 1.25rem;
    background-position: center 30%;
  }

  .hero h1 {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    /* Logo + centre title sit 20px higher on phones; the buttons stay put. */
    transform: translateY(-20px);
  }

  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }

  .button { text-align: center; padding: 0.85rem 1.25rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

/* ---------- Inner pages (fr/ and en/) ---------- */
.page {
  background: #fff;
  color: #333;
}

/* Blue title band, so a content page opens like a designed page,
   not a bare wall of text. */
.page-hero {
  background: #4091bf;
  color: #fff;
  text-align: center;
  padding: 2.25rem 1.25rem 2rem;
}

.page-hero-inner { max-width: 720px; margin: 0 auto; }

.page-hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.25;
}

.page-hero .lede {
  margin: 0.6rem 0 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.page-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-inner h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #3081af;
}

.page-inner p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.1rem;
}

.page-inner a { color: #3081af; }

.page-inner .button { color: #fff; }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0.5rem;
}

.form-frame {
  width: 100%;
  max-width: 760px;
  height: 900px;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: block;
  margin: 1rem auto;
}

/* Proper Babili form (replaces the Google Form iframe on jenveuxun).
   Plain HTML form, submitted to Web3Forms, styled like the site. */
.babili-form {
  width: 100%;
  max-width: 760px;
  margin: 1rem auto;
  text-align: left;
}

.babili-form label {
  display: block;
  font-weight: 800;
  margin: 1rem 0 0.35rem;
}

.babili-form input,
.babili-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Nunito', Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #303238;
  background: #fff;
}

.babili-form input:focus,
.babili-form textarea:focus {
  outline: none;
  border-color: #4091bf;
  box-shadow: 0 0 0 2px rgba(64, 145, 191, 0.25);
}

.babili-form textarea { min-height: 120px; resize: vertical; }

.babili-form button[type="submit"] {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 6px;
  background: #4091bf;
  color: #fff;
  font-family: 'Nunito', Verdana, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.babili-form button[type="submit"]:hover { background: #50a1cf; }

.form-success {
  display: none;
  max-width: 760px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  font-weight: 700;
}

.form-error {
  display: none;
  max-width: 760px;
  margin: 1rem auto;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a94442;
  font-weight: 700;
}

.site-footer {
  background: #303238;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.25rem 1rem;
  font-size: 0.9rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.85); }
