:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #2b2622;
  --muted: #6f655c;
  --accent: #b5543c;
  --accent-soft: #f3e3db;
  --line: #e7ded3;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }

/* Grande photo d'accueil */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: #3a332d center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.62) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.12; margin: 0 0 18px; max-width: 16ch; }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 40ch; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 32px; }
.status { color: var(--muted); }

/* Cartes d'articles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60,40,20,.1); }
.card-img { aspect-ratio: 4 / 3; background: var(--accent-soft); object-fit: cover; width: 100%; }
.card-noimg { aspect-ratio: 4 / 3; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--accent); font-size: 1.3rem; padding: 20px; text-align: center; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .96rem; }
.meta { font-size: .85rem; color: var(--muted); }

/* Filtres */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 16px; font: inherit; font-size: .95rem; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Astuces */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.tips li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px; align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about h2, .about h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 14px; }
.band { background: var(--accent-soft); }

/* Article */
.post-cover { width: 100%; max-height: 62vh; object-fit: cover; }
.post-head { padding: 40px 0 10px; }
.post-head h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 10px 0 12px; }
.post-body { padding-bottom: 40px; }
.post-body h2 { font-family: var(--serif); font-size: 1.6rem; margin: 36px 0 10px; }
.post-body img { border-radius: 10px; margin: 44px auto; max-height: 80vh; width: auto; }
.post-body p { margin: 0 0 1.3em; }
.post-body figure, .post-body figure + p, .post-body img + p { margin-top: 44px; }
.post-body figure { margin: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.back { display: inline-block; margin: 24px 0 0; text-decoration: none; font-weight: 600; }

/* Espacement automatique des articles (plus besoin de lignes vides) */
.post-body { line-height: 1.8; }
.post-body p:empty { display: none; }
.post-body p { margin: 0 0 1.8em !important; }
.post-body h2 { margin: 96px 0 24px; }
.post-body > h2:first-child { margin-top: 32px; }
.post-body figure { margin-top: 64px !important; margin-bottom: 80px !important; }
.post-body img { margin-top: 64px; margin-bottom: 64px; }
.post-body figure img { margin: 0 !important; }
.post-body ul, .post-body ol { margin: 0 0 2em; }
.post-body li { margin-bottom: .9em; }
@media (max-width: 720px) {
  .post-body h2 { margin-top: 72px; }
  .post-body figure { margin-top: 48px !important; margin-bottom: 60px !important; }
}

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: .92rem; background: var(--surface); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Mosaïque de photos dans les articles */
.post-body figure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 44px 0; }
.post-body figure img { margin: 0; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; max-height: none; }
@media (max-width: 520px) { .post-body figure { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { max-height: 420px; }
  .hero { min-height: 72vh; }
  .hero .wrap { padding-bottom: 44px; }
  .nav { gap: 16px; }
  .post-cover { max-height: 40vh; }
}
/* Sous-titre d'article (titre écrit « Titre | Sous-titre ») */
.post-subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.35; margin: -4px 0 16px; opacity: .8; }
.card-sub { font-style: italic; margin: -4px 0 8px; opacity: .8; }

/* Mosaïques de 1 ou 2 photos : pas de trou dans la grille */
.post-body figure:has(> img:only-child), .post-body figure:has(> a:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
.post-body figure:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
/* Mosaïques de 4 photos : 2 x 2 */
.post-body figure:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
/* Mosaïques de 5 photos : 3 en haut, 2 centrées en bas */
.post-body figure:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
.post-body figure:has(> :nth-child(5):last-child) > * { grid-column: span 2; }
.post-body figure:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: 2 / span 2; }
.post-body figure:has(> :nth-child(5):last-child) > :nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 520px) { .post-body figure:has(> :nth-child(5):last-child) > :nth-child(4) { grid-column: 1 / span 3; } .post-body figure:has(> :nth-child(5):last-child) > :nth-child(5) { grid-column: 4 / span 3; } .post-body figure:has(> :nth-child(5):last-child) > :nth-child(-n+3) { grid-column: span 2; } }

/* Lien « Préparer mon voyage » mis en valeur dans le menu */
.nav { flex-wrap: wrap; align-items: center; row-gap: 8px; }
.nav a.nav-cta { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 6px 14px; border: 2px solid var(--accent); border-radius: 999px; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
