:root {
  --bg: #FFF5F7;
  --surface: #FFFFFF;
  --text: #1e1b2e;
  --muted: #64748B;
  --line: rgba(30, 27, 46, 0.08);
  --accent: #F43F5E;
  --accent-dark: #E11D48;
  --accent-light: #FB7185;
  --shadow: 0 20px 50px color-mix(in srgb, var(--accent) 12%, transparent);
  --shadow-sm: 0 10px 28px color-mix(in srgb, var(--accent) 8%, transparent);
  --radius: 18px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ——— En-tête hero ——— */
.site-hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 48%, var(--accent-light) 100%);
  background-size: cover;
  background-position: center;
  padding: 2.5rem 0 0;
  overflow: hidden;
}
.site-hero.has-photo {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
}
.brand { color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; opacity: .95; }
.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.brand-tagline {
  display: block;
  margin-top: .35rem;
  font-size: clamp(.9rem, 2vw, 1.05rem);
  opacity: .92;
  max-width: 42ch;
  font-weight: 500;
}
.hero-aside {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  flex-shrink: 0;
}
.weather-widget {
  margin: 0;
  color: #fff;
}
.weather-widget-frame {
  min-width: 9.5rem;
  padding: .65rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.weather-place {
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .92;
  line-height: 1.2;
}
.weather-dept {
  font-weight: 600;
  opacity: .85;
}
.weather-main {
  display: flex;
  align-items: center;
  gap: .35rem;
  line-height: 1;
}
.weather-icon {
  font-size: 1.45rem;
  line-height: 1;
}
.weather-temp {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.weather-desc {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  opacity: .95;
  line-height: 1.25;
}
.weather-widget.is-error .weather-desc {
  opacity: .75;
  font-weight: 500;
}
.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: .85rem 0 1.1rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.nav-link {
  padding: .5rem .95rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-link:hover, .nav-link.is-active {
  background: rgba(255,255,255,.28);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 10px;
  padding: .5rem .85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-main { padding: 2rem 0 3.5rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: .92rem;
  background: var(--surface);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ——— Bandeau d'intro accueil ——— */
.intro-band {
  margin-bottom: 1.75rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 7%, var(--surface)) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.intro-band h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin: 0 0 .5rem;
  letter-spacing: -0.02em;
}
.intro-band p { margin: 0; color: var(--muted); max-width: 62ch; font-size: 1.02rem; }

.category-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s, background .2s;
}
.chip:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  text-decoration: none;
  transform: translateY(-2px);
}
.chip.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.chip.is-active:hover { transform: none; }
.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}

.post-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, border-color .25s;
}
.post-card-summary {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.post-card:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.card-cover {
  flex: 0 0 min(260px, 36%);
  max-width: 300px;
  display: block;
  align-self: flex-start;
}
.card-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.post-card:hover .card-cover img { transform: scale(1.03); }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: var(--muted);
}
.card-cat { color: var(--accent); font-weight: 700; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); font-size: .94rem; }
.card-more {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  font-size: .92rem;
  color: var(--accent);
  text-decoration: none;
}
.card-more:hover { color: var(--accent-dark); text-decoration: underline; }

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 .35rem;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--muted); margin: 0 0 1.5rem; }

.article-header { margin-bottom: 1.75rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: .6rem 0 0;
  letter-spacing: -0.02em;
}
.article-meta { color: var(--muted); font-size: .92rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.article-cat { color: var(--accent); font-weight: 700; }

.prose {
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.8;
  max-width: 72ch;
}
.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  margin: 1.75rem 0 .75rem;
  letter-spacing: -0.01em;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.photo-block {
  margin: 1.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  max-width: 100%;
}
.photo-block img { max-width: 100%; display: block; border: 0; border-radius: 0; height: auto; }
.photo-block figcaption {
  padding: .8rem 1rem;
  font-size: .9rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.photo-block figcaption:empty { display: none; }

.search-form {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1;
  min-width: 220px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: var(--surface);
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
.archive-list a {
  display: flex;
  justify-content: space-between;
  padding: .95rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, border-color .2s;
}
.archive-list a:hover { border-color: var(--accent); transform: translateX(4px); text-decoration: none; }
.archive-list .count { color: var(--muted); font-weight: 400; }

.archive-legacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.archive-legacy-link { text-decoration: none; }
.archive-legacy-note { color: var(--muted); font-size: .92rem; }

.embed-frame-wrap {
  width: 100%;
  min-height: min(72vh, 900px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.embed-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 900px);
  border: 0;
  background: #fff;
}
.embed-external {
  margin: 1rem 0 0;
  text-align: right;
  font-size: 1.6rem;
  font-weight: 800;
}
.embed-external a { color: var(--accent-dark); }
.embed-external a:hover { color: var(--accent); }

.pager { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1.75rem; }
.pager-link {
  min-width: 2.4rem;
  text-align: center;
  padding: .5rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.pager-link.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-light)); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.empty { color: var(--muted); padding: 2.5rem; text-align: center; }

@media (max-width: 760px) {
  .wrap { width: min(1140px, calc(100% - 1.25rem)); }
  .site-hero { padding-top: 1.5rem; }
  .site-hero.has-photo { min-height: 220px; }
  .brand-title { font-size: 1.5rem; }
  .intro-band { padding: 1.25rem 1.1rem; }
  .post-card-summary { flex-direction: column; }
  .card-cover { flex: none; max-width: none; width: 100%; }
  .card-cover img { height: auto; aspect-ratio: 16 / 10; }
  .search-form input, .search-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .nav-toggle { display: inline-block; min-height: 44px; min-width: 44px; }
  .hero-inner { flex-wrap: wrap; }
  .hero-aside {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .weather-widget { margin-left: auto; }
  .site-nav {
    display: none;
    flex-direction: column;
    border-radius: 14px;
    margin-bottom: .75rem;
    background: rgba(20, 18, 16, .35);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    padding: .65rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-link { text-align: center; }
}
