/* ===== Puits Saint Maurice — welcome page ===== */
/* Pure HTML + CSS. The burger menu uses the checkbox hack (no JS). */

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #2c2a26;
  --muted: #6b665d;
  --accent: #4a6b5a;
  --accent-dark: #38503f;
  --line: #e6e1d8;
  --radius: 16px;
  --shadow: 0 4px 18px rgba(44, 42, 38, 0.08);

  /* Fonts chosen to echo the printed flyer */
  --font-body: "Patrick Hand", "Comic Sans MS", cursive;
  --font-title: "Amatic SC", "Patrick Hand", sans-serif;
  --font-script: "Parisienne", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Offset anchors so headings aren't hidden under the fixed top bar */
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.2rem;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  z-index: 30;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.topbar__title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Burger button ---------- */
.burger {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ---------- Menu mechanics (checkbox hack) ---------- */
.nav-toggle { display: none; }

.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--surface);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 40;
  padding-top: 78px;
  overflow-y: auto;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 14px 26px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--line);
}

.nav__link:active { background: var(--bg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 35;
}

/* When the checkbox is checked: open the panel + show overlay */
.nav-toggle:checked ~ .nav { transform: translateX(0); }
.nav-toggle:checked ~ .nav-overlay { opacity: 1; visibility: visible; }

/* Animate burger into a cross when open */
.nav-toggle:checked ~ .topbar .burger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle:checked ~ .topbar .burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .topbar .burger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Layout ---------- */
main {
  max-width: 640px;
  margin: 0 auto;
  padding: 76px 16px 24px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 26px 14px 30px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--accent-dark);
}

.hero__sub {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px 24px;
  margin: 0 0 18px;
}

.card h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.8px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ico { font-size: 1.2em; line-height: 1; }

.card ul { margin: 0; padding-left: 1.2em; }
.card li { margin-bottom: 10px; }
.card li:last-child { margin-bottom: 0; }

/* ---------- Contacts ---------- */
.contact-list {
  list-style: none;
  padding-left: 0 !important;
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }

.contact-name { font-weight: 600; }

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Wi-Fi ---------- */
.wifi-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 20px;
}

.wifi-info dt {
  font-weight: 600;
  color: var(--muted);
}

.wifi-info dd { margin: 0; }

.wifi-info code {
  background: var(--bg);
  padding: 3px 9px;
  border-radius: 7px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.wifi-qr {
  margin: 0;
  text-align: center;
}

.wifi-qr img {
  width: 200px;
  max-width: 70%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.wifi-qr figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Tips ---------- */
.tips-list {
  list-style: none;
  padding-left: 0 !important;
}

.tips-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tips-list li:last-child { border-bottom: none; }

.tip-label {
  display: block;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

/* ---------- Map links ---------- */
.map-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px dotted var(--accent);
  white-space: nowrap;
}

.map-link::after {
  content: " \1F4CD";
  font-size: 0.85em;
}

.map-link:active { color: var(--accent-dark); }

/* ---------- App store buttons ---------- */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.store-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.store-btn:active { background: var(--accent-dark); }

/* ---------- Farewell ---------- */
.farewell {
  text-align: center;
  padding: 10px 20px 4px;
  font-family: var(--font-script);
  color: var(--accent-dark);
  font-size: 1.7rem;
  line-height: 1.3;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 18px 0 34px;
}

.footer__top {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .hero h1 { font-size: 3.6rem; }
  .hero__sub { font-size: 1.7rem; }
}
