/* ============================================
   BRESCA — Sillans-la-Cascade
   Mobile-first CSS
   Palette: #25564D / #D8E9E6 / #AECB55
   Fonts: Cinzel (titres), Optima (textes)
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #25564D;
  --primary-light: #D8E9E6;
  --primary-lighter: #EAF3F1;
  --accent: #AECB55;
  --accent-dark: #8FB23E;
  --danger: #E93B29;
  --danger-dark: #C4311F;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --grey-100: #F5F5F5;
  --grey-200: #E8E8E8;
  --grey-300: #D0D0D0;
  --grey-500: #888888;
  --grey-700: #555555;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-height: 56px;
  --tabbar-height: 64px;
  --font-title: 'Cinzel', 'Georgia', serif;
  --font-body: 'Optima', 'Segoe UI', 'Candara', sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--primary);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

@keyframes pulseCenter {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes typeCursor {
  0%, 100% { border-right-color: var(--primary); }
  50% { border-right-color: transparent; }
}

.welcome__glass--typing .welcome__text {
  opacity: 0;
}

.welcome__glass--typing .welcome__title {
  opacity: 0;
}

.welcome__typing-line {
  display: inline;
  border-right: 2px solid var(--primary);
  animation: typeCursor 0.7s step-end infinite;
  padding-right: 2px;
}

.welcome__typing-line--done {
  border-right-color: transparent;
  animation: none;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out both;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out both;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: center;
  line-height: 1.3;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: #1E4A42;
}

.btn--secondary {
  background: var(--primary-light);
  color: var(--primary);
}

.btn--secondary:hover {
  background: #C8DDD9;
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
}

.btn--danger {
  background: var(--danger);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  padding: 18px 28px;
  box-shadow: 0 4px 16px rgba(233, 59, 41, 0.35);
  flex-direction: column;
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  font-weight: 700;
}

.btn--full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #1E4A42;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header__logo-dept {
  display: flex;
  align-items: center;
}

.header__dept-img {
  height: 20px;
  width: auto;
}

.header__logo-bresca {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__bresca-img {
  height: 32px;
  width: auto;
}

.header__burger {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 6px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- MENU OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 86, 77, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu {
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
}

.menu__close {
  position: absolute;
  top: -60px;
  right: -10px;
  font-size: 2.5rem;
  color: var(--white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
  cursor: pointer;
}

.menu__close:hover {
  opacity: 0.8;
}

.menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}

.menu__item:hover {
  background: rgba(255,255,255,0.22);
}

.menu__lang {
  flex-direction: column;
  gap: 12px;
}

.menu__lang > span {
  font-weight: 700;
}

.menu__lang-options {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.menu__lang-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.menu__lang-btn.active {
  background: var(--accent);
  color: var(--primary);
}

.menu__lang-btn:hover {
  transform: scale(1.08);
}

/* ---------- PAGES ---------- */
.page {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--tabbar-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--primary);
}

.page--welcome,
.page--profile,
.page--nodata {
  bottom: 0;
  top: 0;
}

.page--welcome {
  background: url('../img/background/fond_feuilles.jpeg') center/cover no-repeat;
  position: absolute;
  overflow: hidden;
}

.page--welcome::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.page--welcome::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  aspect-ratio: 1;
  background: #D8E9E6;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

/* ---------- WELCOME ---------- */
.welcome {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.welcome__top {
  padding: 40px 20px 20px;
  text-align: center;
  z-index: 1;
}

.welcome__logo {
  height: 56px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.welcome__glass {
  margin: 0 20px;
  padding: 22px 24px;
  background: rgba(234, 243, 241, 0.92);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(37, 86, 77, 0.12);
  text-align: center;
  z-index: 1;
  animation: fadeIn 0.5s ease-out;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  height: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.welcome__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.welcome__mascotte-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  min-height: 200px;
  padding-bottom: 8px;
}

.welcome__mascotte {
  width: 280px;
  height: auto;
  animation: scaleIn 0.6s ease-out;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

.welcome__text {
  text-align: center;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.5;
  opacity: 0.85;
}

.welcome__text strong {
  color: var(--primary);
  font-weight: 800;
  opacity: 1;
}

.welcome__bottom {
  padding: 20px 24px 32px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  flex-shrink: 0;
}

.btn--ghost-light {
  background: transparent;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.welcome__lang {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.welcome__lang-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: 2px solid rgba(37, 86, 77, 0.2);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.welcome__lang-btn.active {
  background: rgba(255,255,255,0.85);
  border-color: var(--accent);
}

.welcome__lang-btn:hover {
  transform: scale(1.1);
}

.welcome__dept {
  margin-top: 8px;
}

.welcome__dept-img {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

/* ---------- PROFILE ---------- */
.profile {
  padding: 24px 20px 40px;
  max-width: 440px;
  margin: 0 auto;
  animation: fadeIn 0.4s ease-out;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile__mascot-speech {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile__mascot-img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
  animation: scaleIn 0.5s ease-out;
  margin-bottom: -14px;
  z-index: 1;
}

.profile__speech-bubble {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(174,203,85,0.25);
  padding: 24px 20px 18px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.5s ease-out 0.2s both;
}

.profile__speech-bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(174,203,85,0.25);
}

.profile__title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.profile__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.profile__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.profile__footer-deco {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 1.4rem;
  opacity: 0.4;
  padding-top: 8px;
}

.profile__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.25s, background 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile__card::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s, transform 0.2s;
}

.profile__card:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(174,203,85,0.15);
}

.profile__card:hover::after {
  color: var(--accent);
  transform: translateY(-50%) translateX(3px);
}

.profile__card:active {
  transform: scale(0.98);
}

.profile__card--active {
  border-color: var(--accent);
  background: rgba(174,203,85,0.18);
  box-shadow: 0 0 0 2px var(--accent), 0 4px 16px rgba(174,203,85,0.15);
}

.profile__card--active::after {
  content: '✓';
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
}

.profile__card--disabled {
  opacity: 0.45;
  position: relative;
  cursor: not-allowed;
  overflow: visible;
}

.profile__card--disabled::after {
  content: none;
}

.profile__card--disabled .profile__card-badge {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  background: rgba(233, 59, 41, 0.7);
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
}

.profile__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(174,203,85,0.25) 0%, rgba(255,255,255,0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px solid rgba(174,203,85,0.2);
}

.profile__card-text h3 {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.profile__card-text p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.3;
}

/* ---------- TUFFY BUBBLE ---------- */
.tuffy-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
}

.tuffy-bubble__img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.tuffy-bubble__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}

.tuffy-bubble__text strong {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.tuffy-bubble__text p {
  font-style: italic;
  line-height: 1.6;
}

/* ---------- TUFFY CONSEIL (compact) ---------- */
.tuffy-conseil {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(174,203,85,0.12) 0%, rgba(255,255,255,0.08) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(174,203,85,0.25);
  margin-top: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.tuffy-conseil::before {
  content: '🌿';
  position: absolute;
  top: -4px;
  right: 12px;
  font-size: 1.4rem;
  opacity: 0.4;
  transform: rotate(25deg);
}

.tuffy-conseil--map {
  position: absolute;
  top: calc(var(--header-height) + 4px);
  left: 12px;
  right: 12px;
  margin-top: 0;
  padding: 10px 14px;
  gap: 10px;
  z-index: 5;
  background: rgba(30, 74, 66, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(174,203,85,0.3);
}

.tuffy-conseil--map .tuffy-conseil__img {
  width: 56px;
}

.tuffy-conseil--map .tuffy-conseil__text strong {
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.tuffy-conseil--map .tuffy-conseil__text p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.tuffy-conseil__img {
  width: 96px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.tuffy-conseil__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.tuffy-conseil__text strong {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.tuffy-conseil__text p {
  font-style: italic;
  line-height: 1.6;
  font-size: 1.02rem;
}

.tuffy-conseil__deco {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  opacity: 0.3;
}

/* ---------- MAP ---------- */
.page--map {
  overflow: hidden;
  position: absolute;
}

.map-container {
  position: absolute;
  inset: 0;
  background: #3A5A3A;
}

.map__wrapper {
  position: absolute;
  inset: 0;
}

.map__inner {
  position: absolute;
  inset: 0;
}

.map__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.map__poi-markers {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.map__marker {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.2s;
  z-index: 3;
}

.map__marker:active {
  transform: translate(-50%, -50%) scale(0.9);
}

.map__user-position {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #4285F4;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(66,133,244,0.25), var(--shadow-sm);
  transform: translate(-50%, -50%);
  z-index: 4;
  display: none;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ---------- POI PAGE ---------- */
.page--poi {
  z-index: 10;
  bottom: var(--tabbar-height);
  animation: fadeIn 0.35s ease-out;
}

.poi__hero {
  height: 240px;
  background-color: var(--primary);
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 16px;
  overflow: hidden;
}

.poi__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.poi__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(37,86,77,0.2) 0%, rgba(37,86,77,0.65) 100%);
  z-index: 1;
}

.poi__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s;
  position: fixed;
  top: calc(var(--header-height) + 12px);
  left: 16px;
  z-index: 20;
}

.poi__back:active {
  transform: scale(0.9);
}

.poi__content {
  padding: 28px 24px 32px;
  background: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.poi__title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.poi__location {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.poi__location::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* Profile badge row with subtle change button */
.poi__profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.poi__profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.poi__profile-badge svg {
  width: 16px;
  height: 16px;
}

.poi__profile-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.poi__profile-change:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.poi__profile-change svg {
  color: inherit;
}

.poi__description {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
  padding: 0 4px;
  text-align: justify;
  text-justify: inter-word;
}

.poi__description p {
  margin-bottom: 16px;
}

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

.poi__video-container {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--black);
}

.poi__video {
  width: 100%;
  display: block;
}

.poi__transcription {
  background: var(--grey-100);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.poi__transcription-text {
  font-size: 0.82rem;
  color: var(--grey-700);
  line-height: 1.6;
  font-style: italic;
}

/* Sensitivity gauge */
.poi__sensitivity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

.poi__sensitivity-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.poi__sensitivity-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 5px;
  overflow: hidden;
}

.poi__sensitivity-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.6s ease-out, background-color 0.4s;
}

.poi__sensitivity-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  min-width: 38px;
  text-align: right;
}

/* Gallery */
/* ---------- PAGE ERREUR (PAS DE DONNÉES) ---------- */
.page--nodata {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nodata {
  text-align: center;
  padding: 40px 28px;
  max-width: 400px;
  margin: 0 auto;
}

.nodata__mascotte {
  width: 140px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.nodata__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.nodata__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
}

.nodata__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn--ghost-dark {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- POI AUDIO PLAYER ---------- */
.poi__audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(174,203,85,0.12);
  border: 2px solid rgba(174,203,85,0.3);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  margin-top: 24px;
}

.poi__audio-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.poi__audio-icon:active {
  transform: scale(0.92);
}

.poi__audio-icon-pause { display: none; }
.poi__audio-player.playing .poi__audio-icon-play { display: none; }
.poi__audio-player.playing .poi__audio-icon-pause { display: block; }

.poi__audio-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.poi__audio-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}

.poi__audio-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poi__audio-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.poi__audio-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.poi__audio-time {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#poi-audio { display: none; }

/* ---------- CONTENUS ---------- */
.page--contenus {
  background: var(--primary);
}

.contenus {
  padding: 24px 20px 40px;
  max-width: 440px;
  margin: 0 auto;
}

.contenus__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.contenus__section {
  margin-bottom: 28px;
}

.contenus__section-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(174,203,85,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contenus__section-title::before {
  content: '🌿';
  font-size: 1rem;
}

.contenus__poi-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contenus__poi-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.contenus__poi-item:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.contenus__poi-item:active {
  transform: scale(0.98);
}

.contenus__poi-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.contenus__poi-item.visited .contenus__poi-num {
  background: var(--accent);
}

.contenus__poi-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.contenus__poi-arrow {
  margin-left: auto;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
}

.contenus__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Carousel for anecdotes */
.contenus__carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.contenus__carousel::-webkit-scrollbar {
  display: none;
}

.contenus__carousel .contenus__card {
  min-width: 280px;
  max-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contenus__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}

.contenus__carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contenus__carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.contenus__card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  transition: background 0.2s, transform 0.15s;
}

.contenus__card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(2px);
}

.contenus__card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.contenus__card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ---------- URGENCE ---------- */
.page--urgence {
  background: var(--primary);
}

.urgence {
  padding: 0 20px 20px;
  max-width: 440px;
  margin: 0 auto;
}

/* Hero alert banner */
.urgence__hero {
  text-align: center;
  padding: 32px 20px 24px;
  background: linear-gradient(180deg, rgba(233,59,41,0.2) 0%, transparent 100%);
  margin: 0 -20px 20px;
  border-bottom: 2px solid rgba(233,59,41,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.urgence__hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(233,59,41,0.4);
  animation: pulseCenter 2s ease-in-out infinite;
}

.urgence__hero-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.urgence__hero-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
}

/* Position card */
.urgence__position-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.urgence__position-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.urgence__position-body {
  padding: 14px 16px;
}

.urgence__coords {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: monospace;
  margin-bottom: 4px;
}

.urgence__position-address {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.urgence__send-btn {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  font-size: 0.85rem;
}

/* Consignes sections */
.urgence__section {
  margin-bottom: 24px;
}

.urgence__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.urgence__section-icon {
  font-size: 1.3rem;
}

/* Prevention consignes as compact grid cards */
.urgence__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.urgence__grid-card {
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.urgence__grid-card-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Urgence steps (numbered) */
.urgence__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.urgence__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(233,59,41,0.08);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--danger);
}

.urgence__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.urgence__step-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  padding-top: 3px;
}

.tuffy-conseil--urgence {
  background: rgba(233, 59, 41, 0.12);
  border-color: rgba(233, 59, 41, 0.35);
}

.tuffy-conseil--urgence::before {
  content: '⚠️';
}

/* ---------- CREDITS ---------- */
.credits {
  padding: 40px 20px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.credits__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}

.credits__content {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---------- PRIVACY POLICY ---------- */
.page--privacy {
  background: var(--white);
}

.privacy {
  padding: 32px 24px 40px;
  max-width: 480px;
  margin: 0 auto;
}

.privacy__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 28px;
  text-align: center;
}

.privacy__content {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.7;
}

.privacy__content h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.privacy__content p {
  margin-bottom: 12px;
}

.privacy__content strong {
  color: var(--primary);
  font-weight: 700;
}

.privacy__content ul {
  margin: 8px 0 16px 0;
  padding-left: 0;
}

.privacy__content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #555;
}

.privacy__content ul li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 7px;
}

#btn-privacy-back {
  width: 100%;
  margin-top: 32px;
}

/* ---------- TAB BAR ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  background: #1E4A42;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  z-index: 50;
}

.tabbar.tabbar--hidden {
  display: none;
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s, background 0.2s;
}

.tabbar__item svg {
  transition: transform 0.2s;
}

.tabbar__item.active {
  color: var(--white);
  background: rgba(174,203,85,0.2);
}

.tabbar__item.active svg {
  transform: scale(1.1);
}

.tabbar__item[data-tab="urgence"].active {
  color: var(--danger);
  background: #FFEFED;
}

/* ---------- DOWNLOAD PROGRESS ---------- */
.download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 86, 77, 0.95);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: var(--white);
  animation: fadeIn 0.3s ease-out;
}

.download-overlay__text {
  font-weight: 700;
  font-size: 1rem;
}

.download-overlay__bar {
  width: 80%;
  max-width: 280px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.download-overlay__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease-out;
}

.download-overlay__status {
  font-size: 0.82rem;
  opacity: 0.8;
}

.download-overlay__warning {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
  font-weight: 800;
  font-size: 1rem;
  margin-top: 16px;
  letter-spacing: 0.02em;
}

.download-overlay__warning-icon {
  font-size: 1.3rem;
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--tabbar-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 150;
  opacity: 0;
  transition: transform 0.4s ease-out, opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- REPLAY TEASER BUTTON ---------- */
.map__replay-teaser {
  position: fixed;
  bottom: calc(var(--tabbar-height) + 12px);
  right: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(37, 86, 77, 0.85);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.map__replay-teaser:active {
  transform: scale(0.95);
}

.map__replay-teaser:hover {
  background: rgba(37, 86, 77, 0.95);
}

/* ---------- TEASER OVERLAY ---------- */
.teaser-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #0A1F1B;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-out;
}

.teaser__content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.teaser__video-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.teaser__video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Teaser placeholder kept for fallback only */
.teaser__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 32px;
}

.teaser__skip {
  position: absolute;
  bottom: 40px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  z-index: 501;
}

.teaser__skip:hover {
  background: rgba(255, 255, 255, 0.25);
}

.teaser__skip:active {
  transform: scale(0.95);
}

/* ---------- MODALE FRAÎCHEUR ---------- */
.modal-fraicheur {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-fraicheur__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 86, 77, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-fraicheur__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s ease-out;
}

.modal-fraicheur__mascotte {
  width: 100px;
  height: auto;
  margin: 0 auto 16px;
}

.modal-fraicheur__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 12px;
}

.modal-fraicheur__text {
  font-size: 0.85rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 10px;
}

.modal-fraicheur__text strong {
  color: var(--danger);
}

.modal-fraicheur__alternatives {
  text-align: left;
  margin: 12px 0 20px;
  padding: 14px 18px;
  background: var(--primary-lighter);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.modal-fraicheur__alternatives li {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.modal-fraicheur__btn {
  width: 100%;
}

/* ---------- BADGE MODAL ---------- */
.modal-badge {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal-badge__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 86, 77, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-badge__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease-out;
}

.modal-badge__confetti {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  animation: scaleIn 0.5s ease-out;
}

.modal-badge__mascotte {
  width: 110px;
  height: auto;
  margin: 0 auto 12px;
  animation: scaleIn 0.6s ease-out;
}

.modal-badge__title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.modal-badge__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(174,203,85,0.15), rgba(37,86,77,0.1));
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  margin-bottom: 16px;
}

.modal-badge__badge span {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-badge__text {
  font-size: 0.88rem;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-badge__btn {
  width: 100%;
}

/* ---------- URGENCE STICKY BUTTON ---------- */
.urgence__sticky-btn {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--primary) 70%, transparent);
  z-index: 15;
}

.urgence__sticky-btn .btn--danger {
  flex-direction: row;
  gap: 10px;
  padding: 16px 24px;
  font-size: 0.9rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 -2px 16px rgba(233, 59, 41, 0.3), var(--shadow-lg);
}

.urgence__sticky-spacer {
  height: 16px;
}

/* ---------- MEDIA QUERIES ---------- */
@media (min-width: 390px) {
  .welcome__mascotte {
    width: 300px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 64px;
    --tabbar-height: 72px;
  }

  .profile__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contenus__poi-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contenus__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* ---------- RESPONSIVE DESKTOP ---------- */
@media (min-width: 1024px) {
  .contenus {
    max-width: 760px;
    width: 100%;
  }

  .urgence {
    max-width: 760px;
    width: 100%;
  }

  .profile {
    max-width: 600px;
    width: 100%;
  }

  .credits {
    max-width: 600px;
  }

  .privacy {
    max-width: 680px;
  }

  .poi__hero {
    height: 340px;
  }

  .poi__content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .welcome {
    max-width: 560px;
    margin: 0 auto;
  }

  .welcome__mascotte {
    width: 320px;
  }

  .welcome__glass {
    max-width: 480px;
  }

  .profile__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .profile__mascot-img {
    width: 160px;
  }

  .contenus__poi-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contenus__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .urgence__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tuffy-conseil--map {
    max-width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .tabbar {
    justify-content: center;
    gap: 40px;
  }

  .tabbar__item {
    padding: 10px 24px;
  }

  .header {
    padding: 0 32px;
  }

  .map__replay-teaser {
    right: 24px;
  }

  .modal-fraicheur__card,
  .modal-badge__card {
    max-width: 480px;
  }

  .poi__description {
    font-size: 1.08rem;
    line-height: 1.9;
  }

  .poi__sensitivity {
    max-width: 500px;
  }

  .poi__audio-player {
    max-width: 500px;
  }

  .tuffy-conseil {
    max-width: 760px;
  }
}

@media (min-width: 1440px) {
  .contenus,
  .urgence {
    max-width: 900px;
  }

  .poi__content {
    max-width: 900px;
  }

  .poi__hero {
    height: 400px;
  }

  .welcome__mascotte {
    width: 360px;
  }

  .profile {
    max-width: 700px;
  }

  .urgence__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contenus__poi-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tuffy-conseil {
    max-width: 900px;
  }
}

/* High contrast for sunlight */
@media (prefers-contrast: more) {
  :root {
    --primary: #1A3E38;
    --grey-700: #333333;
  }

  .btn--primary {
    font-weight: 800;
  }
}

/* Safe area for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tabbar {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }

  .page {
    bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }

  .header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header-height) + env(safe-area-inset-top));
  }

  .page {
    top: calc(var(--header-height) + env(safe-area-inset-top));
  }

  .page--welcome,
  .page--profile {
    top: 0;
    bottom: 0;
  }

  .poi__back {
    top: calc(var(--header-height) + env(safe-area-inset-top) + 12px);
  }
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 2px;
}
