/* ============================================================
   World Travel Club – main.css
   Design system : moderne, accessible, optimisé performance
   ============================================================ */

/* ── 1. Reset & variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-primary:   #1a6fb5;
  --clr-primary-d: #145a96;
  --clr-accent:    #f59e0b;
  --clr-accent-d:  #d97706;
  --clr-bg:        #f8fafc;
  --clr-surface:   #ffffff;
  --clr-text:      #1e293b;
  --clr-muted:     #64748b;
  --clr-border:    #e2e8f0;
  --clr-success:   #16a34a;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --max-w: 1200px;
  --gap:   clamp(1rem, 3vw, 2rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 2. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--clr-text);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   margin-bottom: .6rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }

.lead {
  font-size: 1.15rem;
  color: var(--clr-muted);
  max-width: 680px;
}

/* ── 3. Layout helpers ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section--alt { background: var(--clr-surface); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── 4. Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
}
.logo span { color: var(--clr-accent); }
.logo svg  { width: 32px; height: 32px; flex-shrink: 0; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}
.nav-list a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color .2s;
}
.nav-list a:hover { color: var(--clr-primary); text-decoration: none; }
.nav-list a.active { color: var(--clr-primary); border-bottom: 2px solid var(--clr-primary); padding-bottom: 2px; }

.nav-cta {
  background: var(--clr-accent);
  color: #fff !important;
  padding: .45rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--clr-accent-d) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  margin: 5px 0;
  transition: .3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem var(--gap);
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* ── 5. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f3460 0%, #1a6fb5 60%, #2196f3 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 7rem) 0;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero .lead { color: rgba(255,255,255,.85); margin: 0 auto 2rem; }
.hero-badges {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--clr-primary-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--clr-accent);
  color: #fff;
}
.btn-accent:hover { background: var(--clr-accent-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-outline:hover { background: var(--clr-primary); color: #fff; }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

/* ── 7. Cards ─────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 160px;
}

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.card-body p  { color: var(--clr-muted); font-size: .9rem; flex: 1; }
.card-footer  { padding: 1rem 1.25rem; border-top: 1px solid var(--clr-border); }

.card-tag {
  display: inline-block;
  background: #dbeafe;
  color: var(--clr-primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── 8. Affiliate module ──────────────────────────────────── */
.affiliate-module {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.affiliate-module .aff-icon { font-size: 2.5rem; flex-shrink: 0; }
.affiliate-module h3 { margin-bottom: .25rem; font-size: 1.1rem; }
.affiliate-module p  { font-size: .9rem; color: var(--clr-muted); margin: 0; }
.affiliate-module .aff-cta { margin-left: auto; flex-shrink: 0; }

.affiliate-disclaimer {
  font-size: .8rem;
  color: var(--clr-muted);
  border-left: 3px solid var(--clr-border);
  padding-left: .75rem;
  margin-top: 1rem;
  font-style: italic;
}

/* ── 9. Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  font-size: .85rem;
  color: var(--clr-muted);
  padding: 1rem 0 .5rem;
}
.breadcrumb li + li::before { content: '›'; margin-right: .3rem; }
.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-primary); }

/* ── 10. Section titles ───────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-header p  { color: var(--clr-muted); max-width: 560px; margin: 0 auto; }

.section-title-line {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
}
.section-title-line::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 2px;
}

/* ── 11. FAQ ──────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--clr-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--clr-text);
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--clr-primary); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding-bottom: 1rem; color: var(--clr-muted); }
.faq-item.open .faq-answer { display: block; }

/* ── 12. Table of contents ────────────────────────────────── */
.toc {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h4 { margin-bottom: .75rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-muted); }
.toc ol  { padding-left: 1.25rem; }
.toc li  { margin-bottom: .35rem; font-size: .9rem; }

/* ── 13. Highlight box ────────────────────────────────────── */
.highlight-box {
  background: #eff6ff;
  border-left: 4px solid var(--clr-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; font-size: .95rem; }

/* ── 14. Stats strip ──────────────────────────────────────── */
.stats-strip {
  background: var(--clr-primary);
  color: #fff;
  padding: 2rem 0;
}
.stats-strip .grid-4 { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; font-family: var(--font-serif); }
.stat-lbl { font-size: .85rem; opacity: .8; }

/* ── 15. Footer ───────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand .logo span { color: var(--clr-accent); }
.footer-brand p { font-size: .9rem; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a  { color: #94a3b8; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── 16. Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted   { color: var(--clr-muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag {
  background: #f1f5f9;
  color: var(--clr-muted);
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
}

/* ── 17. Article / prose ──────────────────────────────────── */
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--clr-text); }

/* ── 18. Sidebar layout ───────────────────────────────────── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-sidebar { grid-template-columns: 1fr; }
}
.sidebar-sticky { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.sidebar-card h4 { margin-bottom: 1rem; font-size: 1rem; }

/* ── 19. Rating stars ─────────────────────────────────────── */
.stars { color: var(--clr-accent); letter-spacing: .1em; }

/* ── 20. Skip link (a11y) ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--clr-primary);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
