/* ==========================================================================
   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: #0a7a66;     /* green-ish default */
  --accent-2: #0f4c5c;   /* cool secondary */
  --accent-soft: rgba(10,122,102,.12);

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

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

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

/* Theme: Green */
body.theme-green{
  --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: #5f6b76;
  --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;
}

/* -------------------- 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 */
@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: 18px; }
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;
}

.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; }

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  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);
}

/* -------------------- 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/7;
  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));
}
@media (min-width: 700px){
  .kpis{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.kpi{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--card);
}
.kpi .k{ font-size: 12px; color: var(--muted); }
.kpi .v{ font-weight: 800; margin-top: 2px; }

/* 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: clip;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.zoomable img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }

.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{
  width: min(1100px, 100%);
  border-radius: 18px;
  overflow: clip;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
}
.modal-img{
  width: 100%;
  height: auto;
  display: block;
}
.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;
}

/* -------------------- 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{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
.bottom-link{
  padding: 10px 6px 12px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: inherit;
}
.bottom-ico{ font-size: 16px; }
.bottom-txt{ font-size: 11px; color: var(--muted); }
.bottom-link-cta .bottom-txt{ color: color-mix(in srgb, var(--accent) 75%, var(--text)); font-weight: 700; }
.bottom-link[aria-current="page"]{
  background: var(--accent-soft);
}
.bottom-link[aria-current="page"] .bottom-txt{
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  font-weight: 800;
}
@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;
  }
}
