/**
 * main.css — Martinique Travel WordPress Theme
 * Design system complet : tokens, nav, hero, articles, carte, quiz, galerie, accomplissements
 */

/* ── RESET & TOKENS ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Couleurs */
  --c-bg:        #faf7f2;
  --c-bg-alt:    #f4f0eb;
  --c-dark:      #0f2230;
  --c-dark-2:    #1a3a4a;
  --c-teal:      #2a9d8f;
  --c-teal-lt:   #4dbfb1;
  --c-gold:      #f4a527;
  --c-gold-dk:   #a06a0a;
  --c-red:       #d62828;
  --c-green:     #3a7d44;
  --c-text:      #3d342a;
  --c-muted:     #7a6e60;
  --c-faint:     #a89e8e;
  --c-border:    #e8e2d9;
  --c-border-lt: #f0ede8;

  /* Typo */
  --f-serif: 'DM Serif Display', Georgia, serif;
  --f-sans:  'DM Sans', 'Helvetica Neue', sans-serif;

  /* Espacements */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;

  /* Ombres */
  --shadow-sm: 0 2px 10px rgba(26,58,74,0.08);
  --shadow-md: 0 4px 24px rgba(26,58,74,0.12);
  --shadow-lg: 0 8px 40px rgba(26,58,74,0.16);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-med:  250ms ease;
  --t-slow: 400ms ease;
}

body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: #cec6b8; border-radius: 999px; }

/* ── LAYOUT ──────────────────────────────────────────────────────── */
.mt-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.mt-main { display: block; }

/* ── TYPOGRAPHIE ─────────────────────────────────────────────────── */
h1, h2, h3 { text-wrap: pretty; line-height: 1.1; }

/* ── BOUTONS ─────────────────────────────────────────────────────── */
.mt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-med);
}
.mt-btn--primary  { background: var(--c-teal); color: #fff; box-shadow: 0 4px 20px rgba(42,157,143,0.4); }
.mt-btn--primary:hover { background: #249086; transform: translateY(-1px); }
.mt-btn--secondary { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.mt-btn--secondary:hover { background: rgba(255,255,255,0.2); }
.mt-btn--youtube  { background: var(--c-red); color: #fff; box-shadow: 0 4px 18px rgba(214,40,40,0.35); }
.mt-btn--youtube:hover { background: #b82020; }
.mt-btn--outline  { background: #fff; color: var(--c-teal); border: 1.5px solid var(--c-border); }
.mt-btn--outline:hover { border-color: var(--c-teal); }
.mt-btn--sm       { font-size: 12px; padding: 7px 16px; }
.mt-btn--full     { width: 100%; justify-content: center; }

/* ── NAVIGATION ──────────────────────────────────────────────────── */
.mt-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,247,242,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.mt-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mt-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.mt-nav__logo-img,
.mt-nav__logo-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mt-nav__logo-placeholder {
  background: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}
.mt-nav__logo-text  { display: flex; flex-direction: column; line-height: 1.1; }
.mt-nav__logo-name  { font-family: var(--f-serif); font-size: 15px; color: var(--c-dark); }
.mt-nav__logo-sub   { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-teal); }

.mt-nav__links { flex: 1; }
.mt-nav__menu  { list-style: none; display: flex; align-items: center; gap: 2px; }
.mt-nav__menu li a,
.mt-nav__menu li button {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--t-fast);
  display: block;
}
.mt-nav__menu li a:hover,
.mt-nav__menu li.current-menu-item a {
  color: var(--c-teal);
  background: rgba(42,157,143,0.1);
  font-weight: 700;
}

.mt-nav__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.mt-nav__lang-btn {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  background: var(--c-bg-alt);
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--c-text);
  transition: all var(--t-fast);
}
.mt-nav__lang-btn:hover { border-color: var(--c-teal); }

.mt-xp-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--c-dark-2);
  border-radius: 999px;
  padding: 5px 12px;
  transition: transform 300ms ease, background 300ms ease;
}
.mt-xp-pill--flash { background: var(--c-gold); transform: scale(1.08); }
.mt-xp-pill__icon  { font-size: 14px; }
.mt-xp-pill__value { font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: #fff; }
.mt-xp-pill__sub   { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

.mt-nav__yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-red);
  color: #fff;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(214,40,40,0.3);
}

.mt-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mt-nav__hamburger span {
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: all 200ms ease;
  display: block;
}
.mt-nav__hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mt-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.mt-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mt-nav__mobile-menu {
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 12px 24px 20px;
  display: none;
}
.mt-nav__mobile-menu.is-open { display: block; }
.mt-nav__mobile-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mt-nav__mobile-list li a {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background var(--t-fast);
}
.mt-nav__mobile-list li a:hover,
.mt-nav__mobile-list li.current-menu-item a {
  background: rgba(42,157,143,0.1);
  color: var(--c-teal);
  font-weight: 700;
}

/* Toast XP */
.mt-xp-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 999;
  background: var(--c-gold);
  color: var(--c-dark);
  font-family: var(--f-sans);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(244,165,39,0.4);
  transition: all 400ms ease;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
}
.mt-xp-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ── BOTTOM NAV MOBILE ───────────────────────────────────────────── */
.mt-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border);
  display: none;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom);
}
.mt-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  color: var(--c-faint);
  text-decoration: none;
  transition: color var(--t-fast);
}
.mt-bottom-nav__item.is-active { color: var(--c-teal); }
.mt-bottom-nav__icon  { font-size: 20px; }
.mt-bottom-nav__label { font-family: var(--f-sans); font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.mt-bottom-nav-spacer { height: 0; }

/* ── HERO ────────────────────────────────────────────────────────── */
.mt-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mt-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f2230 0%, #1a3a4a 40%, #1f7268 70%, #2a9d8f 100%);
}
.mt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,34,48,0.85) 0%, rgba(15,34,48,0.3) 70%, transparent 100%);
}
.mt-hero__weather {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
}
.mt-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  width: 100%;
  flex: 1;
}
.mt-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(244,165,39,0.18);
  color: #f7c06a;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244,165,39,0.3);
  margin-bottom: 22px;
}
.mt-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 6px var(--c-gold);
}
.mt-hero__title {
  font-family: var(--f-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 620px;
}
.mt-hero__title-em { font-style: italic; color: var(--c-teal-lt); }
.mt-hero__sub { font-family: var(--f-sans); font-size: 16px; color: rgba(255,255,255,0.72); line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.mt-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.mt-hero__stats    { display: flex; gap: 32px; flex-wrap: wrap; }
.mt-hero__stat     { display: flex; flex-direction: column; gap: 2px; }
.mt-hero__stat-val { font-family: var(--f-serif); font-size: 28px; color: #fff; line-height: 1; }
.mt-hero__stat-lab { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* Bandeau XP dans le hero */
.mt-hero__xp-banner {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.mt-hero__xp-left { display: flex; align-items: center; gap: 12px; }
.mt-hero__xp-icon { font-size: 24px; }
.mt-hero__xp-level { font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: var(--c-gold); margin-bottom: 4px; }
.mt-hero__xp-bar   { width: 160px; height: 5px; background: rgba(255,255,255,0.15); border-radius: 999px; }
.mt-hero__xp-bar-fill { height: 100%; background: var(--c-gold); border-radius: 999px; transition: width 600ms ease; }
.mt-hero__xp-right { font-family: var(--f-sans); font-size: 11px; color: rgba(255,255,255,0.4); font-style: italic; }

/* ── SECTIONS ────────────────────────────────────────────────────── */
.mt-section { padding: 56px 0; }
.mt-section--bg-alt { background: var(--c-bg-alt); }
.mt-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.mt-section__title { font-family: var(--f-serif); font-size: 32px; font-weight: 400; color: var(--c-dark); line-height: 1.1; }
.mt-section__link  { font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: var(--c-teal); background: none; border: none; cursor: pointer; text-decoration: none; }

/* Filtres catégories */
.mt-cat-row, .mt-filter-bar__inner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mt-cat-pill, .mt-filter-pill {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: #fff;
  color: var(--c-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.mt-cat-pill:hover, .mt-filter-pill:hover { border-color: var(--c-teal); color: var(--c-teal); }
.mt-cat-pill.is-active, .mt-filter-pill.is-active { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }

.mt-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 64px;
  z-index: 100;
}
.mt-filter-bar__inner { padding: 12px 24px; margin-bottom: 0; flex-wrap: nowrap; }

/* ── GRILLES ARTICLES ────────────────────────────────────────────── */
.mt-articles-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }

/* Grande carte featured */
.mt-featured-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all var(--t-med); }
.mt-featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mt-featured-card a { text-decoration: none; color: inherit; display: block; }
.mt-featured-card__thumb { height: 260px; position: relative; background: linear-gradient(135deg,#1a7a7a,#2a5068); }
.mt-featured-card__body  { padding: 20px; }
.mt-featured-card__title { font-family: var(--f-serif); font-size: 22px; font-weight: 400; color: var(--c-dark); line-height: 1.25; margin-bottom: 10px; }
.mt-featured-card__excerpt { font-family: var(--f-sans); font-size: 14px; color: var(--c-muted); line-height: 1.6; margin-bottom: 14px; }

/* Petites cartes */
.mt-small-grid { display: flex; flex-direction: column; gap: 12px; }
.mt-small-card  { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all var(--t-med); }
.mt-small-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mt-small-card a { text-decoration: none; color: inherit; display: flex; width: 100%; }
.mt-small-card__thumb { width: 100px; flex-shrink: 0; position: relative; }
.mt-small-card__body  { padding: 12px 14px; flex: 1; }
.mt-small-card__cat   { font-family: var(--f-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); display: block; margin-bottom: 4px; }
.mt-small-card__title { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--c-dark); line-height: 1.35; margin-bottom: 6px; }

/* Archive grid */
.mt-articles-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mt-grid-wrap { padding: 40px 0 64px; }

.mt-article-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: all var(--t-med); }
.mt-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mt-article-card__link { text-decoration: none; color: inherit; display: block; }
.mt-article-card__thumb { height: 160px; position: relative; }
.mt-article-card__body  { padding: 16px; }
.mt-article-card__title   { font-family: var(--f-sans); font-size: 15px; font-weight: 700; color: var(--c-dark); line-height: 1.35; margin-bottom: 8px; }
.mt-article-card__excerpt { font-family: var(--f-sans); font-size: 13px; color: var(--c-muted); line-height: 1.55; margin-bottom: 12px; }

/* Overlays et badges communs */
.mt-card-overlay    { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,34,48,0.4), transparent 60%); }
.mt-card-cat-badge  { position: absolute; bottom: 10px; left: 12px; color: #fff; font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; z-index: 2; }
.mt-read-badge      { position: absolute; top: 10px; right: 10px; background: var(--c-teal); color: #fff; font-family: var(--f-sans); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 2; }

/* Meta + XP tag */
.mt-card-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-sans); font-size: 12px; color: var(--c-faint); }
.mt-xp-tag    { background: rgba(244,165,39,0.12); color: var(--c-gold-dk); font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* ── PAGE HEADER ─────────────────────────────────────────────────── */
.mt-page-header { background: var(--c-dark-2); padding: 52px 0 40px; }
.mt-page-header__label { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.mt-page-header__title { font-family: var(--f-serif); font-size: clamp(36px,5vw,52px); font-weight: 400; color: #fff; line-height: 1.05; margin-bottom: 10px; }
.mt-page-header__sub   { font-family: var(--f-sans); font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── BANDE YOUTUBE ───────────────────────────────────────────────── */
.mt-yt-band { background: var(--c-dark-2); padding: 48px 0; }
.mt-yt-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.mt-yt-band__label { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.mt-yt-band__title { font-family: var(--f-serif); font-size: 32px; font-weight: 400; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.mt-yt-band__sub   { font-family: var(--f-sans); font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── QUICK LINKS ─────────────────────────────────────────────────── */
.mt-quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt-quick-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: 16px; padding: 24px 20px;
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
  transition: all var(--t-med);
}
.mt-quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mt-quick-card__icon  { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mt-quick-card__title { font-family: var(--f-sans); font-size: 15px; font-weight: 700; color: var(--c-dark); }
.mt-quick-card__sub   { font-family: var(--f-sans); font-size: 13px; color: var(--c-muted); line-height: 1.4; }

/* ── DETAIL ARTICLE ──────────────────────────────────────────────── */
.mt-back-bar { background: #fff; border-bottom: 1px solid var(--c-border); }
.mt-back-bar__inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; max-width: 1280px; margin: 0 auto; }
.mt-back-btn { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--c-teal); background: none; border: none; cursor: pointer; text-decoration: none; }

.mt-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  padding: 40px 24px 80px;
  align-items: start;
}
.mt-detail-main { min-width: 0; }
.mt-detail-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mt-detail-cat  { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); background: rgba(42,157,143,0.1); padding: 3px 10px; border-radius: 999px; }
.mt-meta-sep    { color: var(--c-border); }
.mt-meta-time, .mt-meta-date { font-family: var(--f-sans); font-size: 12px; color: var(--c-faint); }
.mt-detail-title   { font-family: var(--f-serif); font-size: clamp(28px,4vw,42px); font-weight: 400; color: var(--c-dark); line-height: 1.15; margin-bottom: 16px; }
.mt-detail-excerpt { font-family: var(--f-sans); font-size: 16px; color: var(--c-muted); line-height: 1.7; margin-bottom: 28px; }

/* Lecteur YouTube */
.mt-yt-wrap   { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 32px; border: 2px solid rgba(42,157,143,0.2); }
.mt-yt-label  { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--c-border-lt); font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: var(--c-dark); }
.mt-yt-player { position: relative; padding-bottom: 56.25%; height: 0; background: #000; }
.mt-yt-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.mt-yt-actions { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; background: var(--c-bg); }
.mt-yt-ext-link { font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); text-decoration: none; }

/* Corps article */
.mt-article-body { margin-bottom: 28px; }
.mt-article-body.entry-content { font-family: var(--f-sans); font-size: 16px; color: var(--c-text); line-height: 1.75; }
.mt-article-body h2 { font-family: var(--f-serif); font-size: 28px; margin: 32px 0 12px; }
.mt-article-body h3 { font-family: var(--f-serif); font-size: 22px; margin: 24px 0 10px; }
.mt-article-body p  { margin-bottom: 18px; }
.mt-article-body img { width: 100%; border-radius: 12px; margin: 24px 0; }
.mt-article-body blockquote { border-left: 4px solid var(--c-teal); padding: 12px 20px; background: rgba(42,157,143,0.06); margin: 24px 0; border-radius: 0 8px 8px 0; }

.mt-tag-row { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--c-border); }
.mt-tag     { font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); background: var(--c-bg-alt); padding: 4px 12px; border-radius: 999px; text-decoration: none; }

/* Sidebar article */
.mt-detail-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.mt-side-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
.mt-side-card__title { font-family: var(--f-sans); font-size: 14px; font-weight: 700; color: var(--c-dark); margin-bottom: 14px; }
.mt-xp-side-bar { height: 6px; background: var(--c-bg-alt); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.mt-xp-side-bar__fill { height: 100%; background: var(--c-gold); border-radius: 999px; transition: width 600ms ease; }
.mt-xp-side-info  { display: flex; justify-content: space-between; font-family: var(--f-sans); font-size: 13px; margin-bottom: 12px; }
.mt-xp-side-val   { color: var(--c-gold); font-weight: 700; }
.mt-xp-side-level { color: var(--c-faint); }
.mt-xp-side-stats { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-sans); font-size: 12px; color: var(--c-faint); }
.mt-related-item  { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; margin-bottom: 10px; }
.mt-related-item:last-child { margin-bottom: 0; }
.mt-related-thumb { width: 56px; height: 44px; border-radius: 8px; flex-shrink: 0; background: var(--c-dark-2); }
.mt-related-title { font-family: var(--f-sans); font-size: 12px; font-weight: 600; color: var(--c-dark); line-height: 1.35; margin-bottom: 3px; }
.mt-related-meta  { font-family: var(--f-sans); font-size: 11px; color: var(--c-faint); }
.mt-quiz-teaser   { background: var(--c-dark-2); border-radius: 16px; padding: 20px; }
.mt-quiz-teaser__title { font-family: var(--f-sans); font-size: 14px; font-weight: 700; color: var(--c-gold); margin-bottom: 8px; }
.mt-quiz-teaser__sub   { font-family: var(--f-sans); font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.5; margin-bottom: 14px; }

/* ── CARTE ───────────────────────────────────────────────────────── */
.mt-map-header__inner { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.mt-map-stats { display: flex; gap: 16px; }
.mt-map-stat-box { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 12px 20px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.mt-map-stat-val { display: block; font-family: var(--f-serif); font-size: 32px; color: #fff; line-height: 1; }
.mt-map-stat-lab { font-family: var(--f-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }

.mt-map-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 32px 24px 80px; align-items: start; }
.mt-map-box {
  background: #e8f4f2;
  border-radius: 20px;
  position: relative;
  min-height: 520px;
  border: 2px solid rgba(42,157,143,0.2);
  overflow: hidden;
}
.mt-sea-label { position: absolute; bottom: 16px; right: 20px; font-family: var(--f-serif); font-size: 12px; color: rgba(42,157,143,0.4); font-style: italic; }

.mt-map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid var(--c-dark-2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 2;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.mt-map-pin.is-visited { background: var(--c-teal); border-color: var(--c-teal); }
.mt-map-pin.is-selected { transform: translate(-50%,-50%) scale(1.3); box-shadow: 0 0 0 4px rgba(42,157,143,0.3); }
.mt-pin-icon { font-size: 14px; }

.mt-map-legend { position: absolute; bottom: 14px; left: 14px; background: rgba(255,255,255,0.92); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow-sm); }
.mt-legend-item { display: flex; align-items: center; gap: 7px; font-family: var(--f-sans); font-size: 12px; color: var(--c-text); }
.mt-legend-dot  { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.mt-legend-dot--visited   { background: var(--c-teal); }
.mt-legend-dot--unvisited { background: #fff; border: 2px solid var(--c-dark-2); }

.mt-map-side  { display: flex; flex-direction: column; gap: 14px; }
.mt-place-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-md); }
.mt-place-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.mt-place-cat  { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); margin-bottom: 4px; }
.mt-place-name { font-family: var(--f-serif); font-size: 22px; color: var(--c-dark); line-height: 1.1; margin-bottom: 6px; }
.mt-place-xp   { background: rgba(244,165,39,0.12); color: var(--c-gold-dk); font-family: var(--f-sans); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; margin-bottom: 14px; }
.mt-visit-btn.is-visited { background: var(--c-bg-alt) !important; color: var(--c-muted) !important; }

.mt-checklist { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); max-height: 360px; overflow-y: auto; }
.mt-checklist__title { font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: var(--c-dark); margin-bottom: 12px; }
.mt-check-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  border: 1.5px solid var(--c-border);
  margin-bottom: 6px; cursor: pointer;
  transition: all var(--t-fast);
}
.mt-check-item.is-visited { background: rgba(42,157,143,0.06); border-color: rgba(42,157,143,0.3); }
.mt-check-box  { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #ccc; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; background: var(--c-bg-alt); transition: all var(--t-fast); }
.mt-check-box.is-visited { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.mt-check-name { font-family: var(--f-sans); font-size: 13px; color: var(--c-dark); flex: 1; }
.mt-check-xp   { font-family: var(--f-sans); font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--c-gold); }
.mt-check-xp.is-visited { color: var(--c-teal); }

.mt-badge-teaser { background: var(--c-dark-2); border-radius: 16px; padding: 18px; }
.mt-badge-teaser__title    { font-family: var(--f-sans); font-size: 12px; font-weight: 700; color: var(--c-gold); margin-bottom: 4px; }
.mt-badge-teaser__name     { font-family: var(--f-serif); font-size: 18px; color: #fff; margin-bottom: 10px; }
.mt-badge-teaser__bar      { height: 6px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.mt-badge-teaser__fill     { height: 100%; background: var(--c-gold); border-radius: 999px; transition: width 600ms ease; }
.mt-badge-teaser__sub      { font-family: var(--f-sans); font-size: 11px; color: rgba(255,255,255,0.4); }

/* ── QUIZ ────────────────────────────────────────────────────────── */
.mt-quiz-wrap     { max-width: 680px; margin: 0 auto; padding: 40px 24px 80px; }
.mt-quiz-top      { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mt-quiz-counter  { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--c-muted); }
.mt-quiz-xp-badge { background: rgba(244,165,39,0.12); color: var(--c-gold-dk); font-family: var(--f-sans); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.mt-quiz-progress { height: 6px; background: var(--c-border); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.mt-quiz-progress__fill { height: 100%; background: var(--c-teal); border-radius: 999px; transition: width 400ms ease; }
.mt-quiz-cat-badge { display: inline-block; font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-teal); background: rgba(42,157,143,0.1); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.mt-question-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-md); margin-bottom: 20px; }
.mt-question-text { font-family: var(--f-serif); font-size: clamp(20px,3vw,26px); font-weight: 400; color: var(--c-dark); line-height: 1.35; }
.mt-options-grid  { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mt-option-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  border: 2px solid var(--c-border);
  background: #fff; cursor: pointer;
  transition: all var(--t-fast); text-align: left;
}
.mt-option-btn:hover:not(:disabled) { border-color: var(--c-teal); background: rgba(42,157,143,0.05); }
.mt-option-btn--correct { background: rgba(58,125,68,0.08); border-color: var(--c-green); }
.mt-option-btn--wrong   { background: rgba(214,40,40,0.07);  border-color: var(--c-red); }
.mt-option-label {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans); font-weight: 700; font-size: 14px;
  flex-shrink: 0; background: var(--c-bg-alt); color: var(--c-text);
  transition: all var(--t-fast);
}
.mt-option-btn--correct .mt-option-label { background: var(--c-green); color: #fff; }
.mt-option-btn--wrong   .mt-option-label { background: var(--c-red);   color: #fff; }
.mt-option-text { font-family: var(--f-sans); font-size: 15px; font-weight: 500; flex: 1; }
.mt-option-icon { margin-left: auto; font-size: 18px; }
.mt-explanation { border: 2px solid var(--c-border); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.mt-explanation--correct { border-color: var(--c-green); background: rgba(58,125,68,0.06); }
.mt-explanation--wrong   { border-color: var(--c-red);   background: rgba(214,40,40,0.05); }
.mt-explanation__icon  { font-size: 20px; flex-shrink: 0; }
.mt-explanation__title { font-family: var(--f-sans); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.mt-explanation__title--correct { color: #285730; }
.mt-explanation__title--wrong   { color: #b02020; }
.mt-explanation__text  { font-family: var(--f-sans); font-size: 13px; color: var(--c-text); line-height: 1.5; }
.mt-btn--next { margin-top: 4px; }

/* Résultats */
.mt-result-card {
  background: #fff; border-radius: 24px; padding: 48px 40px;
  text-align: center; box-shadow: var(--shadow-lg);
  max-width: 480px; width: 100%; margin: 0 auto;
}
.mt-result-emoji { font-size: 56px; margin-bottom: 16px; }
.mt-result-title { font-family: var(--f-serif); font-size: 36px; font-weight: 400; color: var(--c-dark); margin-bottom: 12px; }
.mt-result-score { font-family: var(--f-sans); font-size: 18px; color: var(--c-muted); margin-bottom: 8px; }
.mt-result-xp    { font-family: var(--f-sans); font-size: 20px; font-weight: 700; color: var(--c-gold); margin-bottom: 24px; }

/* Partage */
.mt-share-box { background: var(--c-bg-alt); border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; text-align: center; }
.mt-share-title { font-family: var(--f-sans); font-size: 14px; font-weight: 700; color: var(--c-dark); margin-bottom: 14px; }
.mt-share-preview { background: #fff; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.mt-share-preview__left { display: flex; align-items: center; gap: 10px; }
.mt-share-logo  { width: 32px; height: 32px; border-radius: 50%; }
.mt-share-logo-placeholder { width: 32px; height: 32px; border-radius: 50%; background: var(--c-dark); color: #fff; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.mt-share-brand { font-family: var(--f-serif); font-size: 14px; color: var(--c-dark); }
.mt-share-sub   { font-family: var(--f-sans); font-size: 10px; color: var(--c-faint); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mt-share-score-area { display: flex; align-items: center; gap: 8px; }
.mt-share-score-num  { font-family: var(--f-serif); font-size: 22px; color: var(--c-dark); }
.mt-share-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mt-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-family: var(--f-sans); font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  border: none; cursor: pointer; transition: opacity var(--t-fast);
}
.mt-share-btn:hover { opacity: 0.85; }
.mt-share-btn--x    { background: #000; }
.mt-share-btn--wa   { background: #25d366; }
.mt-share-btn--fb   { background: #1877f2; }
.mt-share-btn--copy { background: var(--c-dark-2); }

/* ── GALERIE ─────────────────────────────────────────────────────── */
.mt-gallery-wrap { padding: 32px 24px 64px; }
.mt-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-rows: auto; }
.mt-gallery-card {
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: all var(--t-med); position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 160px; background: var(--c-dark-2);
}
.mt-gallery-card--wide { grid-column: span 2; min-height: 220px; }
.mt-gallery-card:hover { transform: scale(1.02); box-shadow: 0 12px 40px rgba(26,58,74,0.25); z-index: 2; }
.mt-gallery-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mt-gallery-card__placeholder { position: absolute; inset: 0; background: linear-gradient(135deg,#1a3a4a,#2a9d8f); }
.mt-gallery-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,34,48,0.7) 0%, transparent 55%); }
.mt-gallery-card__zoom { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 28px; opacity: 0; transition: opacity var(--t-fast); z-index: 3; }
.mt-gallery-card:hover .mt-gallery-card__zoom { opacity: 1; }
.mt-gallery-card__label { position: relative; z-index: 2; padding: 12px 16px; }
.mt-gallery-card__cat  { display: block; font-family: var(--f-sans); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 3px; }
.mt-gallery-card__name { font-family: var(--f-serif); font-size: 18px; color: #fff; line-height: 1.2; }

/* Lightbox */
.mt-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.mt-lightbox__backdrop { position: absolute; inset: 0; background: rgba(15,34,48,0.92); backdrop-filter: blur(8px); }
.mt-lightbox__content { position: relative; background: #fff; border-radius: 20px; overflow: hidden; max-width: 800px; width: 90%; box-shadow: 0 24px 80px rgba(0,0,0,0.4); z-index: 1; }
.mt-lightbox__img { width: 100%; height: 460px; object-fit: cover; display: block; }
.mt-lightbox__placeholder { width: 100%; height: 460px; }
.mt-lightbox__info  { padding: 18px 24px; }
.mt-lightbox__title { font-family: var(--f-serif); font-size: 24px; color: var(--c-dark); margin-bottom: 4px; }
.mt-lightbox__cat   { font-family: var(--f-sans); font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mt-lightbox__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.mt-lightbox__prev, .mt-lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mt-lightbox__prev { left: -56px; }
.mt-lightbox__next { right: -56px; }

/* ── ACCOMPLISSEMENTS ────────────────────────────────────────────── */
.mt-no-account-banner { display: flex; gap: 14px; align-items: flex-start; background: rgba(42,157,143,0.15); border-radius: 12px; padding: 14px 18px; margin-top: 20px; border: 1px solid rgba(42,157,143,0.3); }
.mt-no-account-banner__title { font-family: var(--f-sans); font-size: 13px; font-weight: 700; color: var(--c-teal-lt); margin-bottom: 3px; }
.mt-no-account-banner__sub   { font-family: var(--f-sans); font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.mt-ach-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 36px 24px 80px; align-items: start; }
.mt-level-card { background: #fff; border-radius: 20px; padding: 24px 28px; box-shadow: var(--shadow-md); margin-bottom: 20px; display: flex; align-items: center; gap: 20px; }
.mt-level-card__icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(42,157,143,0.1); display: flex; align-items: center; justify-content: center; font-size: 36px; border: 3px solid var(--c-teal); flex-shrink: 0; }
.mt-level-card__info { flex: 1; }
.mt-level-name { font-family: var(--f-serif); font-size: 26px; color: var(--c-dark); margin-bottom: 4px; }
.mt-xp-count   { font-family: var(--f-sans); font-size: 15px; font-weight: 700; color: var(--c-gold); margin-bottom: 8px; }
.mt-xp-bar-wrap{ height: 8px; background: var(--c-bg-alt); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.mt-xp-bar-fill{ height: 100%; background: linear-gradient(to right, var(--c-gold), #f7c06a); border-radius: 999px; transition: width 800ms ease; }
.mt-xp-hint    { font-family: var(--f-sans); font-size: 12px; color: var(--c-faint); }

.mt-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.mt-stat-card  { background: #fff; border-radius: 16px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.mt-stat-card__icon { font-size: 26px; margin-bottom: 6px; }
.mt-stat-card__val  { font-family: var(--f-serif); font-size: 30px; color: var(--c-dark); line-height: 1; }
.mt-stat-card__max  { font-family: var(--f-sans); font-size: 11px; color: var(--c-faint); }
.mt-stat-card__label{ font-family: var(--f-sans); font-size: 11px; font-weight: 600; color: var(--c-muted); margin-top: 4px; }

.mt-badges-section { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.mt-badges-section__title { font-family: var(--f-sans); font-size: 15px; font-weight: 700; color: var(--c-dark); margin-bottom: 18px; }
.mt-badges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt-badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: 0.35; transition: opacity 300ms ease; }
.mt-badge-item.is-earned { opacity: 1; }
.mt-badge-item__wrap { width: 64px; height: 64px; border-radius: 50%; border: 2.5px solid #ccc; background: var(--c-bg-alt); display: flex; align-items: center; justify-content: center; position: relative; }
.mt-badge-item.is-earned .mt-badge-item__wrap { border-color: var(--c-gold); background: rgba(244,165,39,0.1); }
.mt-badge-item__icon { font-size: 28px; }
.mt-badge-item__check { display: none; position: absolute; bottom: 0; right: 0; width: 18px; height: 18px; background: var(--c-teal); border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; align-items: center; justify-content: center; }
.mt-badge-item.is-earned .mt-badge-item__check { display: flex; }
.mt-badge-item__name { font-family: var(--f-sans); font-size: 11px; font-weight: 700; color: var(--c-dark); }
.mt-badge-item__desc { font-family: var(--f-sans); font-size: 10px; color: var(--c-faint); line-height: 1.3; }

.mt-pseudo-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.mt-pseudo-card__title { font-family: var(--f-serif); font-size: 20px; color: var(--c-dark); margin-bottom: 10px; }
.mt-pseudo-card__sub   { font-family: var(--f-sans); font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-bottom: 16px; }
.mt-pseudo-input { width: 100%; font-family: var(--f-sans); font-size: 14px; padding: 11px 16px; border: 1.5px solid var(--c-border); border-radius: 999px; outline: none; margin-bottom: 10px; transition: border-color var(--t-fast); }
.mt-pseudo-input:focus { border-color: var(--c-teal); }
.mt-pseudo-note { font-family: var(--f-sans); font-size: 11px; color: var(--c-faint); text-align: center; margin-top: 8px; }

.mt-levels-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.mt-levels-card__title { font-family: var(--f-sans); font-size: 14px; font-weight: 700; color: var(--c-dark); margin-bottom: 14px; }
.mt-level-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--c-border-lt); }
.mt-level-row:last-child { border-bottom: none; }
.mt-level-row__icon { font-size: 20px; flex-shrink: 0; }
.mt-level-row__info { flex: 1; }
.mt-level-row__name { font-family: var(--f-sans); font-size: 13px; font-weight: 600; color: var(--c-dark); }
.mt-level-row__min  { font-family: var(--f-sans); font-size: 11px; color: var(--c-faint); }
.mt-level-row.is-current .mt-level-row__name { color: var(--c-teal); }
.mt-level-row.is-current .mt-level-row__min  { color: var(--c-gold); font-weight: 700; }

.mt-reset-btn { font-family: var(--f-sans); font-size: 12px; color: var(--c-faint); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 8px; }
.mt-reset-btn:hover { color: var(--c-red); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.mt-footer { background: var(--c-dark); padding: 52px 0 32px; margin-top: auto; }
.mt-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mt-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mt-footer__logo  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mt-footer__logo-placeholder { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.mt-footer__brand-name { font-family: var(--f-serif); font-size: 18px; color: #fff; margin-bottom: 2px; }
.mt-footer__tagline    { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-teal-lt); }
.mt-footer__desc { font-family: var(--f-sans); font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 20px; max-width: 380px; }
.mt-footer__socials { display: flex; gap: 8px; margin-bottom: 40px; }
.mt-footer__social { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; text-decoration: none; }
.mt-footer__social--yt { background: var(--c-red); }
.mt-footer__social--ig { background: var(--c-teal); }
.mt-footer__social--fb { background: var(--c-dark-2); }
.mt-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.mt-footer__col-title { font-family: var(--f-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 12px; }
.mt-footer__link { display: block; font-family: var(--f-sans); font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; padding: 3px 0; transition: color var(--t-fast); }
.mt-footer__link:hover { color: #fff; }
.mt-footer__link--yt  { color: var(--c-red) !important; }
.mt-footer__menu { list-style: none; }
.mt-footer__menu li a { display: block; font-family: var(--f-sans); font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; padding: 3px 0; }
.mt-footer__menu li a:hover { color: #fff; }
.mt-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 36px; padding-top: 18px; }
.mt-footer__bottom-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mt-footer__copy { font-family: var(--f-sans); font-size: 11px; color: rgba(255,255,255,0.3); }

/* Pagination */
.mt-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.mt-pagination .page-numbers { font-family: var(--f-sans); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--c-border); color: var(--c-muted); text-decoration: none; transition: all var(--t-fast); }
.mt-pagination .page-numbers.current { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.mt-pagination .page-numbers:hover:not(.current) { border-color: var(--c-teal); color: var(--c-teal); }

/* No results */
.mt-no-results { font-family: var(--f-sans); font-size: 16px; color: var(--c-muted); text-align: center; padding: 48px 0; }

/* ── PAGE TRANSITIONS ────────────────────────────────────────────── */
.mt-main { animation: mtFadeUp 300ms ease forwards; }
@keyframes mtFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .mt-quick-links { grid-template-columns: repeat(2, 1fr); }
  .mt-stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .mt-badges-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .mt-detail-grid  { grid-template-columns: 1fr; }
  .mt-detail-sidebar { position: static; }
  .mt-map-layout   { grid-template-columns: 1fr; }
  .mt-ach-layout   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mt-nav__links { display: none; }
  .mt-nav__yt-btn { display: none; }
  .mt-nav__hamburger { display: flex; }
  .mt-bottom-nav { display: flex; }
  .mt-bottom-nav-spacer { height: 64px; }
  .mt-articles-grid { grid-template-columns: 1fr; }
  .mt-small-grid    { display: none; }
  .mt-quick-links   { grid-template-columns: repeat(2, 1fr); }
  .mt-stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .mt-gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .mt-gallery-card--wide { grid-column: span 1; }
  .mt-hero__stats   { gap: 20px; }
  .mt-yt-band__inner { flex-direction: column; }
  .mt-footer__cols  { grid-template-columns: repeat(2, 1fr); }
  .mt-map-stats     { flex-direction: column; gap: 8px; }
  .mt-lightbox__prev { left: -48px; }
  .mt-lightbox__next { right: -48px; }
}

@media (max-width: 480px) {
  .mt-badges-grid { grid-template-columns: repeat(3, 1fr); }
  .mt-quick-links { grid-template-columns: 1fr 1fr; }
  .mt-gallery-grid { grid-template-columns: 1fr; }
  .mt-footer__cols { grid-template-columns: 1fr; }
  .mt-lightbox__prev,
  .mt-lightbox__next { display: none; }
  .mt-xp-pill__sub { display: none; }
}
