/* Charte reprise du site principal (Webtool Local.fr) : bleu, orange, gris clair, Poppins, arrondis 20px */
:root {
  --blue: #2ba3dd;
  --blue-dark: #1b86bb;
  --blue-soft: #d4ecf8;
  --orange: #f15b2c;
  --orange-dark: #d94a1d;
  --ink: #212121;
  --muted: #5c5c5c;
  --bg: #f5f5f5;
  --line: #e2e2e2;
  --card: #ffffff;
  --dark: rgb(38 38 38 / .78);
  --radius: 20px;
  --maxw: 1180px;
  --shadow: 0 10px 30px rgb(0 0 0 / .08);
  --ff: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 500 14px/1.2 var(--ff);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.site-header { background: #efefef; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand img { width: 76px; height: 76px; object-fit: contain; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; flex: 1; }
.site-nav a {
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a.is-active { background: var(--blue); color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* Bandeau d'accueil */
.hero {
  padding: 70px 0;
  background:
    linear-gradient(115deg, rgb(20 60 85 / .9), rgb(43 163 221 / .55)),
    radial-gradient(900px 500px at 85% 20%, rgb(241 91 44 / .35), transparent 60%),
    #1d4f6b;
}
.hero-card {
  max-width: 680px;
  padding: 38px 40px;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
}
.hero-card h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.hero-card p { margin: 0 0 22px; }
.accent { color: var(--blue); }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: 8px !important; }

/* Cartes d'articles */
.list-section { padding: 56px 0; }
.related { background: var(--blue-soft); }
.related h2 { font-size: 28px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgb(0 0 0 / .12); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; border-bottom: 5px solid var(--orange); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body time { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-body h3 { font-size: 18px; margin: 6px 0 10px; }
.card-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.card-more { color: var(--orange); font-weight: 600; font-size: 14px; }

.visual-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft), #fff 60%, #fde3d9);
}
.visual-fallback img { width: 34%; max-width: 150px; opacity: .9; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a {
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.pager a[aria-current] { background: var(--blue); color: #fff; }

.empty { text-align: center; padding: 40px 0; }
.empty h1, .empty h2 { font-size: 26px; }

/* Encadré de contact */
.cta-box {
  margin: 40px 0 56px;
  padding: 34px 38px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  border: 1px solid #f7c3b2;
}
.cta-box h2 { font-size: 24px; }
.cta-box p { margin: 0 0 20px; }

/* Article */
.post-header { padding: 48px 0 30px; background: #fff; border-bottom: 1px solid var(--line); }
.post-header h1 { font-size: clamp(28px, 4vw, 40px); max-width: 860px; }
.post-subtitle { font-size: 18px; color: var(--muted); max-width: 820px; margin: 0 0 14px; }
.post-meta { font-size: 13px; color: var(--muted); margin: 0; }
.breadcrumb { font-size: 13px; margin-bottom: 16px; color: var(--muted); }
.breadcrumb a { color: var(--blue-dark); text-decoration: none; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding-top: 40px; }
.post-figure { margin: 0 0 34px; }
.post-img, .post-figure .visual-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--orange);
  border-top-width: 0;
  border-left-width: 0;
}
.post-content { background: #fff; border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.post-content h2 { font-size: 24px; margin-top: 1.6em; }
.post-content h3 { font-size: 19px; margin-top: 1.4em; color: var(--blue-dark); }
.post-content > :first-child { margin-top: 0; }
.post-content p, .post-content li { font-size: 16px; }
.post-content strong { color: var(--ink); }
.post-content a { color: var(--orange); }
.post-content blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: 0 12px 12px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 14px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-content th { background: var(--blue-soft); }
.post-content img { border-radius: 14px; margin: 1em 0; }

.post-aside { position: relative; }
.aside-card {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.aside-card img { margin: 0 auto; }
.aside-card p { margin: 0 0 6px; font-size: 14px; }

/* Pied de page */
.site-footer { background: #262626; color: #ddd; padding: 46px 0 20px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-grid img { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #3a3a3a; font-size: 13px; }

/* Bandeau en iframe : fond transparent, cartes en ligne qui défilent */
body.embed { background: transparent; padding: 4px 4px 0; overflow-y: hidden; }
.embed .card-media { aspect-ratio: 2 / 1; }
.embed .card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.embed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 6px 14px; }
.embed-head h2 { font-size: 24px; margin: 0; }
.embed-head a { color: var(--orange); font-weight: 600; text-decoration: none; white-space: nowrap; }
.embed-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
}
.embed-track .card { scroll-snap-align: start; }
.embed-track .card-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.embed-empty { text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; min-height: 72px; gap: 12px; }
  .brand img { width: 58px; height: 58px; }
  .header-call { margin-left: auto; padding: 9px 16px; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; order: 3; }
  .nav-burger span { width: 24px; height: 2px; background: var(--ink); }
  .site-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .hero { padding: 40px 0; }
  .hero-card { padding: 28px 24px; }
  .post-content { padding: 24px 20px; }
  .cta-box { padding: 26px 22px; }
  .embed-track { grid-auto-columns: 82%; }
  .embed-head h2 { font-size: 19px; }
  .embed .card-body { padding: 14px 16px 18px; }
}
