/* Bom dia Portugal — design system premium mobile-first */

:root {
  --gold:     #f4a900;
  --red:      #d00000;
  --green:    #017e48;
  --cream:    #faede3;
  --cream-2:  #f5e1d2;
  --azulejo:  #1e3a8a;
  --azulejo-2:#2a4dab;
  --ink:      #1a1a1a;
  --muted:    #7a6f66;
  --line:     rgba(30, 58, 138, 0.10);
  --card:     #ffffff;
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: #ede4dc;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-image:
    radial-gradient(1200px 600px at 20% 0%, rgba(244, 169, 0, 0.08), transparent 60%),
    radial-gradient(1000px 500px at 80% 100%, rgba(30, 58, 138, 0.05), transparent 60%);
}

/* ───── App container ─────────────────────────────────────────── */
/* Plein écran sur mobile · cadre type téléphone sur desktop preview */
.app {
  position: fixed; inset: 0;
  background: var(--cream);
  overflow: hidden;
  color: var(--ink);
}
@media (min-width: 481px) {
  body { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
  .app {
    position: relative; inset: auto;
    width: min(402px, 100%);
    height: min(874px, calc(100dvh - 48px));
    border-radius: 36px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  }
}

.scroll {
  position: absolute;
  inset: 0 0 calc(84px + var(--safe-bottom)) 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.scroll::-webkit-scrollbar { display: none; }
.scroll[data-screen="situation"],
.scroll[data-screen="sos"] { bottom: 0; }

/* a11y */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ───── Typography helpers ────────────────────────────────────── */
.eyebrow {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ───── Home header ───────────────────────────────────────────── */
.home-header {
  padding: calc(34px + var(--safe-top)) 22px 22px;
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(244, 169, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #fff5ea 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.home-header::before {
  /* Motif azulejos discret en pointillés bicolores */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, var(--azulejo) 1px, transparent 1.5px),
    radial-gradient(circle at 88% 12%, var(--gold) 1px, transparent 1.5px),
    radial-gradient(circle at 8% 80%, var(--green) 1px, transparent 1.5px),
    radial-gradient(circle at 92% 76%, var(--red) 1px, transparent 1.5px);
  background-size: 60px 60px;
  opacity: 0.35; pointer-events: none;
}
.top-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative; z-index: 2;
  margin-bottom: 10px; min-height: 64px;
}
.top-row > :first-child { justify-self: start; }
.top-row > :last-child  { justify-self: end; }
.top-row .mascot        { justify-self: center; }

.brand-logo {
  height: 76px; width: auto; display: block;
  filter: drop-shadow(0 2px 6px rgba(30, 58, 138, 0.12));
}
.mascot { position: relative; width: 72px; height: 72px; margin-top: -18px; z-index: 3; }
.mascot-avatar {
  width: 72px; height: 72px;
  object-fit: contain; object-position: bottom;
  margin-top: 4px; margin-bottom: -14px;
  filter: drop-shadow(0 8px 16px rgba(208, 0, 0, 0.18))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
  display: block;
}

/* Bouton SOS de l'en-tête home — remplace le FAB sur cet écran uniquement */
.sos-pill {
  position: relative; height: 44px; min-width: 60px; padding: 0 16px;
  border: none; border-radius: 999px;
  background: var(--red); color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: 1.5px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow:
    0 6px 18px rgba(208, 0, 0, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.sos-pill::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px; border: 2px solid var(--red); opacity: 0.6;
  animation: pulse 1.8s ease-out infinite; pointer-events: none;
}
.sos-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: white; animation: blink 1.4s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero {
  position: relative; z-index: 2;
  text-align: center; margin-top: 10px;
}
.hero .companion {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 15px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azulejo);
  margin-bottom: 12px;
}
.hero .companion span { color: #1e3a8a; }
.hero h1 {
  margin: 0;
  font-family: 'Permanent Marker', cursive;
  font-weight: 400; font-size: 35px;
  line-height: 0.9; letter-spacing: 0.5px;
  display: flex; flex-direction: row;
  align-items: center; justify-content: center; gap: 10px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.hero h1 .bd { color: var(--green); transform: rotate(-3deg); }
.hero h1 .pt { color: var(--red);   transform: rotate(2deg); }
.hero .tagline {
  font-family: 'Poppins', sans-serif; font-weight: 500;
  font-size: 14px; color: var(--gold);
  margin-top: 14px; letter-spacing: 0.2px;
}

/* ───── Section head ──────────────────────────────────────────── */
.section-head {
  padding: 22px 22px 12px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.section-head .eyebrow { color: var(--azulejo); }
.section-head .count {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 13px; color: var(--muted); letter-spacing: 1px;
}

/* ───── Situation grid ────────────────────────────────────────── */
.sit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 0 18px 24px;
}
.sit-card {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 18px 14px 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 6px 18px rgba(30, 58, 138, 0.06);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 152px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.sit-card:active { transform: scale(0.98); }
.sit-card .num {
  position: absolute; top: 12px; right: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  color: var(--muted); letter-spacing: 1px;
}
.sit-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(30, 58, 138, 0.06); color: var(--azulejo);
}
.sit-card.tone-red   .icon-wrap { background: rgba(208, 0, 0, 0.08);    color: var(--red); }
.sit-card.tone-green .icon-wrap { background: rgba(1, 126, 72, 0.08);   color: var(--green); }
.sit-card.tone-gold  .icon-wrap { background: rgba(244, 169, 0, 0.14);  color: #a87100; }

.sit-card .title-fr {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--azulejo);
  line-height: 1.05; letter-spacing: 0.2px;
  text-transform: uppercase;
}
.sit-card .meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.sit-card .meta strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; color: var(--azulejo);
  font-size: 13px; letter-spacing: 0.5px;
}
.sit-card.locked .icon-wrap,
.sit-card.locked .title-fr,
.sit-card.locked .meta { opacity: 0.4; }
.sit-card.locked::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250, 237, 227, 0) 30%, rgba(250, 237, 227, 0.55) 100%);
  pointer-events: none;
}

.lock-badge {
  position: absolute; top: 12px; left: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: white;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(244, 169, 0, 0.35);
}
.lock-badge.demo-badge {
  background: var(--green);
  box-shadow: 0 4px 10px rgba(1, 126, 72, 0.35);
}

/* ───── Promo (home) ──────────────────────────────────────────── */
.promo {
  margin: 4px 18px 24px;
  border-radius: 24px;
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, var(--azulejo) 0%, #16306b 100%);
  color: white;
  position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.22);
}
.promo::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 0% 100%, rgba(244, 169, 0, 0.35), transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 6px, transparent 6px 14px);
  pointer-events: none;
}
.promo .row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.promo .left { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.promo .eyebrow { color: var(--gold); }
.promo h3 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: 0.3px;
}
.promo p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; opacity: 0.85; }
.price-row {
  position: relative; flex: 1;
  display: flex; flex-direction: row; align-items: baseline; gap: 8px;
}
.price-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 36px;
  color: var(--gold); line-height: 1;
}
.price-sub { font-size: 11px; opacity: 0.7; }
.cta {
  background: var(--gold); color: var(--ink); border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 12px 16px; border-radius: 12px;
  white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 14px rgba(244, 169, 0, 0.35);
}

/* ───── Bottom nav ────────────────────────────────────────────── */
.nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: calc(84px + var(--safe-bottom));
  padding: 10px 22px calc(26px + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-top: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 4px;
  z-index: 20;
}
.nav-btn {
  flex: 1; border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0; cursor: pointer; color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 10px; letter-spacing: 0.4px;
}
.nav-btn.active { color: var(--azulejo); }
.nav-btn.active .nav-icon-wrap { background: rgba(30, 58, 138, 0.10); }
.nav-icon-wrap {
  width: 42px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  transition: background 0.2s;
}

/* ───── Floating SOS ──────────────────────────────────────────── */
.sos-fab {
  position: absolute; right: 18px;
  bottom: calc(100px + var(--safe-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--red); color: white;
  border: 3px solid white;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 16px; letter-spacing: 1px;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(208, 0, 0, 0.45);
  z-index: 25;
}
.sos-fab::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid var(--red); opacity: 0.55;
  animation: pulse 1.8s ease-out infinite;
}

/* ───── Top bar (non-home) ────────────────────────────────────── */
.topbar {
  position: relative;
  padding: calc(32px + var(--safe-top)) 18px 14px;
  display: flex; align-items: center; gap: 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.topbar.sos-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom: none; z-index: 2;
}
.topbar .back {
  width: 38px; height: 38px; border-radius: 50%;
  background: white; border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  color: var(--azulejo); flex-shrink: 0;
}
.topbar .titles { flex: 1; }
.topbar-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px; color: var(--gold);
  text-transform: uppercase;
}
.topbar h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--azulejo);
  line-height: 1; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.guide-title {
  font-family: 'Permanent Marker', cursive !important;
  font-weight: 400 !important;
  font-size: 20px !important;
  text-transform: none !important;
}

/* ───── Tabs ──────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 6px;
  padding: 14px 18px 0;
  background: var(--cream);
}
.tab {
  flex: 1; text-align: center;
  padding: 11px 8px; border-radius: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); background: white;
  border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tab.active {
  background: var(--azulejo); color: white;
  border-color: var(--azulejo);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.tab .badge {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 10px;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 6px; border-radius: 999px;
}
.tab:not(.active) .badge {
  background: rgba(30, 58, 138, 0.08);
  color: var(--azulejo);
}

/* ───── Phrase cards (situation detail) ───────────────────────── */
/* Charte couleur des cartes phrases/vocabulaire :
   · français : or (#f4a900) — Poppins
   · portugais : azulejo bold (#1e3a8a) — Barlow Condensed
   · phonétique : rouge (#d00000) italique — Poppins italic */
.phrase-list {
  padding: 16px 18px 28px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.phrase-card {
  background: white;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 14px 14px 16px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 4px 14px rgba(30, 58, 138, 0.04);
}
.phrase-card .num-tag {
  position: absolute; top: 10px; right: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 10px;
  color: var(--muted); letter-spacing: 1px;
}
.phrase-card .text {
  flex: 1; min-width: 0; padding-right: 18px;
}
.phrase-card .fr {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 12.5px;
  color: var(--gold);
  margin-bottom: 4px; line-height: 1.3;
}
.phrase-card .pt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--azulejo);
  line-height: 1.1; letter-spacing: 0.2px;
}
.phrase-card .pt .gender {
  font-size: 13px; color: var(--red);
  font-weight: 500; margin-left: 6px;
}
.phrase-card .phon {
  font-family: 'Poppins', sans-serif;
  font-style: italic; font-size: 12.5px;
  color: var(--red);
  margin-top: 4px;
}
.phrase-card .save {
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  flex-shrink: 0;
}
.phrase-card .save.on {
  background: rgba(244, 169, 0, 0.14);
  color: var(--gold);
  border-color: rgba(244, 169, 0, 0.4);
}

/* ───── Play button ───────────────────────────────────────────── */
.play-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--azulejo); color: white;
  display: grid; place-items: center; flex-shrink: 0; cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.30);
  position: relative;
}
.play-btn.playing {
  background: var(--gold);
  box-shadow: 0 4px 12px rgba(244, 169, 0, 0.45);
}
.play-btn.playing::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--gold);
  opacity: 0.5; animation: pulse 1.4s ease-out infinite;
}
.play-btn:disabled, .play-mini:disabled {
  opacity: 0.4; cursor: not-allowed; box-shadow: none;
}

/* ───── Lock overlay ──────────────────────────────────────────── */
.lock-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250, 237, 227, 0.40) 0%, rgba(250, 237, 227, 0.96) 60%, rgba(250, 237, 227, 1) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 40px 22px 32px;
  text-align: center; z-index: 5;
  backdrop-filter: blur(2px);
}
.lock-overlay .lock-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); color: white;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(244, 169, 0, 0.4);
  margin-bottom: 16px;
}
.lock-overlay h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--azulejo);
  margin: 0 0 6px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.lock-overlay p {
  font-size: 13px; color: var(--muted);
  margin: 0 0 16px; line-height: 1.45;
  max-width: 280px;
}
.lock-overlay .price-cta {
  display: flex; align-items: center; gap: 10px;
  background: var(--azulejo); color: white; border: none;
  padding: 14px 18px 14px 22px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.32);
}
.lock-overlay .price-cta .price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.lock-overlay .price-cta .text {
  text-align: left;
  display: flex; flex-direction: column;
}
.lock-overlay .price-cta .text small {
  font-size: 10px; letter-spacing: 1.2px;
  text-transform: uppercase; opacity: 0.7;
}
.lock-overlay .price-cta .text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
}

/* ───── SOS screen ────────────────────────────────────────────── */
.sos-hero {
  padding: calc(42px + var(--safe-top)) 22px 22px;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(208, 0, 0, 0.18), transparent 70%),
    linear-gradient(180deg, #fff5ea 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.sos-hero .pulse-ring {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--red); color: white;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 16px 36px rgba(208, 0, 0, 0.35);
}
.sos-hero .pulse-ring::before,
.sos-hero .pulse-ring::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--red);
  animation: pulse 2s ease-out infinite;
}
.sos-hero .pulse-ring::after { animation-delay: 1s; }
.sos-hero .pulse-ring .sos-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 38px; letter-spacing: 3px;
}
.sos-hero h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 26px; color: var(--red);
  margin: 8px 0 6px;
}
.sos-hero p {
  font-size: 13px; color: var(--muted);
  margin: 0 auto; line-height: 1.5;
  max-width: 280px;
}
.sos-play-all {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: white; border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--azulejo);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; font-size: 12px;
  cursor: pointer;
}

.sos-list {
  padding: 18px 18px calc(28px + 84px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 12px;
}
.sos-card {
  border-radius: 20px;
  padding: 16px 14px 16px 18px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  color: white; background: var(--red);
  box-shadow: 0 8px 20px rgba(208, 0, 0, 0.18);
}
.sos-card.green {
  background: var(--green);
  box-shadow: 0 8px 20px rgba(1, 126, 72, 0.18);
}
.sos-card .num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 28px;
  width: 32px; text-align: center; opacity: 0.45;
}
.sos-card .text { flex: 1; min-width: 0; }
.sos-card .fr {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 17px;
  letter-spacing: 0.3px; line-height: 1.1;
  text-transform: uppercase; margin-bottom: 4px;
}
.sos-card .pt {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 13px;
  opacity: 0.92; line-height: 1.3;
}
.sos-card .phon {
  font-family: 'Poppins', sans-serif;
  font-style: italic; font-size: 11.5px;
  opacity: 0.7; margin-top: 2px;
}
/* Boutons audio SOS — 20% plus grands que le standard 44px → 52px */
.sos-card .play-btn {
  width: 52px; height: 52px;
  background: white; color: var(--red);
  box-shadow: none;
}
.sos-card.green .play-btn { color: var(--green); }

/* ───── Guide / Gastronomie ───────────────────────────────────── */
.pills-wrap { position: relative; }
.pills {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 14px 18px 12px;
  -webkit-overflow-scrolling: touch;
}
.pills-fade {
  position: absolute; top: 0; bottom: 0;
  width: 48px; pointer-events: none; z-index: 2;
  transition: opacity 0.2s ease;
}
.pills-fade-left  { left: 0;  background: linear-gradient(90deg,  var(--cream) 0%, rgba(250, 237, 227, 0) 100%); }
.pills-fade-right { right: 0; background: linear-gradient(270deg, var(--cream) 0%, rgba(250, 237, 227, 0) 100%); }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 10px 16px; border-radius: 999px;
  background: white; border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.8px; text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill.active {
  background: var(--azulejo); color: white;
  border-color: var(--azulejo);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.22);
}
.pill .lock { opacity: 0.65; }
.pill-demo { font-size: 9px; opacity: 0.8; }

.food-list {
  padding: 6px 18px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.food-card {
  background: white; border-radius: 22px;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6),
    0 6px 18px rgba(30, 58, 138, 0.05);
}
.food-card .illus {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 169, 0, 0.12), rgba(244, 169, 0, 0.03));
  display: grid; place-items: center;
  color: #a87100; flex-shrink: 0;
  border: 1px solid rgba(244, 169, 0, 0.18);
}
.food-card .body { flex: 1; min-width: 0; }
.food-card .name-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
/* Charte couleur du guide — DANS LE PROMPT :
   · portugais : azulejo bold
   · français : or
   · phonétique : rouge italique
   · anecdote : azulejo */
.food-card .pt {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 19px;
  color: var(--azulejo);
  line-height: 1.05; letter-spacing: 0.2px;
}
.food-card .fr {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; font-size: 12px;
  color: var(--gold); margin-top: 2px;
}
.food-card .phon {
  font-family: 'Poppins', sans-serif;
  font-style: italic; font-size: 11px;
  color: var(--red); margin-top: 4px;
}
.food-card .note {
  font-size: 12px; color: var(--azulejo);
  margin-top: 10px; line-height: 1.5;
  padding-top: 10px;
  border-top: 1px dashed rgba(30, 58, 138, 0.18);
}
.food-card .play-mini {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--azulejo); color: white;
  border: none;
  display: grid; place-items: center; cursor: pointer;
  flex-shrink: 0;
}
.food-card .play-mini.playing { background: var(--gold); }

/* ───── Carnet ────────────────────────────────────────────────── */
.carnet-hero {
  padding: calc(32px + var(--safe-top)) 22px 22px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(30, 58, 138, 0.10), transparent 70%),
    linear-gradient(180deg, #fff5ea 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.carnet-hero h2 {
  font-family: 'Permanent Marker', cursive;
  font-size: 32px; color: var(--azulejo);
  margin: 0 0 6px;
  transform: rotate(-2deg);
  display: inline-block;
}
.carnet-hero .sub {
  font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}
.carnet-form {
  background: white; border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.06);
}
.carnet-form .input {
  display: flex; flex-direction: column; gap: 4px;
}
.carnet-form label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 10px;
  color: var(--azulejo);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.carnet-form input {
  border: none; background: rgba(30, 58, 138, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; color: var(--ink);
  outline: none;
}
.carnet-form input::placeholder { color: rgba(122, 111, 102, 0.7); }
.carnet-form input:focus {
  background: rgba(30, 58, 138, 0.08);
  box-shadow: inset 0 0 0 1px var(--azulejo);
}
.carnet-form .add-btn {
  background: var(--green); color: white; border: none;
  border-radius: 12px; padding: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 6px 14px rgba(1, 126, 72, 0.22);
}
.carnet-toolbar {
  padding: 18px 18px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.carnet-toolbar .count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--azulejo); text-transform: uppercase;
}
.carnet-toolbar .export {
  display: inline-flex; align-items: center; gap: 6px;
  background: white; border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--red); cursor: pointer;
}
.carnet-list {
  padding: 4px 18px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.carnet-entry {
  background: white; border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.carnet-entry::before {
  content: "";
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 4px; border-radius: 4px;
  background: var(--gold);
}
.carnet-entry .body { flex: 1; min-width: 0; padding-left: 8px; }
.carnet-entry .pt {
  font-family: 'Permanent Marker', cursive;
  font-size: 17px; color: var(--azulejo);
  line-height: 1; margin-bottom: 4px;
}
.carnet-entry .fr { font-size: 12px; color: var(--muted); }
.carnet-entry .phon {
  font-size: 11px; font-style: italic;
  color: var(--gold); margin-top: 2px;
}
.carnet-entry .del {
  background: transparent; border: none;
  color: var(--muted); cursor: pointer; padding: 6px;
}

/* ───── Footer logo (toutes pages sauf home) ──────────────────── */
.footer-logo {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: center;
  pointer-events: none; z-index: 18;
}
.footer-logo img {
  height: 22px; width: auto; opacity: 0.75;
  filter: drop-shadow(0 1px 3px rgba(30, 58, 138, 0.10));
}
.footer-logo.above-nav { bottom: calc(88px + var(--safe-bottom)); }
.footer-logo.bare      { bottom: calc(14px + var(--safe-bottom)); }
/* Push content above the logo to avoid overlap */
.scroll[data-screen="guide"], .scroll[data-screen="carnet"] {
  padding-bottom: 36px;
}

/* ───── Paywall modal ─────────────────────────────────────────── */
.paywall-backdrop {
  position: absolute; inset: 0; z-index: 100;
  background: rgba(15, 22, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end;
  animation: fadeIn 0.18s ease-out;
}
.paywall {
  width: 100%; background: white;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 24px 22px calc(32px + var(--safe-bottom));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideUp 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
.paywall-grip {
  width: 44px; height: 4px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 auto 18px;
}
.paywall-brand { text-align: center; margin-bottom: 18px; }
.paywall-title {
  display: inline-flex; gap: 4px;
  font-family: 'Permanent Marker', cursive;
  font-size: 22px;
  transform: rotate(-1deg);
}
.paywall-title .bd { color: var(--green); }
.paywall-title .pt { color: var(--red); }
.paywall-eyebrow {
  margin-top: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase;
}
.paywall-price {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; color: var(--azulejo);
}
.paywall-price .big { font-size: 56px; line-height: 1; }
.paywall-price .mid { font-size: 28px; }
.paywall-price .cur { font-size: 22px; }
.paywall-sub {
  text-align: center; font-size: 12px;
  color: var(--muted); margin-bottom: 18px;
}
.paywall-features {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 18px;
}
.paywall-features .feat {
  display: flex; align-items: flex-start; gap: 10px;
}
.paywall-features .check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--green); color: white;
  display: grid; place-items: center;
  font-size: 12px; flex-shrink: 0;
}
.paywall-features .h {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--azulejo); letter-spacing: 0.3px;
}
.paywall-features .p { font-size: 12px; color: var(--muted); }
.paywall-cta {
  width: 100%; padding: 16px;
  background: var(--azulejo); color: white;
  border: none; border-radius: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 16px;
  letter-spacing: 1.2px; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.32);
}
.paywall-later {
  width: 100%; margin-top: 8px; padding: 10px;
  background: transparent; border: none;
  color: var(--muted); font-size: 12px; cursor: pointer;
}
