/* ── A Happy Tandem — Style sobre voyage ───────────────────── */

:root {
  --primary:   #2c7a4b;
  --accent:    #e8a020;
  --dark:      #1a1a2e;
  --gray:      #6c757d;
  --light:     #f8f9f4;
  --white:     #ffffff;
  --border:    #e0e0e0;
  --font-body: 'Georgia', serif;
  --font-ui:   'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  background: var(--light);
}

/* ── HEADER masqué ── */
header { display: none; }

/* ── MENU SIMPLE sous le slideshow ── */
.simple-nav {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.simple-nav a {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--dark);
  text-decoration: none;
  padding: 16px 32px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.simple-nav a:hover { color: var(--primary); }
.simple-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ── HERO SLIDESHOW ── */
.hero-slideshow {
  position: relative;
  height: 480px;
  overflow: hidden;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow .slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--white);
  z-index: 2;
}
.hero-overlay h1 {
  font-family: var(--font-ui);
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-overlay h1 strong { color: var(--accent); font-weight: 700; }
.hero-overlay p {
  font-size: 1.1rem;
  color: #ddd;
  max-width: 600px;
  margin: 0 auto 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #ccc;
}
.hero-meta span { display: flex; align-items: center; gap: 6px; }

.slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active { background: var(--white); }

@media (max-width: 768px) {
  .hero-slideshow { height: 320px; }
  .hero-overlay h1 { font-size: 1.8rem; }
  .hero-meta { flex-wrap: wrap; gap: 12px; }
}

/* ── LAYOUT PRINCIPAL ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.layout-blog {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── FILTRES PAYS ── */
.country-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.country-filter a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--gray);
  transition: all 0.2s;
}
.country-filter a:hover, .country-filter a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── CARTES ARTICLES ── */
.articles-grid { display: flex; flex-direction: column; gap: 28px; }

.article-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}
.article-card-img {
  background: #ddd;
  overflow: hidden;
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-img .no-img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.article-card-body { padding: 20px 24px; }
.article-card-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.country-badge {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.article-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.4;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 84px; }
.sidebar-block {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sidebar-block h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}
.sidebar-block ul { list-style: none; }
.sidebar-block ul li { margin-bottom: 8px; }
.sidebar-block ul li a {
  text-decoration: none;
  color: var(--dark);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}
.sidebar-block ul li a:hover { color: var(--primary); }
.sidebar-block ul li a span { color: var(--gray); font-size: 0.8rem; }

/* ── PAGE ARTICLE ── */
.article-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.article-header { margin-bottom: 36px; }
.article-header .breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.article-header .breadcrumb a { color: var(--primary); text-decoration: none; }
.article-header h1 {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.article-header .meta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--gray);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.article-content { line-height: 1.9; }
.article-content p { margin-bottom: 1.4em; }
.article-content h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.article-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin: 1.6em 0 0.5em;
  font-style: italic;
}
.article-content h4 {
  font-size: 1rem;
  color: var(--gray);
  margin: 1.2em 0 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5em auto;
  display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.article-nav a {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 45%;
}
.article-nav a:hover { text-decoration: underline; }

/* ── GALERIE ── */
.gallery-header {
  background: var(--dark);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.gallery-header h1 { font-size: 2rem; margin-bottom: 8px; }
.gallery-header p { color: #aaa; font-family: var(--font-ui); }

.country-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.country-tabs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 0;
}
.country-tabs a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.country-tabs a:hover { color: var(--dark); }
.country-tabs a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  padding: 24px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.photo-grid .photo-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  background: #ddd;
}
.photo-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}
.photo-grid .photo-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--font-ui);
  line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  font-family: var(--font-ui);
  user-select: none;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  font-family: var(--font-ui);
}
.pagination a, .pagination span {
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  color: var(--dark);
  background: var(--white);
}
.pagination a:hover { background: var(--light); }
.pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── À PROPOS ── */
.apropos-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.apropos-page h1 { font-size: 1.8rem; margin-bottom: 8px; }
.apropos-section { margin-bottom: 40px; }
.apropos-section h2 {
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: #888;
  text-align: center;
  padding: 24px 20px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  margin-top: 60px;
}
footer a { color: #aaa; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .layout-blog { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .article-card { grid-template-columns: 1fr; }
  .article-card-img { height: 180px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-meta { flex-direction: column; gap: 8px; }
  nav a { padding: 8px 10px; font-size: 0.82rem; }
}
