/* ========================================
   DISCOVER MALTA — BLOG / GUIDE DE MALTE
   Cohérent avec style.css principal
   ======================================== */

:root {
  --sand:    #fdfaf4;
  --ocean:   #0c2620;
  --blue:    #1873a0;
  --sun:     #f4c650;
  --coral:   #e05c3a;
  --white:   #ffffff;
  --text-dark: #1a1a2e;
  --text-mid:  #4a5568;
  --text-light:#718096;
  --border:  #e8e2d9;
  --shadow:  0 4px 24px rgba(0,0,0,.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --r-md:    10px;
  --r-lg:    16px;
  --r-xl:    24px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

/* ── NAVBAR ── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ocean);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}
.blog-nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
}
.blog-nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.blog-nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.blog-nav-links a:hover { color: var(--white); }
.blog-nav-links a.active { color: var(--sun); }
.blog-nav-cta {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 0;
  font-size: .82rem;
  color: var(--text-light);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ── ARTICLE HERO ── */
.article-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%);
}
.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
  color: var(--white);
}
.article-category {
  display: inline-block;
  background: var(--sun);
  color: var(--ocean);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ── LAYOUT ── */
.article-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.article-body { min-width: 0; }
.article-sidebar { position: relative; }

/* ── CONTENU ARTICLE ── */
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ocean);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 3px solid var(--sun);
  padding-top: 20px;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 10px;
}
.article-body p {
  color: var(--text-mid);
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--text-mid);
}
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body a { color: var(--blue); text-decoration: underline; }

/* ── CTA INLINE ── */
.article-cta {
  background: linear-gradient(135deg, var(--ocean) 0%, #1a4a40 100%);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta-text h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.article-cta-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin: 0;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  border-radius: 30px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.article-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

.article-cta-sun {
  background: linear-gradient(135deg, #f4c650 0%, #e8a820 100%);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.article-cta-sun h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 6px;
}
.article-cta-sun p { font-size: .88rem; color: rgba(12,38,32,.7); margin: 0; }
.article-cta-sun-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ocean);
  color: white;
  border-radius: 30px;
  padding: 13px 24px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ── TIP BOX ── */
.tip-box {
  background: #e8f4fd;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .92rem;
  color: var(--text-dark);
}
.tip-box strong { color: var(--blue); }

.warn-box {
  background: #fff8e8;
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .92rem;
}

/* ── TABLE DES MATIÈRES ── */
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.toc-title {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ocean);
  margin-bottom: 14px;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: .92rem; }
.toc a { color: var(--blue); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── SIDEBAR ── */
.sidebar-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sand);
}
.sidebar-cta {
  background: linear-gradient(135deg, var(--ocean), #1a4a40);
  border-radius: var(--r-lg);
  padding: 24px;
  text-align: center;
}
.sidebar-cta p { color: rgba(255,255,255,.7); font-size: .85rem; margin-bottom: 16px; }
.sidebar-cta h4 { color: var(--white); border-bottom-color: rgba(255,255,255,.1); }
.sidebar-cta-btn {
  display: block;
  background: #25D366;
  color: white;
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  text-align: center;
}
.related-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.related-article:last-child { border-bottom: none; padding-bottom: 0; }
.related-icon { font-size: 1.4rem; flex-shrink: 0; }
.related-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.related-cat { font-size: .75rem; color: var(--text-light); }

/* ── FAQ ── */
.faq-section { margin: 48px 0; }
.faq-section h2 { margin-top: 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 300; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: .95rem;
  color: var(--text-mid);
  background: var(--white);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── FLOATING WA ── */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25D366;
  color: white;
  border-radius: 30px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(37,211,102,.4);
  transition: transform .2s;
}
.floating-wa:hover { transform: translateY(-3px); }

/* ── BLOG INDEX ── */
.blog-hero {
  background: linear-gradient(135deg, var(--ocean) 0%, #1a4a40 100%);
  padding: 80px 24px;
  text-align: center;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.blog-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 540px; margin: 0 auto 32px; }

.search-bar {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  background: transparent;
}
.search-bar button {
  background: var(--sun);
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-size: .95rem;
  border-radius: 0 30px 30px 0;
}

.blog-container { max-width: 1160px; margin: 0 auto; padding: 60px 24px; }

.cats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  justify-content: center;
}
.cat-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mid);
  background: var(--white);
  text-decoration: none;
  transition: all .2s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ocean);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.article-card-cat {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--coral);
  margin-bottom: 8px;
}
.article-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.article-card-excerpt { font-size: .85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.article-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--text-light); }

/* Featured article */
.article-card.featured {
  grid-column: span 2;
  flex-direction: row;
}
.article-card.featured .article-card-img { aspect-ratio: auto; flex: 1; }
.article-card.featured .article-card-body { flex: 1; padding: 32px; }
.article-card.featured .article-card-title { font-size: 1.3rem; }

/* Section title */
.section-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--border); }

/* ── FOOTER BLOG ── */
.blog-footer {
  background: var(--ocean);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 40px 24px;
  font-size: .85rem;
}
.blog-footer a { color: var(--sun); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card.featured { grid-column: span 2; flex-direction: column; }
  .article-card.featured .article-card-img { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .article-hero { height: 360px; }
  .article-hero-content { padding: 24px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
  .article-layout { padding: 0 16px 60px; }
  .blog-nav-links { display: none; }
  .article-cta { flex-direction: column; }
}
