/* ═══════════════════════════════════════
   CHARTE GRAPHIQUE — Saint-Avit-Saint-Nazaire
   ═══════════════════════════════════════ */
:root {
  --bleu:       #2580c0;
  --bleu-dark:  #1b5f96;
  --bleu-light: #ddeaf7;
  --vert:       #5a9e7a;
  --vert-dark:  #2e6b4a;
  --vert-light: #e8f3ec;
  --rouge:      #c0392b;
  --rouge-light:#f8ece8;
  --beige:      #f0ebe0;
  --beige-dark: #c8b89a;
  --text:       #1e2a35;
  --muted:      #697786;
  --line:       #e2e6ea;
  --white:      #ffffff;
  --bg:         #f0ebe0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --boxed: 1180px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--bleu-dark); color: #fff; font-size: .85rem; z-index: 200; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--boxed); margin: auto; background: var(--white); box-shadow: 0 0 80px rgba(27,95,150,.1); }

/* ── TOPBAR ── */
.topbar { background: var(--bleu-dark); color: rgba(255,255,255,.78); font-size: .8rem; display: flex; justify-content: space-between; align-items: center; padding: 6px 36px; gap: 16px; }
.topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-right a { transition: color .2s; font-weight: 500; }
.topbar-right a:hover { color: var(--beige); }

/* ── HEADER ── */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(27,95,150,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 36px; gap: 16px; }

.logo { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-shrink: 0; }
.logo img { width: 150px; height: auto; }
.logo-text { border-left: 2px solid var(--line); padding-left: 14px; }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--bleu-dark); line-height: 1.2; display: block; }
.logo-sub { font-size: .75rem; color: var(--muted); display: block; margin-top: 2px; font-style: italic; }

/* ── NAV ── */
.nav { display: flex; align-items: stretch; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-btn { display: inline-flex; align-items: center; gap: 5px; padding: 20px 11px; font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--text); background: none; border: none; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.nav-btn.active                        { color: var(--bleu); border-bottom-color: var(--bleu); background: var(--bleu-light); }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--bleu-dark); border-bottom-color: var(--bleu-dark); background: #a8c8e4; }
.nav-btn .chev { font-size: .6rem; opacity: .6; transition: transform .25s; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link-plain { display: inline-flex; align-items: center; padding: 20px 11px; font-family: var(--sans); font-size: .88rem; font-weight: 500; color: var(--text); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.nav-link-plain.active { color: var(--bleu); border-bottom-color: var(--bleu); }
.nav-link-plain:hover          { color: var(--bleu-dark); border-bottom-color: var(--bleu-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bleu-light); border: none; cursor: pointer; color: var(--bleu-dark); transition: background .2s; }
.icon-btn:hover { background: #ccdff0; }
.burger { display: none; }

/* ── MEGA MENUS ── */
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: clamp(520px, 55vw, 760px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--bleu); box-shadow: 0 24px 60px rgba(27,95,150,.15); display: none; overflow: hidden; }
.mega.open { display: grid; animation: megaIn .18s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.mega-2col { grid-template-columns: 2fr 3fr; }
.mega-3col { grid-template-columns: 1fr 1fr 1fr; width: min(820px, 80vw); }
.mega-panel { padding: 28px 24px; background: linear-gradient(160deg, var(--bleu-dark) 0%, var(--bleu) 100%); color: white; }
.mega-panel .mp-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--beige); margin-bottom: 14px; display: block; }
.mega-panel h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.mega-panel p { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.55; }
.mega-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; opacity: .9; }
.mega-icon svg { display: block; }
.mp-cta { display: inline-block; margin-top: 18px; padding: 8px 16px; background: var(--beige); color: var(--bleu-dark); font-size: .82rem; font-weight: 700; border-radius: var(--r); transition: filter .2s; }
.mp-cta:hover { filter: brightness(1.05); }
.mega-links { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.mega-links-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.mega:has(.mega-links-2col) { width: clamp(620px, 68vw, 920px); grid-template-columns: 1fr 2fr; }
.mega-link { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); transition: background .15s; }
.mega-link:hover { background: var(--bleu-light); }
.ml-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--beige); }
.ml-icon svg { display: block; }
.mega-link:hover .ml-icon { background: var(--bleu-light); }
.ml-text strong { display: block; font-size: .93rem; font-weight: 600; color: var(--bleu-dark); }
.ml-text span { display: block; font-size: .82rem; color: var(--muted); margin-top: 1px; }
.mega-full { padding: 20px 24px; }
.mega-full-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.mega-tile { display: block; padding: 14px 16px; border-radius: var(--r); transition: background .15s; }
.mega-tile:hover { background: var(--vert-light); }
.mt-icon { margin-bottom: 8px; display: block; }
.mt-icon svg { display: block; }
.mega-tile strong { display: block; font-size: .9rem; font-weight: 600; color: var(--vert-dark); }
.mega-tile span { font-size: .8rem; color: var(--muted); margin-top: 2px; display: block; }

/* ── BANDEAU NOTIFICATIONS ── */
.alert-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  background: #fffbe8;
  border-bottom: 1px solid #f0e0a0;
  font-size: .88rem;
  height: 46px;
  overflow: hidden;
  position: relative;
}
/* Variante info (bleu) */
.alert-strip.alert-info {
  background: #e8f0f8;
  border-bottom-color: #b8cfe8;
}
.alert-strip.alert-info .alert-slide span,
.alert-strip.alert-info .alert-slide strong { color: #1b5f96; }
.alert-strip.alert-info .alert-nav button { background: rgba(27,95,150,.1); border-color: rgba(27,95,150,.2); color: #1b5f96; }
.alert-strip.alert-info .alert-nav button:hover { background: rgba(27,95,150,.2); }
.alert-strip.alert-info .alert-icon svg { stroke: #2580c0; }
/* Variante warning (jaune — défaut) */
.alert-strip.alert-warning {
  background: #fffbe8;
  border-bottom-color: #f0e0a0;
}
.alert-strip.alert-warning .alert-slide span,
.alert-strip.alert-warning .alert-slide strong { color: #7a5c00; }
.alert-strip.alert-warning .alert-nav button { background: rgba(120,90,0,.1); border-color: rgba(120,90,0,.2); color: #7a5c00; }
.alert-strip.alert-warning .alert-nav button:hover { background: rgba(120,90,0,.2); }
/* Variante urgent (rouge) */
.alert-strip.alert-urgent {
  background: #fdf0ef;
  border-bottom-color: #e8b4af;
}
.alert-strip.alert-urgent .alert-slide span,
.alert-strip.alert-urgent .alert-slide strong { color: #9b2d21; }
.alert-strip.alert-urgent .alert-nav button { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.2); color: #9b2d21; }
.alert-strip.alert-urgent .alert-nav button:hover { background: rgba(192,57,43,.2); }
.alert-strip.alert-urgent .alert-icon svg { stroke: #c0392b; }
.alert-icon { flex-shrink: 0; display: flex; align-items: center; }
.alert-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.alert-slides {
  position: relative;
  height: 100%;
}
.alert-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.alert-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.alert-slide strong { color: #7a5c00; font-weight: 600; white-space: nowrap; }
.alert-slide span { color: #7a5c00; }
.alert-slide a { color: var(--bleu); font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.alert-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 8px;
}
.alert-nav button {
  width: 22px; height: 22px;
  background: rgba(120,90,0,.1);
  border: 1px solid rgba(120,90,0,.2);
  border-radius: 3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  padding: 0;
  color: #7a5c00;
}
.alert-nav button:hover { background: rgba(120,90,0,.2); }
.alert-counter {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--muted);
  min-width: 32px;
  text-align: center;
}

/* ── HERO SLIDESHOW ── */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
}
.hero-slide.is-active { opacity: 1; }

/* Slide fallback colors (avant vraies photos) */
.hero-slide:nth-child(1) { background-color: #4a7a9b; background-image: linear-gradient(160deg,#c8dbe8,#a8cba0,#5a9e7a); }
.hero-slide:nth-child(2) { background-color: #3d6b55; background-image: linear-gradient(160deg,#a8cba0,#5a9e7a,#2e6b4a); }
.hero-slide:nth-child(3) { background-color: #2580c0; background-image: linear-gradient(160deg,#ddeaf7,#a8c4d8,#2580c0); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 14px 20px 16px;
  color: white;
  max-width: 700px;
  margin: 52px 0 0 52px;
  background: rgba(80, 80, 80, .30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
}
.hero h1 { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.08; margin-bottom: 8px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--beige); }
.hero-desc { font-size: .85rem; color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 14px; line-height: 1.5; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slideshow controls */
.hero-controls {
  position: absolute;
  bottom: 24px;
  right: 36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dots { display: flex; gap: 7px; }
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.hero-dot.is-active { background: white; transform: scale(1.3); }
.hero-arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }

/* ── QUICK BAR ── */
.quick-bar { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.quick-item { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-right: 1px solid var(--line); background: var(--white); transition: background .2s; position: relative; }
.quick-item:last-child { border-right: none; }
.quick-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--bleu); transform: scaleX(0); transition: transform .25s ease; transform-origin: left; }
.quick-item:hover { background: var(--bleu-light); }
.quick-item:hover::after { transform: scaleX(1); }
.qi-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.qi-icon svg { display: block; }
.qi-1 .qi-icon { background: var(--bleu-light); }
.qi-2 .qi-icon { background: var(--vert-light); }
.qi-3 .qi-icon { background: var(--rouge-light); }
.qi-4 .qi-icon { background: var(--beige); }
.qi-text small { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.qi-text strong { display: block; font-size: .95rem; font-weight: 600; color: var(--bleu-dark); }
.qi-text span { display: block; font-size: .8rem; color: var(--muted); }

/* ── BOUTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 22px; font-family: var(--sans); font-weight: 600; font-size: .92rem; border: 1.5px solid transparent; border-radius: var(--r); cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-sand   { background: var(--beige); color: var(--bleu-dark); border-color: var(--beige-dark); }
.btn-sand:hover   { background: #e8dfc8; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.btn-white  { background: white; color: var(--bleu-dark); }
.btn-white:hover  { background: var(--bleu-light); }
.btn-ghost  { background: rgba(255,255,255,.12); color: white !important; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover  { background: rgba(255,255,255,.22); }
.btn-bleu   { background: var(--bleu); color: white !important; }
.btn-bleu:hover   { background: var(--bleu-dark); transform: translateY(-1px); }
.btn-vert   { background: var(--vert); color: white !important; }
.btn-vert:hover   { background: var(--vert-dark); }
.btn-outline-bleu { background: transparent; color: var(--bleu); border-color: var(--bleu); }
.btn-outline-bleu:hover { background: var(--bleu-light); }
.btn-sm  { padding: 7px 15px; font-size: .84rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }

/* ── SECTIONS ── */
.section { padding: 56px 52px; border-bottom: 1px solid var(--line); }
.section-alt  { background: var(--bg); }
.section-bleu { background: linear-gradient(135deg, var(--bleu-dark) 0%, var(--bleu) 100%); color: white; }
.section-vert { background: linear-gradient(135deg, var(--vert-dark) 0%, var(--vert) 100%); color: white; }
.section-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.eyelet { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #9ecce8; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eyelet::before { content: ''; width: 24px; height: 2px; background: #9ecce8; }
.section-bleu .eyelet, .section-vert .eyelet { color: var(--beige); }
.section-bleu .eyelet::before, .section-vert .eyelet::before { background: var(--beige); }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--bleu-dark); line-height: 1.15; letter-spacing: -.01em; }
.section-bleu h2, .section-vert h2 { color: white; }
.section-hd p { color: var(--muted); max-width: 560px; margin-top: 8px; font-size: .95rem; }
.section-bleu .section-hd p { color: rgba(255,255,255,.75); }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.svc-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; border-top: 3px solid transparent; transition: all .25s; cursor: pointer; }
.svc-card:hover { border-top-color: var(--bleu); box-shadow: 0 8px 28px rgba(42,95,143,.12); transform: translateY(-4px); }
.svc-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.svc-icon svg { display: block; }
.si-bleu  { background: var(--bleu-light); }
.si-vert  { background: var(--vert-light); }
.si-rouge { background: var(--rouge-light); }
.si-beige { background: var(--beige); }
.svc-card strong { font-size: 1.02rem; font-weight: 600; color: var(--bleu-dark); display: block; }
.svc-card span { font-size: .87rem; color: var(--muted); line-height: 1.5; }
.svc-arrow { margin-top: auto; color: var(--bleu); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ── ACTUALITÉS + AGENDA ── */
.actu-layout { display: grid; grid-template-columns: 1fr .75fr; gap: 28px; align-items: start; }
.actu-list { display: grid; gap: 18px; }
.news-card { display: grid; grid-template-columns: 180px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.news-thumb { min-height: 140px; background: linear-gradient(135deg, var(--bleu-light), var(--vert-light)); position: relative; overflow: hidden; }
.news-thumb .nc-cat { position: absolute; bottom: 12px; left: 12px; background: var(--bleu-dark); color: white; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; }
.news-body { padding: 20px; display: flex; flex-direction: column; }
.news-date { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.news-body h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--bleu-dark); margin-bottom: 8px; line-height: 1.3; }
.news-body p { font-size: .88rem; color: var(--muted); flex: 1; }
.news-link { font-size: .85rem; font-weight: 600; color: var(--bleu); margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }

.agenda-panel { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.ap-head { background: var(--bleu-dark); color: white; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.ap-head h3 { font-family: var(--serif); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.ap-head a { font-size: .78rem; color: var(--beige); font-weight: 600; }
.evt { display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid var(--line); transition: background .15s; }
.evt:last-child { border-bottom: none; }
.evt:hover { background: var(--bleu-light); }
.evt-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; background: var(--bleu-light); border-right: 1px solid var(--line); text-align: center; }
.evt-date .ed-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--bleu-dark); line-height: 1; }
.evt-date .ed-mois { font-size: .62rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--bleu); margin-top: 2px; }
.evt-info { padding: 14px 16px; }
.evt-info h4 { font-size: .93rem; font-weight: 600; color: var(--bleu-dark); margin-bottom: 3px; }
.evt-info p { font-size: .82rem; color: var(--muted); }
.ap-footer { padding: 14px 20px; }

/* ── MAIRE ── */
.maire-card { display: grid; grid-template-columns: 200px 1fr; gap: 36px; padding: 36px; background: var(--beige); border: 1px solid var(--beige-dark); border-left: 4px solid var(--bleu); }
.maire-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.maire-img { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg,#d0dde8,#b8c8d8); border: 1px solid #bbb; display: grid; place-items: center; font-size: .85rem; color: var(--muted); text-align: center; }
.maire-photo figcaption { font-size: .8rem; color: var(--muted); font-style: italic; text-align: center; }
.mayor-content blockquote { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--bleu-dark); border-left: 3px solid var(--vert); padding-left: 18px; margin-bottom: 18px; line-height: 1.65; }
.mayor-content h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--bleu-dark); margin-bottom: 10px; }
.mayor-content p { font-size: .93rem; color: #555; margin-bottom: 10px; line-height: 1.65; }

/* ── VIE LOCALE ── */
.local-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.local-card { display: block; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: all .25s; }
.local-card:hover { border-color: var(--vert); box-shadow: 0 6px 22px rgba(90,158,122,.15); transform: translateY(-4px); }
.lc-icon { margin-bottom: 12px; display: block; }
.lc-icon svg { display: block; }
.local-card h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--bleu-dark); margin-bottom: 6px; }
.local-card p { font-size: .85rem; color: var(--muted); }

/* ── PUBLICATIONS ── */
.pub-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 8px; }
.pub-card { display: block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 20px; transition: background .2s; color: white; }
.pub-card:hover { background: rgba(255,255,255,.18); }
.pub-cover { height: 118px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; border-radius: 4px; position: relative; }
.pub-cover svg { display: block; opacity: .7; }
.pub-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-cover .pub-badge { position: absolute; top: 8px; left: 8px; margin-bottom: 0; z-index: 1; }
.pub-badge { display: inline-block; background: var(--beige); color: var(--bleu-dark); font-size: .68rem; font-weight: 700; padding: 2px 8px; letter-spacing: .07em; margin-bottom: 8px; }
.pub-card strong { display: block; font-size: .93rem; margin-bottom: 4px; }
.pub-card small { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ── NEWSLETTER ── */
.nl-bar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 52px; background: var(--vert-light); border-bottom: 1px solid #c0ddc8; flex-wrap: wrap; }
.nl-text strong { font-family: var(--serif); font-size: 1.12rem; color: var(--vert-dark); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nl-text strong svg { display: block; }
.nl-text p { font-size: .88rem; color: var(--muted); }
.nl-form { display: flex; flex-shrink: 0; }
.nl-input { padding: 11px 16px; border: 1.5px solid #b0cdb8; border-right: none; font-family: var(--sans); font-size: .9rem; width: 270px; outline: none; border-radius: var(--r) 0 0 var(--r); color: var(--text); background: white; transition: border-color .2s; }
.nl-input:focus { border-color: var(--vert); }
.nl-btn { padding: 11px 20px; background: var(--vert-dark); color: white; border: 1.5px solid var(--vert-dark); font-family: var(--sans); font-weight: 600; font-size: .9rem; cursor: pointer; border-radius: 0 var(--r) var(--r) 0; transition: background .2s; }
.nl-btn:hover { background: #1e5030; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.contact-card { padding: 32px; background: var(--white); border: 1px solid var(--line); }
.contact-card h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--bleu-dark); margin-bottom: 20px; }
.cinfo { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cinfo:last-of-type { border-bottom: none; }
.ci-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bleu-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { display: block; }
.ci-label { font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.ci-val { font-size: .93rem; color: var(--text); }
.ci-val a { color: var(--bleu); }
.map-box { min-height: 300px; border: 1px solid var(--line); background: linear-gradient(135deg,rgba(42,95,143,.07),rgba(90,158,122,.07)), repeating-linear-gradient(0deg,transparent,transparent 30px,rgba(42,95,143,.04) 30px,rgba(42,95,143,.04) 31px), repeating-linear-gradient(90deg,transparent,transparent 30px,rgba(42,95,143,.04) 30px,rgba(42,95,143,.04) 31px), var(--white); display: grid; place-items: center; text-align: center; color: var(--muted); gap: 8px; }

/* ── FOOTER ── */
footer { background: var(--bleu-dark); color: rgba(255,255,255,.72); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; column-gap: 36px; row-gap: 24px; padding: 48px 52px 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fb-logo img { width: 150px; height: auto; background: white; padding: 2px; border-radius: 4px; }
.fb-name { font-family: var(--serif); font-size: 1rem; color: white; font-weight: 700; }
.fb-name small { display: block; font-family: var(--sans); font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.6); font-style: italic; margin-top: 2px; }
.footer-about p { font-size: .87rem; line-height: 1.65; margin-bottom: 18px; }
.footer-contacts-col { grid-column: 1; align-self: start; }
.footer-contacts a { display: flex; align-items: center; gap: 8px; font-size: .8rem; margin-bottom: 6px; transition: color .2s; }
.footer-contacts a svg { display: block; flex-shrink: 0; }
.footer-contacts a:hover { color: white; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: white; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-col h4 a { color: inherit; text-decoration: none; }
.footer-col h4 a:hover { opacity: .75; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 4px; line-height: 1.3; }
.footer-col a { font-size: .8rem; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 52px; font-size: .8rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .topbar, .nav { display: none; }
  .burger { display: flex; }
  .hero { height: 420px; }
  .hero-content { padding: 14px 20px 16px; margin: 32px 0 0 32px; }
  .section { padding: 44px 32px; }
  .quick-bar { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .actu-layout { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 36px 32px; }
  .footer-bottom { padding: 16px 32px; }
  .nl-bar { padding: 24px 32px; }
  .maire-card { grid-template-columns: 1fr; }
  .alert-strip { padding: 0 20px; }
}
@media (max-width: 640px) {
  /* Header */
  .header-inner { padding: 0 16px; }
  .logo img { width: 120px; height: auto; }
  .logo-text { display: none; }

  /* Bandeau alerte : hauteur auto, texte wrappable */
  .alert-strip {
    height: auto;
    min-height: 46px;
    padding: 10px 12px;
  }
  /* Sur mobile, sortir du positionnement absolu pour que la hauteur soit naturelle */
  .alert-track { height: auto; overflow: visible; }
  .alert-slides { height: auto; }
  .alert-slide {
    position: static;
    inset: auto;
    flex-wrap: wrap;
    gap: 2px 6px;
    padding: 2px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .5s ease;
  }
  .alert-slide.is-active {
    opacity: 1;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
  }
  .alert-slide strong,
  .alert-slide span,
  .alert-slide a { font-size: .82rem; }
  .alert-slide a { margin-left: 0; }
  .alert-counter { display: none; }

  /* Hero */
  .hero { height: auto; min-height: 420px; align-items: flex-start; }
  .hero-content { padding: 12px 16px 14px; margin: 16px 0 0 16px; border-radius: 8px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.15; }
  .hero-desc { font-size: .95rem; margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; gap: 8px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 32px 20px; }
  .quick-bar, .local-grid, .pub-grid, .services-grid { grid-template-columns: 1fr; }
  .section-hd { flex-direction: column; align-items: flex-start; }
  .news-card { grid-template-columns: 1fr; }
  .news-thumb { min-height: 120px; }

  /* Newsletter */
  .nl-bar { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .nl-input { width: 100%; flex: 1; }
  .nl-form { width: 100%; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .footer-top > * { grid-column: 1 !important; grid-column-start: auto !important; }
  .footer-col { order: 2; }
  .footer-contacts-col { grid-column: auto !important; order: 1; }
  .footer-about { order: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 16px 20px; gap: 12px; }
  .footer-legal { gap: 12px; }
}

/* ── MENU MOBILE (nav-open) ── */
@media (max-width: 1040px) {
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 200;
    overflow-y: auto;
    padding: 80px 0 40px;
    animation: slideIn .25s ease;
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Bouton fermeture */
  .nav-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bleu-light);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--bleu-dark);
  }

  /* Items de la nav mobile */
  .nav.nav-open .nav-item { width: 100%; flex-direction: column; align-items: stretch; }
  .nav.nav-open .nav-btn,
  .nav.nav-open .nav-link-plain {
    width: 100%;
    padding: 16px 28px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    justify-content: space-between;
  }
  .nav.nav-open .nav-btn:hover,
  .nav.nav-open .nav-btn[aria-expanded="true"],
  .nav.nav-open .nav-btn.active,
  .nav.nav-open .nav-link-plain:hover {
    border-left-color: var(--bleu);
    background: var(--bleu-light);
  }

  /* Méga-menus en mobile : liste déroulante inline */
  .nav.nav-open .mega {
    position: static;
    transform: none;
    width: 100%;
    border: none;
    border-top: none;
    box-shadow: none;
    display: none;
    grid-template-columns: 1fr;
    background: var(--bg);
    animation: none;
  }
  .nav.nav-open .mega.open { display: grid; }
  .nav.nav-open .mega-panel { display: none; }
  .nav.nav-open .mega-links { padding: 4px 0; }
  .nav.nav-open .mega-links-2col { grid-template-columns: 1fr; }
  .nav.nav-open .mega-link { padding: 12px 40px; border-bottom: 1px solid var(--line); }
  .nav.nav-open .mega-full { padding: 8px 0; }
  .nav.nav-open .mega-full-grid { grid-template-columns: 1fr; }
  .nav.nav-open .mega-tile { padding: 12px 40px; border-bottom: 1px solid var(--line); }
}

/* ═══════════════════════════════════════
   PAGES INTÉRIEURES
   ═══════════════════════════════════════ */

/* ── Fil d'Ariane ── */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 10px 52px;
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--bleu); transition: color .2s; }
.breadcrumb a:hover { color: var(--bleu-dark); text-decoration: underline; }
.breadcrumb-sep { color: var(--muted); font-size: .75rem; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ── Hero page intérieure ── */
.page-hero {
  background: linear-gradient(135deg, var(--bleu-dark) 0%, var(--bleu) 100%);
  color: white;
  padding: 48px 52px;
  border-bottom: 4px solid var(--beige-dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 80px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.page-hero--associations {
  background: linear-gradient(160deg, #7a2020 0%, var(--rouge) 100%);
  color: white;
  border-bottom-color: #7a2020;
}
.page-hero--associations::before,
.page-hero--associations::after { background: rgba(255,255,255,.04); }
.page-hero--associations .eyelet { color: rgba(255,255,255,.75); }
.page-hero--associations h1 { color: white; }
.page-hero--associations .page-hero-desc { color: rgba(255,255,255,.82); }

.page-hero--enfance {
  background: linear-gradient(160deg, var(--vert-dark) 0%, var(--vert) 100%);
  color: white;
  border-bottom-color: var(--vert-dark);
}
.page-hero--enfance::before,
.page-hero--enfance::after { background: rgba(255,255,255,.04); }
.page-hero--enfance .eyelet { color: rgba(255,255,255,.75); }
.page-hero--enfance h1 { color: white; }
.page-hero--enfance .page-hero-desc { color: rgba(255,255,255,.82); }

.page-hero--vivre {
  background: linear-gradient(160deg, #e8d49a 0%, #f5e9c0 100%);
  color: #3a2800;
  border-bottom-color: #c8a84b;
}
.page-hero--vivre::before,
.page-hero--vivre::after { background: rgba(58,40,0,.04); }
.page-hero--vivre .eyelet { color: #7a5800; }
.page-hero--vivre h1 { color: #3a2800; }
.page-hero--vivre .page-hero-desc { color: rgba(58,40,0,.75); }

.page-hero--enfance {
  background: linear-gradient(160deg, var(--vert-dark) 0%, var(--vert) 100%);
  color: white;
  border-bottom-color: var(--vert-dark);
}
.page-hero--enfance::before,
.page-hero--enfance::after { background: rgba(255,255,255,.04); }
.page-hero--enfance .eyelet { color: rgba(255,255,255,.75); }
.page-hero--enfance h1 { color: white; }
.page-hero--enfance .page-hero-desc { color: rgba(255,255,255,.82); }

.page-hero--vivre {
  background: linear-gradient(160deg, #e8d49a 0%, #f5e9c0 100%);
  color: #3a2800;
  border-bottom-color: #c8a84b;
}
.page-hero--vivre::before,
.page-hero--vivre::after { background: rgba(58,40,0,.04); }
.page-hero--vivre .eyelet { color: #7a5800; }
.page-hero--vivre h1 { color: #3a2800; }
.page-hero--vivre .page-hero-desc { color: rgba(58,40,0,.75); }

.page-hero .eyelet { margin-bottom: 10px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.page-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Hero avec logo (pages associations) ──
   Le logo occupe toute la hauteur du hero moins une marge de 16px
   en haut et en bas, sans modifier la hauteur du bandeau. */
.page-hero--logo {
  display: flex;
  align-items: stretch;
  --hero-pad-y: 48px;
  --hero-logo-marge: 16px;
}
.page-hero--logo .page-hero-text { flex: 0 1 auto; min-width: 0; position: relative; z-index: 1; }
.page-hero-logo {
  flex: 0 1 600px;
  min-width: 0;
  margin-left: 32px;
  position: relative;
  z-index: 1;
}
.page-hero-logo img {
  position: absolute;
  left: 0;
  top: calc(var(--hero-logo-marge) - var(--hero-pad-y));
  height: calc(100% + 2 * (var(--hero-pad-y) - var(--hero-logo-marge)));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  box-sizing: border-box;
  padding: 10px;
  background: #fff;
}

/* ── Layout page intérieure : contenu + sidebar ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 48px 52px;
  align-items: start;
}

/* ── Contenu principal ── */
.page-content h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin-bottom: 16px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.page-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.page-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--bleu-dark);
  margin: 24px 0 10px;
}
.page-content p { margin-bottom: 14px; color: #444; line-height: 1.75; font-size: .97rem; }
.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  color: #444;
  font-size: .97rem;
  line-height: 1.75;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: var(--bleu); text-decoration: underline; }
.page-content a.btn { text-decoration: none; }
.page-content a.btn-bleu  { color: white; }
.page-content a.btn-vert  { color: white; }
.page-content a.btn-sand  { color: var(--bleu-dark); }
.page-content a.btn-white { color: var(--bleu-dark); }
.page-content a.btn-ghost { color: white; }
.page-content a.btn-outline-bleu { color: var(--bleu); }
.page-content strong { color: var(--text); }

/* ── Bloc info encadré ── */
.info-box {
  background: var(--bleu-light);
  border-left: 4px solid var(--bleu);
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: 0 var(--r) var(--r) 0;
}
.info-box p { margin: 0; font-size: .93rem; color: var(--bleu-dark); }
.info-box strong { display: block; margin-bottom: 5px; font-size: 1rem; }

.warning-box {
  background: #fff8e6;
  border-left: 4px solid var(--sand);
  padding: 18px 20px;
  margin: 24px 0;
}
.warning-box p { margin: 0; font-size: .93rem; color: #7a5c00; }

/* ── Table générique ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .92rem;
}
.data-table th {
  background: var(--bleu-dark);
  color: white;
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--bg); }
.data-table tr:hover td { background: var(--bleu-light); }

/* ── Carte élu ── */
.elu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.elu-grid--4col { grid-template-columns: repeat(4, 1fr); }
.elu-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  transition: box-shadow .2s;
}
.elu-card:hover { box-shadow: 0 4px 16px rgba(42,95,143,.1); }
.elu-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bleu-light);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.elu-photo img { width: 100%; height: 100%; object-fit: cover; }
.elu-photo svg { opacity: .4; }
.elu-card strong { display: block; color: var(--bleu-dark); font-weight: 600; font-size: .97rem; }
.elu-card span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.elu-card .elu-role {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: var(--bleu-light);
  color: var(--bleu-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.elu-card .elu-role.maire { background: var(--bleu-dark); color: white; }

/* ── Liste documents téléchargeables ── */
.doc-list { display: grid; gap: 8px; margin: 20px 0; }
.doc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: background .15s, border-color .15s;
}
.doc-item:hover { background: var(--bleu-light); border-color: var(--bleu); }
.doc-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--rouge-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.doc-icon.pdf { background: var(--rouge-light); color: var(--rouge); }
.doc-icon.word { background: var(--bleu-light); color: var(--bleu); }
.doc-icon svg { display: block; }
.doc-icon.has-thumb { width: 160px; height: 226px; background: var(--gray-100); align-self: flex-start; }
.doc-icon.has-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-info { flex: 1; }
.doc-info strong { display: block; font-size: .93rem; color: var(--bleu-dark); font-weight: 600; }
.doc-info small { font-size: .8rem; color: var(--muted); }
.doc-dl {
  flex-shrink: 0; font-size: .82rem; font-weight: 600;
  color: var(--bleu); display: flex; align-items: center; gap: 5px;
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.sidebar-block-head {
  background: var(--bleu-dark);
  color: white;
  padding: 13px 18px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
}
.sidebar-block-head--ocre  { background: linear-gradient(135deg, #e8d49a, #f5e9c0); color: #3a2800; }
.sidebar-block-head--vert  { background: linear-gradient(135deg, var(--vert-dark), var(--vert)); color: white; }
.sidebar-block-head--rouge { background: linear-gradient(135deg, #7a2020, var(--rouge)); color: white; }
.sidebar-block-body { padding: 16px 18px; }

/* Navigation rubrique dans sidebar */
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  font-size: .91rem;
  color: var(--text);
  border-radius: var(--r);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-nav a:hover { background: var(--bleu-light); color: var(--bleu); border-left-color: var(--bleu); }
.sidebar-nav a.active { background: var(--bleu-light); color: var(--bleu-dark); border-left-color: var(--bleu-dark); font-weight: 600; }

/* Contact rapide sidebar */
.sidebar-contact p { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.sidebar-cinfo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.sidebar-cinfo svg { flex-shrink: 0; color: var(--bleu); }
.sidebar-cinfo a { color: var(--bleu); }

/* Page chapeau : grille de cartes enfants */
.rubrique-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.rubrique-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-top: 3px solid var(--bleu);
  transition: all .22s;
}
.rubrique-card:hover {
  box-shadow: 0 6px 22px rgba(42,95,143,.12);
  transform: translateY(-3px);
}
.rc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--bleu-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.rc-icon svg { display: block; }
.rc-text strong { display: block; font-size: 1rem; font-weight: 600; color: var(--bleu-dark); margin-bottom: 5px; }
.rc-text span { font-size: .87rem; color: var(--muted); line-height: 1.5; display: block; }
.rc-text .rc-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--bleu); }

/* ── Responsive pages intérieures ── */
@media (max-width: 1040px) {
  .breadcrumb { padding: 10px 32px; }
  .page-hero { padding: 36px 32px; }
  .page-hero--logo { --hero-pad-y: 36px; }
  .page-layout { grid-template-columns: 1fr; padding: 36px 32px; }
  .sidebar { order: 2; }
  .elu-grid { grid-template-columns: repeat(2, 1fr); }
  .elu-grid--4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .breadcrumb { padding: 10px 20px; }
  .page-hero { padding: 28px 20px; }
  /* Mobile : logo sous le texte, dans le flux */
  .page-hero--logo { flex-direction: column; }
  .page-hero-logo { flex: none; margin: 16px 0 0; }
  .page-hero-logo img { position: static; height: 80px; max-width: 100%; }
  .page-layout { padding: 28px 20px; gap: 24px; }
  .elu-grid { grid-template-columns: 1fr 1fr; }
  .elu-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .rubrique-grid { grid-template-columns: 1fr; }
  .rubrique-card { flex-direction: column; gap: 12px; }
}

/* ── GALERIE PHOTOS ── */
.galerie-section { margin-bottom: 36px; }
.galerie-section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--bleu-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.galerie-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.galerie-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bleu-light);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.photo-item.tall  { aspect-ratio: 3/4; }
.photo-item.wide  { grid-column: span 2; aspect-ratio: 16/7; }
.photo-item.square{ aspect-ratio: 1; }

.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.photo-item:hover img { transform: scale(1.05); }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted);
  font-size: .82rem; text-align: center;
  padding: 16px;
}
.photo-placeholder svg { opacity: .35; }

.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,55,101,.75), transparent);
  color: white; font-size: .78rem; padding: 20px 12px 10px;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.photo-item:hover .photo-caption { transform: translateY(0); }

@media (max-width: 640px) {
  .galerie-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .galerie-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-item.wide { grid-column: span 2; }
}

/* ── WIDGET FACEBOOK ── */
.facebook-section {
  padding: 52px 52px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.facebook-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #1877f2;
  color: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
  flex-shrink: 0;
}
.facebook-cta:hover { background: #1465d8; color: white; }

/* Carte de consentement avant chargement du plugin Facebook (RGPD) */
.fb-consent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 480px;
  width: 100%;
  padding: 36px 28px;
  background: var(--bg-soft, #f7f9fc);
  border: 1.5px dashed #c5d6ea;
  border-radius: 16px;
}
.fb-consent-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bleu-dark, #1a3f62);
  margin: 4px 0 0;
}
.fb-consent-text {
  font-size: .9rem;
  color: var(--muted, #6b7785);
  line-height: 1.5;
  margin: 0 0 6px;
}
.fb-consent-link {
  font-size: .82rem;
  color: var(--bleu, #1877F2);
  text-decoration: none;
  margin-top: 2px;
}
.fb-consent-link:hover { text-decoration: underline; }

/* Disposition 2 colonnes : plugin à gauche, présentation à droite */
.fb-zone {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 32px;
  flex-wrap: wrap;
}
.fb-zone-plugin {
  flex: 0 0 500px;
  max-width: 100%;
}
.fb-zone-text {
  flex: 1 1 360px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fb-aside-title {
  font-family: var(--font-title, serif);
  font-size: 1.55rem;
  color: var(--bleu-dark, #1a3f62);
  margin: 0 0 24px;
}
.fb-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.fb-aside-list li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text, #333);
}
.fb-aside-list li strong { color: var(--bleu, #1877F2); }
.fb-aside-foot { margin-top: 22px; }
.fb-aside-foot p {
  font-size: .92rem;
  color: var(--muted, #6b7785);
  margin: 0;
}
.fb-aside-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Empilement sur petits écrans */
@media (max-width: 900px) {
  .fb-zone { justify-content: center; }
  .fb-zone-plugin { flex-basis: 100%; display: flex; justify-content: center; }
  .fb-zone-text { display: none; }
}

/* Le plugin FB rendu : centrage et largeur responsive */
#fb-plugin-zone .fb-page,
#fb-plugin-zone .fb-page span,
#fb-plugin-zone .fb-page iframe { max-width: 100%; }

/* Grille 3 publications */
.fb-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.fb-post-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  color: var(--text);
}
.fb-post-card:hover {
  box-shadow: 0 6px 22px rgba(24,119,242,.12);
  transform: translateY(-3px);
}
.fb-post-img {
  height: 160px;
  overflow: hidden;
  background: #e7f0fd;
}
.fb-post-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.fb-post-card:hover .fb-post-img img { transform: scale(1.04); }
.fb-post-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e7f0fd, #ddeaf7);
}
.fb-post-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.fb-post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.fb-post-page {
  font-weight: 600;
  font-size: .82rem;
  color: var(--bleu-dark);
}
.fb-post-date {
  font-size: .78rem;
  color: var(--muted);
}
.fb-post-date::before { content: "·"; margin-right: 7px; }
.fb-post-text {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.fb-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
}
.fb-post-likes {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.fb-post-readmore {
  color: #1877f2;
  font-weight: 600;
}

@media (max-width: 1040px) {
  .facebook-section { padding: 44px 32px; }
  .fb-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .facebook-section { padding: 32px 20px; }
  .fb-posts-grid { grid-template-columns: 1fr; }
}

/* ── GITES & LOCATIONS TOURISTIQUES ── */
.gites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.gite-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
}
.gite-card:hover {
  box-shadow: 0 6px 22px rgba(42,95,143,.12);
  transform: translateY(-3px);
}

.gite-card-photo {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bleu-light);
  flex-shrink: 0;
}
.gite-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gite-card:hover .gite-card-photo img { transform: scale(1.04); }
.gite-card-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gite-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gite-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gite-card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bleu-dark);
  line-height: 1.3;
}

.gite-card-badge {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  color: var(--bleu);
  background: var(--bleu-light);
  border: 1px solid rgba(42,95,143,.18);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  line-height: 1.4;
}

.gite-card-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.gite-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.gite-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}
.gite-meta-item svg { color: var(--bleu); flex-shrink: 0; }

.gite-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .gites-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gites-grid { grid-template-columns: 1fr; }
  .gite-card-photo { height: 160px; }
}
/* ── ENTREPRISES & PROFESSIONNELS ── */
.entreprises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 36px;
}

.entreprise-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-left: 3px solid var(--bleu);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .22s, transform .22s;
}
.entreprise-card:hover {
  box-shadow: 0 4px 18px rgba(42,95,143,.1);
  transform: translateY(-2px);
}

.entreprise-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.entreprise-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--bleu-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu);
}
.entreprise-card-icon svg { display: block; }

.entreprise-card-titles { flex: 1; min-width: 0; }

.entreprise-card-nom {
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 600;
  color: var(--bleu-dark);
  line-height: 1.3;
}

.entreprise-card-metier {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2px;
}

.entreprise-card-desc {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.entreprise-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.entreprise-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--bleu);
  text-decoration: none;
  font-weight: 500;
}
.entreprise-contact-item:hover { text-decoration: underline; }
.entreprise-contact-item svg { flex-shrink: 0; color: var(--bleu); }

.entreprise-card-adresse {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}
.entreprise-card-adresse svg { flex-shrink: 0; }

@media (max-width: 1040px) {
  .entreprises-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .entreprises-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   LIGHTBOX ÉLUS
   ═══════════════════════════════════════ */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 25, 40, .75);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.lb-overlay.lb-open {
  display: flex;
  animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-box {
  position: relative;
  background: var(--white);
  border-top: 4px solid var(--bleu);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 28px;
  animation: lbSlideUp .22s ease;
  gap: 0;
}
@keyframes lbSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Photo */
.lb-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bleu-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid var(--line);
  flex-shrink: 0;
}
.lb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-avatar {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--bleu);
  opacity: .35;
}

/* Texte */
.lb-body {
  text-align: center;
  margin-bottom: 16px;
}
.lb-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bleu-dark);
  margin: 0 0 6px;
}
.lb-role {
  display: inline-block;
  background: var(--bleu-light);
  color: var(--bleu-dark);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.lb-delegation {
  font-size: .88rem;
  color: var(--muted);
  margin: 0;
  min-height: 1em;
}

/* Compteur */
.lb-counter {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}

/* Bouton fermeture */
.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background .15s;
}
.lb-close:hover { background: var(--bleu-light); color: var(--bleu-dark); }

/* Boutons navigation */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background .15s, transform .15s;
  z-index: 1;
}
.lb-prev { left: -20px; }
.lb-next { right: -20px; }
.lb-prev:hover,
.lb-next:hover {
  background: var(--bleu-light);
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 480px) {
  .lb-box { padding: 36px 20px 24px; max-width: 100%; }
  .lb-photo { width: 130px; height: 130px; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-name { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════
   BANDEAU CONSENTEMENT COOKIES
   ═══════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  background: var(--bleu-dark);
  color: white;
  padding: 0;
  transform: translateY(100%);
  transition: transform .35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}
#cookie-banner.cb-visible {
  transform: translateY(0);
}

.cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 52px 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.cb-text {
  flex: 1;
}
.cb-text p {
  margin: 0 0 4px;
  font-size: .88rem;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}
.cb-text p:first-child {
  font-size: .95rem;
  color: white;
  margin-bottom: 6px;
}

.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cb-actions .btn {
  white-space: nowrap;
  min-width: 130px;
  justify-content: center;
}
.cb-actions .btn-outline-bleu {
  border-color: rgba(255,255,255,.5);
  color: white;
}
.cb-actions .btn-outline-bleu:hover {
  background: rgba(255,255,255,.1);
  border-color: white;
}

.cb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.cb-close:hover {
  background: rgba(255,255,255,.2);
  color: white;
}

@media (max-width: 640px) {
  .cb-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 14px;
  }
  .cb-actions {
    flex-direction: row;
  }
  .cb-actions .btn {
    flex: 1;
  }
}

/* ═══════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════ */

#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bleu-dark);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .15s;
  pointer-events: none;
}
#back-to-top.btt-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--bleu);
}

/* ============================================================
   Sections images (galerie, slider, bandeau)
   ============================================================ */

/* -- Galerie grille -- */
.section-images-galerie {
  display: grid;
  /* auto-fill : le nombre de colonnes s'adapte à l'espace disponible.
     --img-min-col = largeur min d'une colonne selon --img-cols choisi :
     2 col → 160px, 3 col → 140px, 4 col → 120px.
     La variable --img-col-min est injectée inline par page.php. */
  grid-template-columns: repeat(auto-fill, minmax(var(--img-col-min, 160px), 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.section-img-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--beige-light, #f0ebe0);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .18s, box-shadow .18s;
}
.section-img-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.13);
}
.section-img-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.section-img-item figcaption {
  font-size: 12px;
  color: #555;
  padding: 6px 10px 8px;
  line-height: 1.4;
  text-align: center;
}
.section-img-item a {
  display: block;
}

/* -- Slider -- */
.section-images-slider {
  position: relative;
  margin: 20px 0 28px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.section-images-slider .slider-track { position: relative; }
.section-images-slider .slide-item   { margin: 0; }
.section-images-slider .slide-item img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.section-images-slider .slide-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 13px;
  padding: 24px 16px 10px;
  text-align: center;
}
.slider-prev, .slider-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover, .slider-next:hover { background: rgba(0,0,0,.7); }
.slider-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .15s;
}
.slider-dot.active { background: #fff; }

/* -- Bandeau pleine largeur -- */
.section-images-bandeau {
  display: flex;
  gap: 4px;
  margin: 20px 0 28px;
  border-radius: 10px;
  overflow: hidden;
}
.bandeau-item {
  flex: 1;
  margin: 0;
  position: relative;
  transition: flex .25s ease;
  /* Pas d'overflow:hidden ici pour laisser l'image à hauteur naturelle */
}
/* .bandeau-item:hover flex supprimé */
.bandeau-item { cursor: default; }
.bandeau-item img {
  width: 100%;
  height: auto;       /* hauteur naturelle de l'image */
  display: block;
  object-fit: initial;
}
.bandeau-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
  font-size: 12px;
  padding: 20px 8px 7px;
  text-align: center;
  opacity: 0;
  transition: opacity .2s;
}
/* .bandeau-item:hover figcaption supprimé */

/* Mobile portrait : colonne unique */
@media (max-width: 600px) {
  .section-images-bandeau {
    flex-direction: column;
    gap: 6px;
  }
  .bandeau-item {
    flex: none;
    width: 100%;
  }
}

/* Mobile paysage : même comportement que desktop (ratio naturel),
   juste contrainte en largeur pour que les items s'affichent côte à côte */
@media (max-width: 900px) and (orientation: landscape) {
  .section-images-bandeau {
    align-items: flex-start;
  }
  .bandeau-item img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
  }
}

/* ============================================================
   Lightbox images (sections galerie grille)
   ============================================================ */
.lbi-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1200;
  align-items: center;
  justify-content: center;
}
.lbi-overlay.lbi-open {
  display: flex;
}
.lbi-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lbi-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.lbi-caption {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  max-width: 600px;
}
.lbi-legende {
  text-align: center;
  margin-top: 10px;
  max-width: 600px;
}
.lbi-titre {
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: .02em;
}
.lbi-sous-titre {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin: 4px 0 0;
}
.lbi-counter {
  color: rgba(255,255,255,.45);
  font-size: 11px;
  margin-top: 6px;
}
.lbi-close {
  position: fixed;
  top: 16px; right: 20px;
  background: none; border: none;
  color: #fff; cursor: pointer;
  opacity: .7; transition: opacity .15s;
  padding: 6px;
}
.lbi-close:hover { opacity: 1; }
.lbi-prev, .lbi-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  opacity: .8;
}
.lbi-prev:hover, .lbi-next:hover { background: rgba(255,255,255,.25); opacity: 1; }
.lbi-prev { left: 16px; }
.lbi-next { right: 16px; }
@media (max-width: 600px) {
  .lbi-prev { left: 6px; }
  .lbi-next { right: 6px; }
}

/* ═══════════════════════════════════════
   SUIVEZ-NOUS SUR FACEBOOK (section À la une)
   ═══════════════════════════════════════ */
.fb-follow {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 28px;
}
.fb-follow-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fb-follow-intro h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--bleu-dark); line-height: 1.3; margin: 0; }
.fb-follow-intro p { font-size: .9rem; color: var(--muted); margin: 0; }
.fb-follow-btn { margin-top: 6px; }
.fb-follow-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.fb-follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 22px;
  align-content: center;
}
.fb-follow-list li { font-size: .86rem; line-height: 1.5; color: var(--text); padding-left: 12px; border-left: 3px solid var(--bleu-light); }
.fb-follow-list li strong { display: block; color: var(--bleu); font-size: .9rem; margin-bottom: 2px; }
@media (max-width: 760px) {
  .fb-follow { grid-template-columns: 1fr; padding: 22px 20px; }
}

/* Actualité sans visuel exploitable : logo de la commune à la place */
.news-thumb-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px 18px 44px;
  background: var(--white, #fff);
}

/* Lien mis en avant dans le méga-menu (Actualités communales) */
.mega-link.mega-link-highlight { background: var(--bleu-light); }
.mega-link.mega-link-highlight .ml-icon { background: var(--bleu); color: white; }
.mega-link.mega-link-highlight:hover { background: #d6e6f5; }

/* Corps d'une actualité : espacement des paragraphes (le reset global met les marges à 0) */
/* Plus spécifique que .page-content p (line-height 1.75) qui s'appliquait aux paragraphes */
.article-body p,
.page-content .article-body p { margin: 0 0 .8em; line-height: 1.55; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1em 1.4em; }
.article-body a { color: var(--bleu); text-decoration: underline; word-break: break-word; }

/* Page Actualités : sur mobile, l'image au-dessus du texte (styles en ligne, d'où !important) */
@media (max-width: 640px) {
  .actu-list-card { grid-template-columns: 1fr !important; }
  .actu-list-thumb { min-height: 0 !important; aspect-ratio: 16 / 9; }
}
