/* ================================================================
   LES CHALETS DE MURIEL — STYLES BLOG
   Pages de contenu autonomes (texte sélectionnable, SEO-friendly)
   ================================================================ */

:root {
  --blue-50:  #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-200: #bae6fd;
  --blue-400: #38bdf8;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-900: #1e40af;
  --navy:     #0f172a;
  --text-dark:#0f172a;
  --text-soft:#475569;
  --text-muted:#94a3b8;
  --grad-text: linear-gradient(135deg, #0ea5e9 0%, #0369a1 50%, #1e40af 100%);
  --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #0369a1 60%, #1e40af 100%);
  --shadow-sm: 0 2px 8px rgba(3,105,161,.1);
  --shadow-md: 0 8px 30px rgba(3,105,161,.15);
  --shadow-lg: 0 20px 60px rgba(3,105,161,.18);
  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --max-w: 1100px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Le contenu du blog DOIT rester sélectionnable */
body, body * { user-select: text; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }
ul, ol { padding-left: 1.3em; }

/* ---------------- NAV ---------------- */
.blog-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
}
.blog-nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1.25rem;
}
.blog-logo { display: flex; align-items: center; gap: .6rem; }
.blog-logo img { width: 46px; height: 46px; }
.blog-logo span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.blog-logo span em { color: var(--blue-600); font-style: italic; }
.blog-nav-links { display: flex; gap: 1.4rem; align-items: center; list-style: none; padding: 0; }
.blog-nav-links a { font-weight: 500; font-size: .95rem; color: var(--text-dark); }
.blog-nav-links a:hover { color: var(--blue-600); }
.blog-nav-cta {
  background: var(--grad-primary); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 720px){
  .blog-nav-links { gap: 1.1rem; }
}

/* ---------------- HERO ARTICLE ---------------- */
.article-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  color: #fff; padding: 2.5rem 1.25rem;
  background-size: cover; background-position: center;
}
.article-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.15) 0%, rgba(15,23,42,.82) 100%);
}
.article-hero-inner { position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto; width: 100%; }
.breadcrumb { font-size: .85rem; opacity: .9; margin-bottom: .8rem; }
.breadcrumb a { color: #e0f2fe; }
.article-badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .85rem; border-radius: 999px; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.12; max-width: 900px;
}
.article-meta { margin-top: 1rem; font-size: .9rem; opacity: .92; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------------- ARTICLE BODY ---------------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.article-lead { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 2rem; }
.article-body h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--navy); margin: 2.4rem 0 1rem; line-height: 1.2;
}
.article-body h3 { font-size: 1.25rem; color: var(--blue-700); margin: 1.8rem 0 .6rem; }
.article-body p { margin-bottom: 1.1rem; color: #334155; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .5rem; color: #334155; }
.article-body strong { color: var(--navy); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body figure { margin: 1.6rem 0; }
.article-body figure img { border-radius: var(--r-md); box-shadow: var(--shadow-md); width: 100%; }
.article-body figcaption { font-size: .82rem; color: var(--text-muted); text-align: center; margin-top: .5rem; }

.callout {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--r-sm); padding: 1.1rem 1.3rem; margin: 1.8rem 0;
  font-size: .98rem;
}
.callout strong { color: var(--blue-700); }

.tldr {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--r-md);
  padding: 1.3rem 1.5rem; margin-bottom: 2.2rem; box-shadow: var(--shadow-sm);
}
.tldr h2 { font-family: 'Inter', sans-serif; font-size: 1rem !important; text-transform: uppercase;
  letter-spacing: .05em; color: var(--blue-700); margin: 0 0 .7rem !important; }
.tldr ul { margin: 0; }
.tldr li { margin-bottom: .35rem; }

/* Encart source / fiabilité */
.sources { font-size: .85rem; color: var(--text-muted); margin-top: 2.5rem;
  border-top: 1px solid var(--blue-100); padding-top: 1.2rem; }
.sources h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: .5rem; }
.sources ul { padding-left: 1.1em; }
.sources a { word-break: break-word; }

/* CTA réservation */
.article-cta {
  margin: 3rem auto 0; max-width: 760px;
  background: var(--grad-primary); color: #fff; border-radius: var(--r-lg);
  padding: 2.2rem 1.6rem; text-align: center; box-shadow: var(--shadow-lg);
}
.article-cta h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.6rem; margin-bottom: .6rem; }
.article-cta p { opacity: .92; margin-bottom: 1.4rem; }
.article-cta .cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--blue-700); padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff !important; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; border: 1px solid rgba(255,255,255,.4); }

/* Articles liés */
.related { max-width: var(--max-w); margin: 3.5rem auto 0; padding: 0 1.25rem; }
.related h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }

/* ---------------- BLOG INDEX ---------------- */
.blog-head { text-align: center; max-width: 720px; margin: 0 auto; padding: 3.5rem 1.25rem 1rem; }
.blog-head .badge { display:inline-block; background: var(--blue-50); color: var(--blue-700);
  padding: .35rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1rem; letter-spacing:.03em; }
.blog-head h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3rem); color: var(--navy); line-height: 1.1; }
.blog-head h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.blog-head p { color: var(--text-soft); font-size: 1.1rem; margin-top: 1rem; }

.posts-grid { max-width: var(--max-w); margin: 2.5rem auto 0; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-500); font-weight: 600; margin-bottom: .5rem; }
.post-card h2,
.post-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: .6rem; line-height: 1.25; }
.post-card p { font-size: .95rem; color: var(--text-soft); flex: 1; }
.post-card .read { margin-top: 1rem; font-weight: 600; color: var(--blue-600); font-size: .92rem; }

/* ---------------- FOOTER ---------------- */
.blog-footer { margin-top: 4rem; background: var(--navy); color: #cbd5e1; padding: 2.5rem 1.25rem 1.5rem; }
.blog-footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.blog-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.blog-footer a { color: #cbd5e1; }
.blog-footer a:hover { color: var(--blue-400); }
.blog-footer ul { list-style: none; padding: 0; }
.blog-footer li { margin-bottom: .4rem; font-size: .92rem; }
.blog-footer .brand strong { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.blog-footer-bottom { max-width: var(--max-w); margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; font-size: .82rem; color: var(--text-muted); }
.blog-footer-bottom a { color: var(--blue-400); }
