/* French Quiz Game — website shell stylesheet.
   Plain CSS, no frameworks, no external fonts or images.
   System font stack only. French blue / white / red accents. */

:root {
  --blue: #0055a4;
  --navy: #003a70;
  --red: #ef4135;
  --ink: #1f2937;
  --muted: #5b6470;
  --bg: #fffef8;
  --line: #e5e7eb;
  --soft-blue: #e8f0fa;
  --soft-red: #fdecea;
  --soft-yellow: #fef3c7;
  --amber: #b45309;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* French tricolor stripe */
.tricolor {
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 33%, #ffffff 33% 66%, var(--red) 66% 100%);
}

header.site {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

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

nav.main {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

nav.main a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}

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

nav.main a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--red);
}

/* Section highlight: the French section (Kids, Adults, Game pages) marks
   the French nav item as the current section, not the current page. */
nav.main a[aria-current="true"] {
  color: var(--blue);
  border-bottom-color: var(--red);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

main.home { max-width: 1200px; }

h1 {
  font-size: 2.3rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 12px;
}

h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin: 36px 0 10px;
}

h3 { color: var(--navy); margin: 0 0 8px; }

p { margin: 0 0 14px; }

.lead { font-size: 1.12rem; }

.eyebrow {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 4px;
}

.hero { text-align: center; padding: 20px 0 8px; }

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card.kids { border-top: 6px solid var(--blue); }
.card.adults { border-top: 6px solid var(--red); }

.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover { background: var(--navy); }

.btn.red { background: var(--red); }
.btn.red:hover { background: #c93328; }

/* Outlined pill button: transparent with a blue edge, fills on hover.
   Secondary actions next to the solid Play button. */
.btn.outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn.outline:hover { background: var(--blue); color: #ffffff; }

.btn.big {
  font-size: 1.15rem;
  padding: 16px 34px;
}

.play-strip {
  text-align: center;
  margin-top: 40px;
  padding: 28px 20px;
  background: var(--soft-blue);
  border-radius: 16px;
}

.note {
  background: var(--soft-blue);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 20px 0;
}

.contact {
  background: var(--soft-blue);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-top: 48px;
  text-align: center;
}

.contact h2 {
  margin-bottom: 8px;
}

.contact p {
  margin: 0;
}

/* Contact message box (homepage): a plain box that opens the visitor's
   email app, addressed to us, when they hit Send. */
.contact-form {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: left;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 4px;
}

.contact-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 12px;
}

.note.red {
  background: var(--soft-red);
  border-left-color: var(--red);
}

.draft-banner {
  background: var(--soft-yellow);
  border: 2px dashed var(--amber);
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 24px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.features li {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
}

.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }

.back { margin-top: 36px; }
.back a { color: var(--blue); font-weight: 600; text-decoration: none; }

.placeholder-box {
  background: var(--soft-yellow);
  border: 2px dashed var(--amber);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  font-size: 1.1rem;
}

footer.site {
  border-top: none;
  background: #e8f1fc;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-inner p { margin: 0; }

footer.site a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Footer navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin: 0;
}

/* Subjects dropdown (main nav): click to open, hover also opens on desktop. */
.dropdown { position: relative; }

.dropbtn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 2px;
  cursor: pointer;
  white-space: nowrap;
}

.dropbtn:hover { color: var(--blue); }

.dropbtn[aria-current="true"] {
  color: var(--blue);
  border-bottom-color: var(--red);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
}

.dropdown.open .dropdown-menu,
.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a,
.dropdown-menu .disabled {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.dropdown-menu a:hover { background: var(--soft-blue); color: var(--blue); }

.dropdown-menu .disabled { color: var(--muted); cursor: not-allowed; }

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}

.tag.available { background: #dcfce7; color: #166534; }
.tag.soon { background: var(--soft-yellow); color: var(--amber); }

/* Homepage: hero, subjects, featured game, learners, how it works, updates. */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: linear-gradient(180deg, #fdf3e3, rgba(253, 243, 227, 0));
  border-radius: 24px;
}

.hero-copy h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-visual { position: relative; }

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.soon-card {
  position: absolute;
  right: 0;
  top: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 14px 16px;
  transform: rotate(2deg);
  max-width: 210px;
}

.soon-card p { margin: 0 0 8px; }

.soon-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.soon-card li {
  background: var(--soft-blue);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.subjects { text-align: center; margin-top: 32px; }

.subjects h2 { margin-bottom: 8px; }

.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  text-align: left;
}

.subject-card {
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.subject-card.french { border: 2px solid var(--blue); }

.subject-illo {
  flex: 0 0 120px;
  width: 120px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.subject-card h3 { margin-bottom: 6px; }

.subject-card p { margin: 0 0 10px; }

.subject-card p:last-child { margin-bottom: 0; }

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #e8f1fc;
  border-radius: 20px;
  padding: 28px;
  margin-top: 48px;
}

.featured-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.featured-copy h2 { margin-top: 0; }

.fr-red { color: var(--red); }

.feature-checks {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-weight: 600;
}

.learners { text-align: center; margin-top: 48px; }

.learner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.learner-card {
  background: #fffdf5;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.learner-icon { font-size: 2.2rem; line-height: 1; }

.learner-card h3 { margin-bottom: 4px; }

.learner-card p { margin: 0; color: var(--muted); }

.how { text-align: center; margin-top: 48px; }

.how-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.how-steps li { position: relative; padding-left: 56px; }

.how-steps li::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 6px;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 700;
}

.how-steps li:last-child::after { display: none; }

.how-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.how-steps li:nth-child(2)::before { background: var(--red); }

.how-steps li:nth-child(3)::before { background: #16a34a; }

.how-steps li strong {
  display: block;
  color: var(--navy);
}

.how-steps li span { color: var(--muted); }

.updates {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: #fdf3e3;
  border: 1px solid #f5e0c0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 48px;
}

.updates-icon { font-size: 2rem; margin: 0; }

.updates h2 { margin: 0 0 4px; }

.updates p { margin: 0; }

.updates > div { flex: 1; min-width: 220px; }

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  main { padding-top: 24px; }
  .hero-split { grid-template-columns: 1fr; padding: 24px 16px 16px; }
  .subjects { margin-top: 24px; }
  .hero-copy h1 { font-size: 2rem; }
  .soon-card { position: static; transform: none; max-width: none; margin-top: 12px; }
  .featured { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li::after { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
