/* =============================================
   DUNES INSOLITES — Shared CSS
   Désert tunisien • Route Insolite
   ============================================= */

:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --text: #1a1207;
  --muted: #6b7280;
  --border: rgba(0,0,0,.08);
  --gold: #f4b942;
  --gold2: #f6c56f;
  --gold-light: rgba(244,185,66,.13);
  --gold-border: rgba(244,185,66,.35);
  --shadow: 0 6px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.10);
  --radius: 18px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; letter-spacing: -.2px;
  flex-shrink: 0;
}
.logo-img {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: contain; border: 1px solid var(--border);
  padding: 5px; background: #fff;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  font-size: 14px; font-weight: 700;
}
.nav-links a {
  padding: 7px 11px; border-radius: 10px; color: var(--muted);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gold-light); color: var(--text); }
.nav-links a.active { background: var(--gold-light); color: var(--text); }
.nav-cta { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Mobile hamburger (hidden on desktop) */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 8px;
  background: none; border: none;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: .2s;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: 700;
  transition: background .15s, border-color .15s, transform .08s;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn:hover { background: #f5f5f0; border-color: rgba(0,0,0,.13); }
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border: none; color: #1a1207;
}
.btn-gold:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--gold2), var(--gold)); }

.btn-wa {
  background: #25d366; border: none; color: #fff;
}
.btn-wa:hover { background: #20bd5c; }

.btn-outline {
  background: var(--gold-light);
  border-color: var(--gold-border);
  color: #6b4b16;
}
.btn-outline:hover { background: rgba(244,185,66,.22); }

.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ============================
   BADGE / PILL
   ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  color: #6b4b16; font-size: 12px; font-weight: 800;
  letter-spacing: .2px;
}
.badge-blue {
  background: rgba(14,165,233,.1); border-color: rgba(14,165,233,.25);
  color: #0b4a64;
}
.badge-green {
  background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.25);
  color: #065f46;
}

/* ============================
   HERO
   ============================ */
.hero { padding: 24px 0 12px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px; align-items: stretch;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ratio-img {
  position: relative; overflow: hidden; width: 100%;
}
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-4x3  { aspect-ratio: 4/3; }
.ratio-3x2  { aspect-ratio: 3/2; }
.ratio-1x1  { aspect-ratio: 1/1; }
.ratio-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.52) 100%);
  pointer-events: none;
}
.img-caption {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.hero-body { padding: 24px; }
h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.5px; margin: 12px 0 12px; }
.hero-subtitle { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 20px; max-width: 58ch; }

/* SIDE COL */
.side-col { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.info-card-title {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 14px;
}
.facts { display: grid; gap: 8px; }
.fact {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: #f7f6f2; border: 1px solid var(--border);
  font-size: 14px;
}
.fact-label { color: var(--muted); font-weight: 700; }
.fact-value { font-weight: 800; text-align: right; }
.fact-note { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 10px; }

/* ============================
   SECTIONS
   ============================ */
section { padding: 36px 0; }
.section-head { margin-bottom: 24px; }
.section-label {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  font-size: 11px; font-weight: 800; color: #6b4b16;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}
h2 { font-size: 28px; letter-spacing: -.3px; margin-bottom: 8px; line-height: 1.2; }
.section-desc { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 80ch; }

/* ============================
   GRID LAYOUTS
   ============================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ============================
   FEATURE CARDS
   ============================ */
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 800; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ============================
   CIRCUIT CARDS
   ============================ */
.circuit-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.circuit-card-img { position: relative; aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.circuit-card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s ease;
}
.circuit-card:hover .circuit-card-img img { transform: scale(1.04); }
.circuit-card-img .img-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.65) 100%);
}
.circuit-card-badges {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
}
.duration-badge {
  background: var(--gold); color: #1a1207;
  padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800;
}
.diff-badge {
  color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.circuit-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.circuit-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.circuit-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14,165,233,.1); color: #0b4a64;
  border: 1px solid rgba(14,165,233,.2);
}
.tag-gold {
  background: var(--gold-light); color: #6b4b16;
  border-color: var(--gold-border);
}
.circuit-body .btn-row { margin-top: auto; }

/* DAY PROGRAM */
.day-program { display: grid; gap: 10px; margin-bottom: 16px; }
.day-item {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f6f2;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.day-item h4 {
  font-size: 13px; font-weight: 800; color: #6b4b16;
  margin-bottom: 6px;
}
.day-item ul {
  list-style: disc; padding-left: 16px;
  font-size: 13px; color: var(--muted); line-height: 1.8;
}

/* ============================
   GALLERY
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 14px; aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-hover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-hover-overlay { opacity: 1; }
.gallery-cap {
  position: absolute; bottom: 10px; left: 12px; right: 12px;
  color: #fff; font-size: 13px; font-weight: 700;
  opacity: 0; transition: opacity .3s;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.gallery-item:hover .gallery-cap { opacity: 1; }

/* Gallery featured (large) */
.gallery-featured {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  grid-template-rows: auto auto;
  gap: 12px;
  align-items: stretch;
}
.gallery-featured .gallery-item:first-child {
  grid-row: span 2; aspect-ratio: 3/4;
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 4px; }

/* ============================
   CTA BLOCK
   ============================ */
.cta-block {
  background: linear-gradient(135deg, rgba(246,197,111,.18), rgba(244,185,66,.10));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-block-text h3 { font-size: 22px; margin-bottom: 6px; }
.cta-block-text p { color: var(--muted); font-size: 15px; max-width: 55ch; }

/* ============================
   CONTACT CARDS
   ============================ */
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-lg); text-align: center;
}
.contact-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--gold-border);
  display: grid; place-items: center; font-size: 28px;
  margin: 0 auto 16px;
}
.contact-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.contact-role { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-number { font-size: 22px; font-weight: 700; margin: 12px 0 18px; color: var(--text); }

/* ============================
   INCLUS LIST
   ============================ */
.inclus-list { display: grid; gap: 8px; }
.inclus-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.15);
  font-size: 14px; line-height: 1.5;
}
.inclus-check {
  flex-shrink: 0; width: 20px; height: 20px;
  background: rgba(16,185,129,.2); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; color: #065f46; margin-top: 1px;
}
.non-inclus-item {
  background: rgba(239,68,68,.05);
  border-color: rgba(239,68,68,.15);
}
.non-inclus-item .inclus-check {
  background: rgba(239,68,68,.15); color: #991b1b;
}

/* ============================
   FAQ
   ============================ */
.faq-list { display: grid; gap: 8px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.faq-q {
  padding: 15px 18px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  user-select: none;
}
.faq-q svg {
  flex-shrink: 0; width: 18px; height: 18px;
  transition: transform .2s;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px; color: var(--muted); line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ============================
   PAGE HERO BANNER
   ============================ */
.page-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius); margin: 20px 0;
  aspect-ratio: 21/7; min-height: 200px;
}
.page-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.page-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%);
}
.page-banner-content {
  position: absolute; top: 50%; left: 36px; transform: translateY(-50%);
  color: #fff; max-width: 520px;
}
.page-banner-content h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.4px; margin-bottom: 10px; }
.page-banner-content p { font-size: 15px; line-height: 1.65; opacity: .9; }

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); padding: 16px 0 4px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { opacity: .45; font-size: 10px; }

/* ============================
   HIGHLIGHT BAND
   ============================ */
.highlight-band {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  border-radius: var(--radius);
  padding: 28px 32px; color: #1a1207;
}
.highlight-band h3 { font-size: 20px; margin-bottom: 6px; font-weight: 800; }
.highlight-band p { font-size: 14px; opacity: .75; line-height: 1.7; }

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 44px 0 24px; margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px; margin-bottom: 32px;
}
.footer-brand { font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 34ch; }
.footer-col h4 {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 12px;
}

/* ============================
   WHATSAPP FLOATING BTN
   ============================ */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.wa-float-btn {
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff;
  padding: 12px 18px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .15s, box-shadow .15s;
}
.wa-float-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.wa-float-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .page-banner { aspect-ratio: 5/2; }
  .page-banner-content h1 { font-size: 26px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  h1 { font-size: 30px; }
  .cta-block { flex-direction: column; text-align: center; }
  .cta-block-text p { max-width: 100%; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); gap: 12px; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-banner { aspect-ratio: 4/3; min-height: 0; }
  .page-banner-content { left: 18px; max-width: calc(100% - 36px); }
  .page-banner-content h1 { font-size: 22px; }
  h1 { font-size: 26px; }
  .hero-body { padding: 18px; }
  .cta-block { padding: 22px 20px; }
  .gallery-featured { grid-template-columns: 1fr; }
  .gallery-featured .gallery-item:first-child { grid-row: span 1; aspect-ratio: 4/3; }
  .wa-float-btn span { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(250,248,244,.97); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-weight: 800; color: var(--text);
  padding: 10px 24px; border-radius: 12px; text-align: center;
}
.mobile-menu a:hover { background: var(--gold-light); }
.mobile-menu-close {
  position: absolute; top: 18px; right: 18px;
  font-size: 28px; font-weight: 700; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  color: #6b4b16;
}
