/* ==========================================================================
   Voyage Infos — Base CSS (mobile-first)
   Thèmes : default (light), gold, green, jamaica
   ========================================================================== */

/* -------------------- Variables (default theme) -------------------- */
:root{
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(0,0,0,.10);
  --shadow-soft: 0 8px 22px rgba(0,0,0,.08);

  --container: 1120px;

  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --card: #ffffff;
  --text: #121417;
  --muted: #5a6472;
  --border: rgba(10,12,14,.12);

  --accent: #1b8f4d;     /* green-ish default */
  --accent-2: #1fb24a;   /* cool secondary */
  --accent-soft: rgba(10,122,102,.12);

  --danger: #b42318;
  --warning: #b54708;

  --link: var(--accent);
}


/* -------------------- Reset -------------------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  text-rendering: geometricPrecision;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }
button{ font: inherit; }

/* -------------------- Layout primitives -------------------- */
.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
main{ padding: 18px 0 90px; } /* extra bottom for mobile nav */

.nav-burger svg {
  transition: transform .25s ease;
}

.nav-burger[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 8px;
  border: 1px solid var(--border);

  background: var(--card);
  color: var(--text);

  cursor: pointer;
}

.nav-burger:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (min-width: 1024px){
  main{ padding-bottom: 36px; }
}
.grid{
  display: grid;
  gap: 18px;
}
.grid-2{
  display: grid;
  gap: 18px;
}
@media (min-width: 1024px){
  .grid-2{
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

/* -------------------- Typography -------------------- */
h1,h2,h3{ line-height: 1.15; margin: 0 0 10px; }
h1{ font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; }
h2{ font-size: clamp(18px, 2.1vw, 26px); letter-spacing: -0.01em; }
h3{ font-size: clamp(18px, 1.1vw, 18px); letter-spacing: -0.01em; }
p{ margin: 0 0 12px; }
.small{ font-size: 13px; }
.muted{ color: var(--muted); }

/* =================== Lucide Icons =================== */

.icon {
  display: inline-flex;
  vertical-align: middle;
  stroke-width: 1.8;
}

/* tailles */
.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 22px;
  height: 22px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* couleur héritée */
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

/* variantes couleur */
.icon-accent {
  color: var(--accent);
}

.icon-muted {
  color: var(--muted);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.rubrique-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;

  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  stroke-width: 2.2;
}

.ios-install-banner {
  position: fixed;
  bottom: 70px;
  left: 10px;
  right: 10px;
  background: var(--card);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  font-size: 14px;
  z-index: 9999;
}

/* -------------------- Header -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: .02em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.brand-title{ font-weight: 800; display: block; }
.brand-tagline{ display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

.nav-desktop{
  display: none;
  gap: 10px;
  align-items: center;
}
.nav-link{
  padding: 9px 10px;
  border-radius: 12px;
  color: inherit;
}
.nav-link:hover{
  background: var(--bg-2);
  text-decoration: none;
}
.nav-cta{
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.nav-cta:hover{ background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg-2)); }

.nav-burger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  display: grid;
  place-items: center;
  gap: 4px;
}
.nav-burger span{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  display: block;
  opacity: .85;
}
@media (min-width: 900px){
  .nav-desktop{ display: flex; }
  .nav-burger{ display: none; }
}

/* Mobile drawer */
.nav-mobile-drawer{
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 10px 0 14px;
}
.drawer-link{
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: inherit;
}
.drawer-link:hover{ background: var(--bg-2); text-decoration: none; }
.drawer-cta{
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}

/* -------------------- Cards & blocks -------------------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: clip;
}
.card-pad{ padding: 16px; }
.card-title{ margin-bottom: 6px; }
.card-meta{ display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.card-grid{
  display: grid;
  gap: 14px;
}
@media (min-width: 900px){
  .card-grid.cols-4{
    grid-template-columns: repeat(4, 1fr);
  }
  .card-grid.cols-3{
    grid-template-columns: repeat(3, 1fr);
  }
}

.rubrique-card{
  position: relative;
  min-height: 140px;
}
.rubrique-card .rubrique-ico{
  font-size: 22px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}
.rubrique-card .rubrique-actions{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-aside-image .card-pad{
  padding: 0;
}

.card-aside-image img{
  border-radius: var(--radius);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ text-decoration: none; filter: brightness(0.99); }

.btn-primary{
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  color: #fff;
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-ghost{
  background: transparent;
}
.btn-small{ padding: 8px 10px; border-radius: 12px; font-size: 13px; }

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  border-radius: 8px;

  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);

  font-size: 13px;
  cursor: pointer;

  transition: all .2s ease;
}

.btn-install:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.btn-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 12px;
  border-radius: 8px;

  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  color: color-mix(in srgb, var(--accent) 85%, var(--text));

  font-size: 13px;
  cursor: pointer;

  transition: all .2s ease;
}

.btn-fav:hover {
  background: var(--bg-2);
  color: var(--accent);
  border-color: var(--accent);
}


.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}
.badge-accent{
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}
.badge-soft{
  background: var(--bg-2);
}

/*.page-content section {  */
/*  margin-top: 24px;  */

}

.page-content section:first-child {
  margin-top: 0;
}

/* -------------------- Accordion -------------------- */
.accordion{
  display: grid;
  gap: 12px;
}
.acc-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: clip;
  background: var(--card);
}
.acc-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.acc-btn:hover{ background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.acc-title{
  font-weight: 700;
}
.acc-ico{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.acc-panel{
  padding: 0 14px 14px;
  color: var(--muted);
}
.acc-panel[hidden]{ display: none; }

/* -------------------- Article cards -------------------- */
.article-card .thumb{
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.article-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.article-card .excerpt{
  color: var(--muted);
  margin-top: 6px;
}

/* -------------------- Ad slots / Affiliate slots -------------------- */
.ad-slot, .aff-slot{
  border: 1px dashed color-mix(in srgb, var(--muted) 30%, var(--border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  padding: 14px;
  color: var(--muted);
}
.ad-slot .slot-title, .aff-slot .slot-title{
  font-weight: 800;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  margin-bottom: 6px;
}
.ad-slot .slot-note, .aff-slot .slot-note{
  font-size: 13px;
  margin: 0;
}
.ad-slot.ad-top{ min-height: 90px; }
.ad-slot.ad-mid{ min-height: 110px; }
.ad-slot.ad-sidebar{ min-height: 220px; }

.aff-slot .btn-primary{ margin-top: 10px; }

/* -------------------- Content (articles) -------------------- */
.prose{
  padding: 16px;
}
.prose h2{ margin-top: 16px; }
.prose ul{ margin: 8px 0 12px 18px; }
.prose li{ margin: 6px 0; }
.callout{
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-2));
  border-radius: var(--radius);
  padding: 14px;
  margin: 14px 0;
}
.callout strong{ color: color-mix(in srgb, var(--accent) 70%, var(--text)); }

.hero{
  border-radius: var(--radius);
  overflow: clip;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.hero .hero-img{
  aspect-ratio: 16/9;
  background: var(--bg-2);
}
.hero .hero-img img{ width: 100%; height: 100%; object-fit: cover; }
.hero .hero-body{ padding: 14px; }
.kpis{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-intro{
display:grid;
grid-template-columns:1.2fr 0.8fr;
gap:40px;
align-items:start;
}

.hero-media img{
width:100%;
height:auto;
border-radius:12px;
display:block;
}

@media (max-width:900px){

.hero-intro{
grid-template-columns:1fr;
}

.hero-media{
order:-1;
}

}

.hero-media{
  padding-top: 30px;
}

.hero-media img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: 18px;
}


/* Gallery + zoom */
.gallery{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px){
  .gallery{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.zoomable{
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  aspect-ratio: 4/3;
}

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

/* -------------------- KPI -------------------- */

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

@media (min-width: 1100px){
  .kpis{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--card);
  min-width: 0;
}

.kpi .k{
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.kpi .v{
  font-weight: 500;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden]{
  display: none;
}

.modal-content{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.modal-img{
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.2);
}

.modal-close{
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
}
/* empilement vertical des cards/pages */
.page-stack > * {
  margin-top: 18px;
}
.page-stack > *:first-child {
  margin-top: 0;
}

/* sidebar spacing (optionnel) */
.sidebar > * + * {
  margin-top: 18px;
}

/* -------------------- Footer -------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 18px 0 90px; /* for bottom nav on mobile */
}
@media (min-width: 1024px){
  .site-footer{ padding-bottom: 18px; }
}
.footer-grid{
  display: grid;
  gap: 16px;
}
@media (min-width: 900px){
  .footer-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-title{ font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.footer-link{ display: block; padding: 6px 0; color: inherit; }
.footer-link:hover{ color: var(--accent); text-decoration: none; }
.footer-badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.footer-bottom{ padding-top: 12px; border-top: 1px solid var(--border); margin-top: 12px; }

/* -------------------- Bottom nav (mobile only) -------------------- */
/* -------------------- Bottom nav (mobile only) -------------------- */
/* -------------------- Bottom nav (mobile only) -------------------- */
.bottom-nav{
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 40;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;

  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;

  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.16),
    0 2px 10px rgba(0,0,0,.08);
}
.bottom-nav{
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1000;

  transition: transform .25s ease;
}

.bottom-nav.hide{
  transform: translateY(140%);
}

.bottom-link{
  min-width: 0;
  padding: 8px 2px 9px;

  display: grid;
  place-items: center;
  gap: 5px;

  border-radius: 16px;
  color: inherit;
  text-decoration: none;

  transition:
    background .18s ease,
    transform .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

.bottom-link:active{
  transform: scale(.97);
}

.bottom-ico{
  width: 22px;
  height: 22px;

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

  color: var(--muted);
  transition: color .18s ease, transform .18s ease;
}

.bottom-ico svg{
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.bottom-txt{
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  color: var(--muted);
  transition: color .18s ease, font-weight .18s ease;
}

/* hover/tap léger */
.bottom-link:hover{
  text-decoration: none;
  background: rgba(255,255,255,.04);
}

/* état actif premium */
.bottom-link[aria-current="page"]{
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 16%, transparent),
    color-mix(in srgb, var(--accent) 10%, transparent)
  );
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.bottom-link[aria-current="page"] .bottom-ico{
  color: var(--accent);
  transform: translateY(-1px);
}

.bottom-link[aria-current="page"] .bottom-txt{
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font-weight: 800;
}

/* bouton CTA un peu distinct */
.bottom-link-cta .bottom-ico{
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}

.bottom-link-cta .bottom-txt{
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  font-weight: 700;
}

/* iPhone safe area */
@supports (padding: max(0px)) {
  .bottom-nav{
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* protection du contenu derrière la nav mobile */
main{
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

@media (min-width: 900px){
  .bottom-nav{ display:none; }
  main{ padding-bottom:36px; }
}

/* -------------------- Utility -------------------- */
.spacer-10{ height: 10px; }
.spacer-18{ height: 18px; }
.hr{
  height: 1px;
  background: var(--border);
  margin: 14px 0;
  border: 0;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
}

/* Theme: Gold */
body.theme-gold{
  --accent: #b58900;
  --accent-2: #1f2937;
  --accent-soft: rgba(181,137,0,.14);
}

/* Theme: Green */
body.theme-jamaica{
  --accent: #1b7f3a;
  --accent-2: #0f4c5c;
  --accent-soft: rgba(27,127,58,.14);
}

/* Theme: Jamaica (soft / readable) */
body.theme-jamaica{
  --bg: #f6f7f5;
  --bg-2: #eef1ee;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #4b5563;
  --border: rgba(31,41,51,.14);

  --accent: #1f7a4d;      /* green */
  --accent-2: #d4a017;    /* gold */
  --accent-soft: rgba(31,122,77,.12);

  --danger: #c0392b;      /* red */
  --link: var(--accent);
}

/* Theme: Jamaica Dark (soft contrast) */
body.theme-jamaica-dark{
  --bg: #0b0f12;
  --bg-2: #0f1418;
  --card: #12181d;

  --text: #d8dee4;          /* gris clair doux */
  --muted: #9aa6b2;         /* gris secondaire */

  --border: rgba(255,255,255,.08);

  --accent: #1fb24a;        /* vert */
  --accent-2: #d4a017;      /* or */
  --accent-soft: rgba(31,178,74,.12);

  --danger: #e74c3c;
  --link: #3ddc84;
}

.grid > section {
  width: 100%;
  min-width: 0;
}

.article-card h3 a {
  text-decoration: none;
  color: inherit;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.sidebar-images{
  display:grid;
  gap:12px;
  margin:8px 0 18px;
}
.sidebar-images img{
  width:100%;
  display:block;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.pwa-card .pwa-qr img{
  width: 100%;
  max-width: 160px;   /* ← réduit ~30% */
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  background: #fff;
  padding: 6px;
}
/* ===== PWA sidebar responsive ===== */

/* Par défaut = mobile */
.pwa-mobile{
  display: block;
}

.pwa-desktop{
  display: none;
}

/* Desktop */
@media (min-width: 980px){

  .pwa-mobile{
    display: none !important;
  }

  .pwa-desktop{
    display: block !important;
  }

}

/* Optionnel : espace entre les boutons */
.pwa-actions .btn{
  margin-right: 6px;
  margin-bottom: 6px;
}

@media (max-width: 880px) {
  .hero-video { order: -1; }
}

.map{
  margin:20px 0;
}

.map img{
  width:100%;
  border-radius:10px;
}

.map-embed{
  margin:20px 0;
  border-radius:10px;
  overflow:hidden;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.table {
  width: 100%;
  min-width: 720px; /* force le scroll interne du tableau au lieu d'élargir la page */
  border-collapse: collapse;
  font-size: 15px;
}

.table th,
.table td {
  padding: 10px 12px;
  border: 2px solid #e3e3e3;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f5f5f5;
  font-weight: 700;
}

.table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.logo-icon{
width:22px;
height:22px;
display:block;
}

.article-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:12px 12px 0 0;
}

.sidebar-images img,
.article-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.sidebar-video-card{
  width:100%;
  max-width:100%;
}

.sidebar-video-wrap{
  position:relative;
  width:100%;
  max-width:100%;
  border-radius:12px;
  overflow:hidden;
  background:#000;
}

.sidebar-video-shell{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 43 / 29;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.sidebar-video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}

/* on masque les contrôles au départ */
.sidebar-video:not(.is-ready){
  pointer-events: none;
}

.sidebar-video-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.sidebar-video-play:hover{
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
}

.sidebar-video-play:focus-visible{
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

.sidebar-video-play .play-icon,
.sidebar-video-play svg{
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
  margin-left: 3px; /* petit recentrage visuel du triangle */
}

.sidebar-video-shell.is-playing .sidebar-video{
  pointer-events: auto;
}

.sidebar-video-shell.is-playing .sidebar-video-play{
  display: none;
}

.plane-badge{
  width:40px;
  height:40px;
  aspect-ratio:1 / 1;     /* garantit le cercle */
  flex:0 0 40px;          /* empêche l'étirement en flexbox */

  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;

  background:#000;
  border:2px solid rgba(255,255,255,.08);
  box-shadow:0 6px 14px rgba(0,0,0,.25);
}

.plane-badge svg{
  width:28px;
  height:28px;
}

.icon-plane-jamaica{
  width:28px;
  height:28px;
}

@media (max-width:768px){

  .plane-badge{
    width:34px;
    height:34px;
    flex:0 0 34px;
  }

  .plane-badge svg{
    width:24px;
    height:24px;
  }

}

.article-card .thumb{
  border-radius: 12px 12px 0 0 !important;
  overflow: hidden;
}

.article-card .thumb img{
  border-radius: 0 !important;
  display: block;
}

.grid,
.grid-2,
.grid > *,
.grid-2 > *,
.card,
.prose,
.hero,
.hero-body,
aside,
section {
  min-width: 0;
}

/* ===================== Sidebar link blocks ===================== */

.sidebar-links{
  display: grid;
  gap: 14px;
}

.sidebar-group{
  padding-top: 2px;
}

.sidebar-group + .sidebar-group{
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.sidebar-group h3{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
}

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

.sidebar-group li + li{
  margin-top: 6px;
}

.sidebar-group a{
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  line-height: 1.35;
}

.sidebar-group a:hover{
  color: color-mix(in srgb, var(--accent) 82%, var(--text));
  text-decoration: underline;
}

/* Liens dans un paragraphe : plus visibles pour l’accessibilité text-decoration: underline; */
p a{
  font-weight: 600;
}

.sun-data{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}

.sun-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--border);
  padding:10px;
  border-radius:12px;
  background:#fff;
}

.sun-item i,
.sun-item svg{
  width:18px;
  height:18px;
  color:var(--accent);
  flex:0 0 auto;
  margin-top:2px;
}

.sun-item strong{
  display:block;
  font-size:12px;
  line-height:1.2;
}

.sun-item span{
  display:block;
  font-weight:600;
  margin-top:2px;
}

/* Mobile : on garde 2 colonnes mais on compacte */
@media (max-width: 560px){
  .sun-data{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:8px;
  }

  .sun-item{
    padding:8px;
    gap:8px;
  }

  .sun-item strong{
    font-size:12px;
  }

  .sun-item span{
    font-size:0.95rem;
  }

}

/* Widget soleil : icônes du haut */
#sun-info svg.lucide,
#sun-day-length svg.lucide,
#sun-extra svg.lucide{
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  stroke-width: 2;
}

/* Bouton détails */
#sun-toggle svg.lucide{
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
}

/* QR code PWA sidebar */

.pwa-qr{
  display:flex;
  justify-content:center;
  align-items:center;
}

.pwa-qr img{
  width:140px;
  height:140px;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

.header-tool{
  display:none;
}

@media (max-width: 900px){
  .header-tool.mobile-only{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid var(--border, #d9d9d9);
    background:#fff;
    border-radius:999px;
    padding:8px 10px;
    font-size:0.85rem;
    line-height:1;
    cursor:pointer;
    flex:0 0 auto;
  }

  .header-tool-label{
    font-weight:600;
  }
}

.modal-panel{
  width:min(92vw, 420px);
}

.rates-modal-card{
  background:#fff;
  border-radius:16px;
  padding:16px;
}

.rates-box{
  border:1px solid #ddd;
  border-radius:12px;
  background:#fafafa;
  padding:12px;
}

.header-tool{
  display: none;
}

@media (max-width: 900px){
  .header-tool.mobile-only.home-only:not([hidden]){
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border, #d9d9d9);
    background: #fff;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
  }
}

.premium-modal[hidden]{
  display:none !important;
}

.premium-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}

.premium-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
}

.premium-modal__dialog{
  position:relative;
  z-index:1;
  width:min(92vw, 520px);
  margin:8vh auto 0;
  background:var(--card, #fff);
  color:var(--text, #111);
  border:1px solid var(--border, rgba(0,0,0,.08));
  border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  overflow:hidden;
}

.premium-modal__content{
  padding:22px;
}

.premium-modal__icon{
  font-size:40px;
  line-height:1;
  margin-bottom:10px;
}

.premium-modal__title{
  margin:0 0 10px;
  font-size:1.5rem;
  line-height:1.15;
}

.premium-modal__text{
  margin:0 0 18px;
  font-size:1rem;
  line-height:1.6;
}

.premium-modal__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.premium-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:transparent;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

body.modal-open{
  overflow:hidden;
}

.supporter-card .card-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.supporter-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.8rem;
  font-weight:600;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(10,122,102,.08);
  color:#0a7a66;
}

.supporter-list{
  margin:0;
  padding-left:18px;
}

.supporter-list li + li{
  margin-top:6px;
}

@media (max-width:640px){
  .premium-modal__dialog{
    width:min(94vw, 520px);
    margin:10vh auto 0;
    border-radius:20px;
  }

  .premium-modal__content{
    padding:18px;
  }

  .premium-modal__title{
    font-size:1.3rem;
  }
}

.premium-weather-box{
  margin-top:10px;
}

.premium-weather-card{
  margin-top:16px;
  border:1px solid rgba(10,122,102,0.2);
}

.premium-weather-card .pwa-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.premium-weather-result{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background:rgba(10,122,102,.04);
}

.premium-weather-result .temp{
  font-size:1.6rem;
  font-weight:700;
  line-height:1.1;
  margin-bottom:4px;
}

.premium-weather-result .meta{
  font-size:.9rem;
  line-height:1.5;
}

.assistant-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(1, minmax(0,1fr));
}

.assistant-card-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.assistant-result-box{
  margin-top:12px;
}

.assistant-location-result{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background:rgba(10,122,102,.04);
}

.assistant-location-result .loc-title{
  font-weight:700;
  margin-bottom:8px;
}

.assistant-location-result .loc-meta{
  font-size:.95rem;
  line-height:1.6;
}

.assistant-location-result .loc-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.assistant-grid {
  align-items: start;
}

.assistant-card--full {
  grid-column: 1 / -1;
}

section.assistant-top-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px;
  margin: 10px 0;
  align-items: start;
}

section.assistant-top-grid > .assistant-top-card {
  min-width: 0;
  height: 100%;
}

@media (max-width: 980px) {
  section.assistant-top-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 860px){
  .assistant-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

.bottom-link.is-supporter{
  background: rgba(10,122,102,0.08);
  border-radius: 12px;
}

.supporter-status-box{
  margin-top:12px;
}

.supporter-status{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(10,122,102,.05);
}

.supporter-status--active{
  border-color:rgba(10,122,102,.22);
  background:rgba(10,122,102,.08);
}

.supporter-status--inactive{
  border-color:rgba(0,0,0,.08);
  background:rgba(0,0,0,.03);
}

.supporter-status__icon{
  font-size:1.2rem;
  line-height:1;
}

.supporter-status__text{
  font-size:.95rem;
  line-height:1.5;
}

.supporter-cta-card{
  margin-top:16px;
}

.supporter-hero-cta{
  margin-top:16px;
}

.supporter-hero-cta .btn{
  margin-right:10px;
  margin-bottom:10px;
}

.supporter-hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.supporter-inline-box{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(10,122,102,.05);
}

.supporter-inline-box--active{
  border-color:rgba(10,122,102,.22);
  background:rgba(10,122,102,.08);
}

.supporter-inline-box--inactive{
  border-color:rgba(0,0,0,.08);
  background:rgba(0,0,0,.03);
}

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

.support-card-title{
  display:flex;
  align-items:center;
  gap:8px;
}

.support-guide-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

@media (min-width: 860px){
  .support-guide-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

.esim-compare-block {
  margin-top: 14px;
}

.esim-table-wrap {
  display: block;
  overflow: visible;
}

.esim-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
}

.esim-table thead tr {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.esim-table th,
.esim-table td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,.08);
  word-break: break-word;
}

.esim-table th {
  font-size: 0.8rem;
  font-weight: 700;
}

.esim-table td {
  font-size: 0.86rem;
}

.esim-table th:nth-child(1),
.esim-table td:nth-child(1) { width: 15%; }

.esim-table th:nth-child(2),
.esim-table td:nth-child(2) { width: 28%; }

.esim-table th:nth-child(3),
.esim-table td:nth-child(3) { width: 9%; }

.esim-table th:nth-child(4),
.esim-table td:nth-child(4) { width: 8%; }

.esim-table th:nth-child(5),
.esim-table td:nth-child(5) { width: 12%; }

.esim-table th:nth-child(6),
.esim-table td:nth-child(6) { width: 18%; }

.esim-table th:nth-child(7),
.esim-table td:nth-child(7) { width: 10%; }

.esim-provider-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  min-width: 78px;
  padding: 6px 10px;
  border-radius: 10px;

  background: linear-gradient(135deg, #1f7a45, #2e9b5f);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.esim-provider-cta:hover {
  text-decoration: none;
  opacity: 0.95;
}

.esim-provider-cta__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.esim-provider-cta__sub {
  font-size: 0.65rem;
  opacity: 0.92;
  color: #fff;
}

.esim-mobile-cards {
  display: none;
}

.esim-offer-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.45);
}

.esim-offer-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.esim-offer-card__provider {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
}

.esim-offer-card__plan {
  margin-top: 4px;
  font-size: 0.95rem;
}

.esim-offer-card__price {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.98rem;
}

.esim-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 12px 0 14px;
}

.esim-offer-item {
  font-size: 0.95rem;
}

.esim-offer-item .label {
  display: block;
  font-size: 0.78rem;
  opacity: 0.7;
  margin-bottom: 2px;
}

@media (max-width: 980px) {
  .esim-table {
    font-size: 0.84rem;
  }

  .esim-table th,
  .esim-table td {
    padding: 9px 6px;
  }

  .esim-table th {
    font-size: 0.76rem;
  }

  .esim-table td {
    font-size: 0.82rem;
  }

  .esim-provider-cta {
    min-width: 88px;
    padding: 6px 9px;
    border-radius: 10px;
  }

  .esim-provider-cta__name {
    font-size: 0.78rem;
  }

  .esim-provider-cta__sub {
    font-size: 0.62rem;
  }
}

@media (max-width: 760px) {
  .esim-table-wrap {
    display: none;
  }

  .esim-mobile-cards {
    display: block;
  }
}

.premium-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.premium-head__icon {
  font-size: 2rem;
  line-height: 1;
}

.premium-head__title {
  margin: 0 0 6px;
  font-size: 1.9rem;
}

.premium-head__text {
  margin: 0;
  color: rgba(0,0,0,.7);
  line-height: 1.45;
}

.premium-maps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-map-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.52));
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
}

.premium-map-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.premium-map-card__emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
}

.premium-map-card__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.premium-map-card__desc {
  margin: 0;
  color: rgba(0,0,0,.72);
  line-height: 1.45;
  font-size: 0.96rem;
}

.premium-map-card__meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: rgba(0,0,0,.58);
}

.premium-map-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: #1f7a45;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

.premium-map-card__btn:hover {
  text-decoration: none;
  opacity: 0.95;
}

@media (max-width: 980px) {
  .premium-maps-grid {
    grid-template-columns: 1fr;
  }

  .premium-map-card {
    min-height: auto;
  }

  .premium-head__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .premium-head {
    gap: 10px;
  }

  .premium-head__icon {
    font-size: 1.7rem;
  }

  .premium-head__title {
    font-size: 1.35rem;
  }

  .premium-head__text {
    font-size: 0.96rem;
  }

  .premium-map-card {
    padding: 16px;
    border-radius: 16px;
  }

  .premium-map-card__title {
    font-size: 1.05rem;
  }

  .premium-map-card__desc {
    font-size: 0.92rem;
  }
}

.spot-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.spot-actions .btn {
  font-size: 0.8rem;
  padding: 4px 8px;
}

.card-weather {
  min-height: 480px;
}

.callout-urgent {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.acc-panel .road-day{
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a7a66;
  letter-spacing: 0.02em;
}

.acc-panel .road-list{
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.acc-panel .road-list li{
  margin: 0.3rem 0;
  color: #2f3a3a;
  line-height: 1.55;
}

.acc-panel .road-block{
  padding: 0.85rem 1rem;
  margin: 0.8rem 0;
  border: 1px solid rgba(10,122,102,.12);
  border-radius: 12px;
  background: rgba(10,122,102,.04);
}

.spot-facts{
  display:grid;
  gap:12px;
  margin:1rem 0 1.25rem;
}

.spot-fact{
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
}

.spot-label{
  display:block;
  font-size:.82rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#0a7a66;
  margin-bottom:4px;
}

.spot-value{
  display:block;
  line-height:1.5;
  color:#243232;
}