
:root {
  --ink: #082a3f;
  --muted: #607887;
  --cream: #fff4d8;
  --sand: #fff1c8;
  --night: #07163e;
  --shadow: 0 14px 32px rgba(4, 34, 53, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
  background: #0d657c;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

button:focus-visible {
  outline: 4px solid rgba(255, 198, 42, .8);
  outline-offset: 3px;
}

.outer-background {
  position: fixed;
  inset: -30px;
  z-index: -2;
  background:
    linear-gradient(rgba(1, 34, 48, .45), rgba(1, 34, 48, .68)),
    var(--territory-bg-day, url("image/guadeloupe_jour.png")) center / cover no-repeat;
  filter: blur(18px) saturate(.85);
  transform: scale(1.08);
}

body[data-theme="night"] .outer-background {
  background-image:
    linear-gradient(rgba(1, 8, 28, .52), rgba(1, 8, 28, .76)),
    var(--territory-bg-night, url("image/guadeloupe_nuit.png"));
}

.app {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: auto;
  padding-bottom: 78px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 70px rgba(0, 0, 0, .32);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

/* -----------------------------------------------------
   Accueil BananaGo
----------------------------------------------------- */
.home-cover {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 24px;

  background:
    var(--territory-bg-day, url("image/guadeloupe_jour.png"))
    center top / cover no-repeat;
}

.app[data-theme="night"] .home-cover {
  background:
    var(--territory-bg-night, url("image/guadeloupe_nuit.png"))
    center top / cover no-repeat;
}

/* ===== FONDS JOUR PAR TERRITOIRE ===== */

.app[data-territory="guadeloupe"] .home-cover {
  background: url("image/guadeloupe_jour.png") center top / cover no-repeat;
}

.app[data-territory="martinique"] .home-cover {
  background: url("image/martinique_jour.png") center top / cover no-repeat;
}

.app[data-territory="guyane"] .home-cover {
  background: url("image/guyane_jour.png") center top / cover no-repeat;
}

.app[data-territory="reunion"] .home-cover {
  background: url("image/reunion_jour.png") center top / cover no-repeat;
}


/* ===== FONDS NUIT PAR TERRITOIRE ===== */

.app[data-theme="night"][data-territory="guadeloupe"] .home-cover {
  background: url("image/guadeloupe_nuit.png") center top / cover no-repeat;
}

.app[data-theme="night"][data-territory="martinique"] .home-cover {
  background: url("image/martinique_nuit.png") center top / cover no-repeat;
}

.app[data-theme="night"][data-territory="guyane"] .home-cover {
  background: url("image/guyane_nuit.png") center top / cover no-repeat;
}

.app[data-theme="night"][data-territory="reunion"] .home-cover {
  background: url("image/reunion_nuit.png") center top / cover no-repeat;
}

.home-cover__sky,
.home-cover__sparkles,
.home-cover__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-cover__sky {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 248, 203, .78), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .44), transparent 18%),
    radial-gradient(circle at 58% 34%, rgba(255, 255, 255, .22), transparent 16%);
}

.home-cover__sparkles {
  background-image:
    radial-gradient(circle at 14% 40%, rgba(255, 208, 69, .88) 0 2px, transparent 3px),
    radial-gradient(circle at 52% 23%, rgba(255, 255, 255, .82) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 44%, rgba(255, 255, 255, .78) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 11%, rgba(255, 226, 111, .90) 0 1.8px, transparent 3px),
    radial-gradient(circle at 21% 72%, rgba(255, 255, 255, .75) 0 2px, transparent 3px);
  opacity: .8;
}

.home-cover__veil {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 25%),
    linear-gradient(90deg, rgba(255, 255, 255, .14), transparent 45%),
    linear-gradient(0deg, rgba(255, 246, 211, .52), transparent 32%);
}

.app[data-theme="night"] .home-cover__sky {
  background:
    radial-gradient(circle at 15% 16%, rgba(255, 244, 184, .18), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .14), transparent 16%),
    radial-gradient(circle at 56% 34%, rgba(255, 255, 255, .08), transparent 16%);
}

.app[data-theme="night"] .home-cover__sparkles {
  opacity: .95;
}

.app[data-theme="night"] .home-cover__veil {
  background:
    linear-gradient(180deg, rgba(2, 10, 36, .10), transparent 28%),
    linear-gradient(90deg, rgba(2, 10, 36, .20), transparent 48%),
    linear-gradient(0deg, rgba(4, 15, 49, .70), transparent 26%);
}

.home-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-logo {
  width: min(270px, 68vw);
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .18));
}

.home-actions {
  display: flex;
  gap: 8px;
}

.round-action {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(8, 42, 63, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px rgba(4, 34, 53, .12);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.theme-toggle {
  border: 3px solid #ffd14f;
}

.home-hero {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
}

.hero-copy {
  min-width: 0;
  padding-top: 22px;
}

.greeting {
  margin: 0 0 6px;
  color: #0b8e83;
  font-size: 15px;
  font-weight: 1000;
}

.app[data-theme="night"] .greeting {
  color: #fff4b1;
}

.hero-copy h1 {
  margin: 0;
  max-width: 250px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(30px, 8.1vw, 43px);
  line-height: .92;
  letter-spacing: -2.5px;
  text-shadow: 0 4px 10px rgba(255, 255, 255, .24);
}

.app[data-theme="night"] .hero-copy h1 {
  color: #fff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

.hero-subtitle {
  max-width: 210px;
  margin: 12px 0 0;
  color: #123248;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.app[data-theme="night"] .hero-subtitle {
  color: rgba(255, 255, 255, .88);
}

.mascot-stage {
  position: relative;
  height: 270px;
  z-index: 2;
}

.mascot {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 184px;
  height: auto;
  filter: drop-shadow(0 20px 18px rgba(0, 0, 0, .22));
  transition: opacity .35s;
}

.mascot--night {
  opacity: 0;
  top : 18px;
  right : 9px;
  transform: scaleX(1.55) scaleY(1.15);
  transform-origin: bottom center;
}

.app[data-theme="night"] .mascot--day {
  opacity: 0;
}

.app[data-theme="night"] .mascot--night {
  opacity: 1;
}

.mascot-glow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 67, .34), transparent 68%);
  filter: blur(8px);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.mascot-bubble {
  position: absolute;
  z-index: 10;

  top: -18px;
  left: -110px;

  width: 165px;
  height: 72px;
  padding: 7px 12px;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 4px solid #111111;
  border-radius: 50%;

  color: #111111;
  text-align: center;

  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-weight: 700;
  line-height: 1.05;

  box-shadow: 2px 4px 0 rgba(0,0,0,.12);
}

.app[data-theme="night"] .mascot-bubble {
  background: #ffffff !important;
  color: #111111 !important;
}

.mascot-bubble::after {
  content: "";
  position: absolute;

  width: 34px;
  height: 22px;

  right: -5px;
  bottom: 1px;

  background: #ffffff;

  clip-path: polygon(
    0 0,
    100% 0,
    50% 100%
  );

  transform: rotate(-23deg);

  z-index: 5;
}

/* Chaque ligne reste exactement comme on la veut */
.mascot-bubble span,
.mascot-bubble strong {
  display: block;
  white-space: nowrap;
}

.mascot-bubble span {
  font-size: 13px;
}

.mascot-bubble strong {
  margin: 2px 0;
  font-size: 16px;
  font-weight: 900;
}

.bubble-tail {
  position: absolute;
  width: 58px;
  height: 48px;

  right: -45px;
  bottom: -20px;

  overflow: visible;

  transform: rotate(45deg);
  transform-origin: 12px 12px;
}

.mascot-float {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 100%;
  height: 100%;

  animation: banana-jump 2.4s ease-in-out infinite;
  pointer-events: none;
}


.app[data-theme="night"] .mascot-bubble {
  color: #fff2a8;
  background: linear-gradient(135deg, rgba(6, 22, 58, .94), rgba(18, 37, 86, .94));
}

.sun-route {
  position: relative;
  z-index: 7;
  width: min(100%, 250px);
  margin: -6px 0 0 auto;
  padding: 10px 12px 8px;
  color: #082a3f;
  border-radius: 19px;
  background: rgba(255, 255, 255, .18);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}

.app[data-theme="night"] .sun-route {
  color: #fff;
  background: rgba(4, 15, 49, .24);
  text-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}

.sun-route__curve {
  position: relative;
  height: 58px;
}

.sun-route__line {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 4px;
  height: 47px;
  border-top: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -1px 0 rgba(5, 92, 119, .2);
}

.sun-route__line::before,
.sun-route__line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.sun-route__line::before { left: -2px; }
.sun-route__line::after { right: -2px; }

.sun-route__marker {
  position: absolute;
  z-index: 2;
  left: 10%;
  top: 25px;
  font-size: 29px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .24));
  transition: left .5s ease, top .5s ease;
}

.sun-route__times {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  font-size: 8px;
  font-weight: 1000;
}

.sun-route p {
  margin: 3px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.sun-route strong {
  margin-left: 4px;
  font-size: 15px;
}

.mode-stack {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.mode {
  display: grid;
  grid-template-columns: 49px 1fr 20px;
  align-items: center;
  min-height: 68px;
  padding: 8px 12px;
  color: #fff;
  text-align: left;
  border: 2px solid rgba(255, 255, 255, .38);
  border-radius: 22px;
  box-shadow: 0 7px 0 rgba(77, 38, 0, .1), 0 12px 20px rgba(4, 34, 53, .15);
  cursor: pointer;
  margin-left: auto;
justify-self: end;
}

.mode--near {
  width: 74%;
  background: linear-gradient(135deg, #08aa9f, #2bc9b5);
}

.mode--place {
  width: 84%;
  background: linear-gradient(135deg, #f2a20c, #ffc43a);
}

.mode--route {
  width: 92%;
  background: linear-gradient(135deg, #e93f70, #fb6d89);
}

.mode__icon {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  font-size: 21px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.mode__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mode__copy b {
  font-size: 18px;
  line-height: 1.02;
}

.mode__copy small {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, .94);
}

.mode__end {
  font-size: 28px;
  font-weight: 1000;
}

/* -----------------------------------------------------
   Univers
----------------------------------------------------- */
.universes {
  position: relative;
  z-index: 10;
  padding: 16px 15px 20px;
  background: linear-gradient(180deg, rgba(255, 251, 232, .97), rgba(255, 239, 197, .98));
}

.app[data-theme="night"] .universes {
  color: #fff;
  background: linear-gradient(180deg, #071940, #06132e);
}

.universes__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.universes__title span {
  color: #e9a300;
}

.universes__title h2 {
  margin: 0;
  font-size: 19px;
}

.universe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 6px;
}

.universe {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .15s ease;
}

.universe:hover {
  transform: translateY(-3px);
}

.universe:active {
  transform: scale(.95);
}

.universe img {
  display: block;
  width: min(27vw, 111px);
  height: min(27vw, 111px);
  object-fit: contain;
  filter: drop-shadow(0 8px 5px rgba(4, 34, 53, .18));
}

.universe b {
  margin-top: -3px;
  font-size: 12px;
  font-weight: 1000;
}

/* -----------------------------------------------------
   Cartes illustrées
----------------------------------------------------- */
.illustrated-cards {
  display: grid;
  gap: 13px;
  padding: 15px 14px 23px;
  background: #fff7e8;
}

.app[data-theme="night"] .illustrated-cards {
  background: #06132e;
}

.illustrated-card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.illustrated-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -----------------------------------------------------
   Pages secondaires
----------------------------------------------------- */
.secondary-page {
  min-height: calc(100svh - 78px);
  padding: 16px 14px 28px;
  background:
    linear-gradient(rgba(255, 247, 232, .78), rgba(255, 247, 232, .95)),
    url("image/fond_jour.png") center / cover fixed;
}

.app[data-theme="night"] .secondary-page {
  color: #fff;
  background-image:
    linear-gradient(rgba(3, 12, 40, .76), rgba(3, 12, 40, .95)),
    var(--territory-bg-night, url("image/guadeloupe_nuit.png"));
}

.back-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 33px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.secondary-page__visual {
  display: block;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.secondary-page__card {
  margin-top: 14px;
  padding: 21px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}

.app[data-theme="night"] .secondary-page__card {
  background: rgba(8, 24, 61, .94);
}

.secondary-page__card small {
  color: #008d8c;
  font-weight: 1000;
  letter-spacing: 1.2px;
}

.secondary-page__card h1 {
  margin: 7px 0;
  font-size: 31px;
  line-height: 1;
}

.secondary-page__card p {
  color: var(--muted);
  line-height: 1.45;
}

.app[data-theme="night"] .secondary-page__card p {
  color: #bdc9da;
}

.primary-button,
.soon button {
  width: 100%;
  padding: 13px;
  color: #fff;
  font-weight: 1000;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff6c88, #ec3d68);
  box-shadow: 0 6px 0 #b92245;
  cursor: pointer;
}

/* -----------------------------------------------------
   Vue "bientôt"
----------------------------------------------------- */
.soon {
  display: flex;
  min-height: calc(100svh - 78px);
  padding: 35px 25px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(255, 250, 237, .86), rgba(255, 250, 237, .96)),
    var(--territory-bg-day, url("image/guadeloupe_jour.png")) center / cover no-repeat;
}

.app[data-theme="night"] .soon {
  color: #fff;
  background-image:
    linear-gradient(rgba(3, 12, 40, .84), rgba(3, 12, 40, .96)),
    var(--territory-bg-night, url("image/guadeloupe_nuit.png"));
}

.soon img {
  width: 230px;
  max-width: 75%;
  height: auto;
  margin-bottom: 18px;
}

.soon small {
  color: #008d8c;
  font-weight: 1000;
  letter-spacing: 1.3px;
}

.soon h1 {
  margin: 8px 0;
  font-size: 34px;
}

.soon p {
  color: var(--muted);
  line-height: 1.4;
}

.app[data-theme="night"] .soon p {
  color: #bdc9da;
}

/* -----------------------------------------------------
   Navigation basse
----------------------------------------------------- */
.bottom-nav {
  position: fixed;
  z-index: 80;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 480px);
  height: 78px;
  margin: auto;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  border-radius: 27px 27px 0 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -12px 27px rgba(4, 34, 53, .14);
  backdrop-filter: blur(15px);
}

.app[data-theme="night"] .bottom-nav {
  background: rgba(5, 17, 47, .97);
}

.nav-item,
.nav-banana {
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #637887;
}

.app[data-theme="night"] .nav-item {
  color: #b8c4d5;
}

.nav-item span {
  font-size: 23px;
  line-height: 1;
}

.nav-item small {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 900;
}

.nav-item.is-active {
  color: #efa900;
}

.nav-banana {
  align-self: center;
  justify-self: center;
  width: 65px;
  height: 65px;
  margin-top: -31px;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff5a6, #ffca2f);
  box-shadow: 0 8px 0 #df9700, 0 12px 21px rgba(145, 91, 0, .26);
}

.app[data-theme="night"] .nav-banana {
  border-color: #07163e;
}

.nav-banana img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 94px;
  max-width: min(350px, calc(100vw - 28px));
  padding: 11px 15px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  border-radius: 17px;
  background: rgba(6, 35, 55, .94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: .22s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* -----------------------------------------------------
   Changement de territoire
----------------------------------------------------- */
.territory-switcher {
  min-height: calc(100svh - 78px);
  padding: 28px 18px 34px;
  color: #07344b;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(255, 244, 205, .94)),
    var(--territory-bg-day, url("image/guadeloupe_jour.png")) center / cover fixed;
}

.app[data-theme="night"] .territory-switcher {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3, 12, 40, .70), rgba(4, 17, 48, .96)),
    var(--territory-bg-night, url("image/guadeloupe_nuit.png")) center / cover fixed;
}

.territory-switcher__back {
  position: absolute;
  top: 16px;
  left: 14px;
  z-index: 4;
}

.territory-switcher__logo {
  width: 190px;
  max-width: 62vw;
  margin: 8px auto 18px;
  filter: drop-shadow(0 9px 10px rgba(0, 0, 0, .18));
}

.territory-switcher > small {
  display: block;
  color: #087b7a;
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 1.7px;
}

.app[data-theme="night"] .territory-switcher > small {
  color: #8deae6;
}

.territory-switcher h1 {
  margin: 7px 0 7px;
  font-size: 31px;
  line-height: 1;
}

.territory-switcher > p {
  max-width: 380px;
  margin: 0 auto;
  color: #52717f;
  font-size: 12px;
  line-height: 1.45;
}

.app[data-theme="night"] .territory-switcher > p {
  color: rgba(255, 255, 255, .78);
}

.territory-switcher__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px auto 0;
  max-width: 420px;
}

.territory-switcher__grid button,
.territory-switcher__grid a {
  display: flex;
  min-height: 145px;
  padding: 16px 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #07344b;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 25px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 24px rgba(3, 42, 61, .15);
  cursor: pointer;
}

.territory-switcher__grid button span,
.territory-switcher__grid a span {
  font-size: 40px;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .12));
}

.territory-switcher__grid button b,
.territory-switcher__grid a b {
  font-size: 17px;
}

.territory-switcher__grid button small,
.territory-switcher__grid a small {
  font-size: 9px;
  color: #5a7482;
}

.territory-switcher__grid button.is-current,
.territory-switcher__grid a.is-current {
  border-color: #ffd043;
  box-shadow: 0 0 0 4px rgba(255, 208, 67, .25), 0 14px 26px rgba(3, 42, 61, .18);
}

.territory-switcher__grid button.is-current::after,
.territory-switcher__grid a.is-current::after {
  content: "ACTUEL";
  margin-top: 4px;
  padding: 4px 8px;
  color: #6b4d00;
  font-size: 7px;
  font-weight: 1000;
  letter-spacing: 1px;
  border-radius: 999px;
  background: #ffe47c;
}

.app[data-theme="night"] .territory-switcher__grid button,
.app[data-theme="night"] .territory-switcher__grid a {
  color: #fff;
  border-color: rgba(255, 255, 255, .15);
  background: rgba(6, 28, 66, .86);
}

.app[data-theme="night"] .territory-switcher__grid button small,
.app[data-theme="night"] .territory-switcher__grid a small {
  color: rgba(255, 255, 255, .72);
}

.territory-switcher__note {
  margin-top: 18px !important;
  font-size: 10px !important;
}

/* -----------------------------------------------------
   Responsive + animations
----------------------------------------------------- */
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes bubble-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: .68; }
}

@media (max-width: 390px) {
  .home-cover {
    padding-inline: 14px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 154px;
  }

  .hero-copy h1 {
  margin: 0;
  max-width: 230px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(34px, 9vw, 48px);
  line-height: .92;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 10px rgba(255, 255, 255, .24);
}

  .hero-line {
  display: inline-block;
  white-space: nowrap;
}

 .hero-subtitle {
  max-width: 220px;
  margin: 10px 0 0;
  color: #123248;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 900;
}

  .mascot-stage {
    height: 235px;
  }

  .mascot {
    right: -8px;
    width: 160px;
  }

  .mascot-bubble {
    top: 12px;
    left: -26px;
    max-width: 138px;
    padding: 9px 11px;
    font-size: 9px;
  }

  .sun-route {
    width: min(100%, 220px);
  }

  .mode__copy b {
    font-size: 16px;
  }

  .universe img {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 360px) {
  .home-logo {
    width: 220px;
  }

  .home-actions {
    gap: 6px;
  }

  .round-action {
    width: 42px;
    height: 42px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .mascot {
    width: 148px;
  }

  .mode {
    grid-template-columns: 45px 1fr 18px;
    min-height: 64px;
  }

  .mode__icon {
    width: 37px;
    height: 37px;
    font-size: 19px;
  }

  .mode__copy small {
    font-size: 9px;
  }

  .territory-switcher__grid {
    gap: 9px;
  }

  .territory-switcher__grid button,
  .territory-switcher__grid a {
    min-height: 132px;
    padding-inline: 8px;
  }

  .territory-switcher__grid button b,
  .territory-switcher__grid a b {
    font-size: 15px;
  }
}

@media (min-width: 700px) {
  body {
    padding: 22px;
  }

  .app {
    min-height: calc(100svh - 44px);
    border-radius: 34px;
  }

  .bottom-nav {
    bottom: 22px;
    border-radius: 27px;
  }

  .toast {
    bottom: 118px;
  }
}


body[data-theme="night"] .hero-copy h1, html[data-theme="night"] .hero-copy h1 { color: #fff; }
body[data-theme="night"] .hero-subtitle, html[data-theme="night"] .hero-subtitle { color: rgba(255,255,255,.88); }
body[data-theme="night"] .home-cover, html[data-theme="night"] .home-cover {
  background:
    linear-gradient(180deg, rgba(4, 14, 46, .18), rgba(4, 14, 46, .02)),
    url("image/fond_nuit.png") center top / cover no-repeat,
    var(--territory-bg-night, url("image/guadeloupe_nuit.png")) center bottom / cover no-repeat;
}
@keyframes banana-jump {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===== ALIGNEMENT TEXTE ACCUEIL ===== */

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy .greeting,
.hero-copy h1,
.hero-copy .hero-subtitle {
  position: static !important;
  transform: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-copy h1 {
  margin-top: 6px;
  margin-bottom: 14px;
}

.hero-copy .hero-subtitle {
  margin-top: 0;
}

.universes {
  background: transparent !important;
}