/* ============================================================
   L'Info de la Boucle — Feuille de style principale
   = Import de style-v4.css (source de vérité du design)
   + Bridge layer pour les classes legacy des pages internes
   ============================================================ */

@import url('style-v4.css');

/* ════════════════════════════════════════════════════════════════
   ALIAS TOKENS LEGACY → V4
   Les anciennes pages utilisent encore --seine, --text-light, --ciel,
   etc. dans des inline-styles ou règles non migrées. On les mappe sur
   les tokens v4 pour éviter les couleurs/bordures invisibles.
   ════════════════════════════════════════════════════════════════ */
:root {
  --seine:       var(--accent);
  --seine-deep:  var(--accent-hover);
  --ciel:        #DBEAFE;
  --ciel-deep:   #1E40AF;

  --text:        var(--ink);
  --text-mid:    var(--ink-soft);
  --text-light:  var(--ink-mute);

  --bg-white:    var(--surface);
  --bg-soft:     var(--paper);
  --bg-cream:    var(--paper-2);

  --border:      var(--rule);
  --shadow:      var(--shadow-1);
  --shadow-lg:   var(--shadow-2);
  --shadow-xl:   var(--shadow-3);

  --accent-soft: rgba(30, 64, 175, 0.08);

  --primary:        var(--accent);
  --primary-dark:   var(--accent-hover);
  --primary-light:  #DBEAFE;
  --secondary:      var(--c-cult);
  --success:        var(--c-eco);
  --warning:        var(--c-edu);
  --danger:         #DC2626;
}

/* ════════════════════════════════════════════════════════════════
   BRIDGE LEGACY → V4
   Restyle les classes héritées (articles, sidebar, hero détail, forms,
   etc.) avec les tokens v4 pour que les ~28 pages internes adoptent
   automatiquement la nouvelle direction visuelle.
   ════════════════════════════════════════════════════════════════ */

/* ─── Page banner (en-tête des pages listing) ─── */
.page-banner {
  padding: var(--s-6) var(--s-4) var(--s-5);
  background:
    radial-gradient(800px 400px at 80% 50%, rgba(30, 64, 175, 0.08), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(124, 58, 237, 0.06), transparent 60%);
}
/* Centre les enfants directs dans la container width quand la page-banner
   n'a pas de .container interne (cas de actualites.html, evenements.html…) */
.page-banner > h1,
.page-banner > h2,
.page-banner > p,
.page-banner > .lead,
.page-banner > .breadcrumb {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.page-banner .container { text-align: left; }
.page-banner h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: 'opsz' 100;
  margin-top: var(--s-3);
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.page-banner p,
.page-banner .lead,
.page-banner-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

.breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-mute); transition: color 160ms; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 9px; opacity: 0.5; }

/* ─── Layout sidebar partagé ─── */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-6);
}
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ─── Articles section / grid / card (legacy) ─── */
.articles-section,
.articles-section.active { display: block; padding: var(--s-6) 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 700px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.article-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card-img .badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
}
.article-card-body {
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
  flex: 1;
}
.article-card-body h3,
.article-card-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 160ms;
}
.article-card:hover h3,
.article-card:hover h2 { color: var(--accent); }
.article-card-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.article-meta {
  margin-top: auto;
  padding-top: var(--s-2);
  display: flex; gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-mute);
}
.article-meta .author,
.article-meta strong { color: var(--ink); font-weight: 600; }

/* badge legacy générique restylé v4 */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
}

/* ─── Sidebar / sidebar-widget (legacy) ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}
.sidebar-widget h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget h3 i { color: var(--accent); }

.communes-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.commune-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  transition: all 160ms;
  cursor: pointer;
  text-decoration: none;
}
.commune-tag:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.commune-tag.active,
.commune-tag[aria-current="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.commune-tag i { font-size: 12px; opacity: 0.7; }

/* ─── Utilitaires partagés pour pages listing ─── */
.annuaire-filter-row,
.page-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.page-empty-state {
  text-align: center;
  padding: var(--s-6) var(--s-3);
  color: var(--ink-mute);
  font-size: 15px;
  font-style: italic;
}
.page-cta {
  text-align: center;
  padding: var(--s-6) var(--s-3);
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.page-cta h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.page-cta p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--s-2);
}
.page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
}

.jobs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) { .jobs-grid { grid-template-columns: 1fr; } }
.jobs-model-card { margin-top: var(--s-5); }
.jobs-model-card .btn { align-self: flex-start; margin-top: var(--s-2); }

/* Newsletter widget legacy → carte gradient sobre */
.sidebar-widget.newsletter-widget {
  background: linear-gradient(135deg, var(--paper-2) 0%, #E5DDD0 100%);
  border: 0;
}
.sidebar-widget.newsletter-widget p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--s-3);
}
.newsletter-form {
  display: flex; flex-direction: column; gap: var(--s-2);
}
.newsletter-form input,
.newsletter-form input[type="email"] {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 14px;
  background: var(--surface);
  outline: none;
  transition: border-color 160ms;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  transition: background 160ms;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--accent); }

/* Popular list (Les + Lus) */
.popular-list { display: flex; flex-direction: column; gap: var(--s-3); }
.popular-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
  text-decoration: none; color: inherit;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-item-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.popular-item-text h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.popular-item-text span {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.popular-item:hover h4 { color: var(--accent); }

/* ─── Articles section legacy (.events-section, .annuaire-section, etc.) ─── */
.events-section,
.annuaire-section,
.community-section,
.tools-section,
.map-section {
  display: block;
  padding: var(--s-7) 0;
}
@media (max-width: 768px) {
  .events-section, .annuaire-section, .community-section,
  .tools-section, .map-section { padding: var(--s-6) 0; }
}

/* Section title legacy */
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.section-title h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 80;
}
.section-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: all 200ms var(--ease-out);
}
.section-title a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.section-subtitle {
  font-size: 16px;
  color: var(--ink-mute);
  margin: calc(var(--s-5) * -1 + var(--s-2)) 0 var(--s-5);
  max-width: 60ch;
}

/* Community section legacy */
.community-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 900px) { .community-showcase { grid-template-columns: 1fr; } }
.community-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
  text-decoration: none; color: inherit;
}
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.community-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft, rgba(30,64,175,0.08));
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.community-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.community-card p { font-size: 14px; line-height: 1.5; }
.community-hero-note {
  font-size: 16px;
  color: var(--ink-mute);
  max-width: 60ch;
  margin: calc(var(--s-5) * -1 + var(--s-2)) 0 var(--s-5);
}

/* Tools section legacy */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tool-card > i {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.tool-card h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}
.tool-card p { font-size: 14px; line-height: 1.5; }

/* ─── Article hero (page détail) ─── */
.article-hero {
  padding: var(--s-6) 0 var(--s-5);
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(30, 64, 175, 0.06), transparent 60%);
}
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-4);
}
@media (max-width: 900px) { .article-hero-grid { grid-template-columns: 1fr; } }
.article-hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.article-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: 'opsz' 120;
  text-wrap: balance;
}
.article-hero-copy .badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
}
.article-lead,
.article-intro {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 400;
  font-variation-settings: 'opsz' 24;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.article-meta-bar span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-bar i { color: var(--accent); opacity: 0.8; }

.article-hero-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.article-hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.article-hero-caption {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ─── Article body / shell ─── */
.article-shell {
  padding: var(--s-6) 0 var(--s-7);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-6);
}
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } }

.article-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-content > * + * { margin-top: var(--s-4); }
.article-content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--s-5);
  font-variation-settings: 'opsz' 80;
}
.article-content h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--s-5);
}
.article-content p { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-content a:hover { color: var(--accent-hover); }
.article-content blockquote,
.article-quote {
  border-left: 3px solid var(--accent);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-5) 0;
  background: var(--paper-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  font-variation-settings: 'opsz' 24;
}
.article-content ul,
.article-content ol,
.article-list { padding-left: var(--s-4); }
.article-content ul li,
.article-content ol li,
.article-list li { list-style: disc; margin-bottom: 8px; line-height: 1.6; }
.article-content ol li,
.article-list.ordered li { list-style: decimal; }
.article-content img,
.article-content figure img {
  border-radius: var(--r-md);
  width: 100%;
}
.article-content figure figcaption,
.article-content .figure-caption {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: var(--s-2);
  font-style: italic;
}

.article-signature,
.article-author-block {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  display: flex; align-items: center; gap: var(--s-3);
}
.article-signature h4,
.article-author-block h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}
.article-signature p,
.article-author-block p { font-size: 13px; color: var(--ink-mute); margin: 0; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-4);
}
.article-tags a,
.article-tags span {
  padding: 6px 12px;
  font-size: 12px;
  background: var(--paper-2);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: all 160ms;
}
.article-tags a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Article sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: var(--s-4); }
.article-side-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}
.article-side-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.article-facts {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14px;
}
.article-facts li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--rule);
}
.article-facts li:last-child { border-bottom: 0; }
.article-facts strong {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

.article-related-list { display: flex; flex-direction: column; gap: var(--s-3); }
.article-related-item {
  display: flex;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.article-related-item:last-child { border-bottom: 0; padding-bottom: 0; }
.article-related-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.article-related-item h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.article-related-item:hover h4 { color: var(--accent); }
.article-related-item .meta {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ─── CTA banner legacy ─── */
.cta-banner {
  display: block;
  padding: var(--s-7) var(--s-4);
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(124, 58, 237, 0.25), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(30, 64, 175, 0.30), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--r-xl);
  margin: var(--s-6) var(--s-4);
}
.cta-banner h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-3);
  font-variation-settings: 'opsz' 100;
}
.cta-banner p { color: rgba(255, 255, 255, 0.75); max-width: 50ch; margin: 0 auto var(--s-4); }
.cta-buttons { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }

/* ─── Boutons partagés (.btn / .btn-accent / .btn-outline) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
  line-height: 1;
}
.btn-accent {
  background: var(--ink);
  color: var(--paper);
}
.btn-accent:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta-banner .btn-outline { color: #fff; border-color: #fff; }
.cta-banner .btn-outline:hover { background: #fff; color: var(--ink); }
.cta-banner .btn-accent { background: #fff; color: var(--ink); }
.cta-banner .btn-accent:hover { background: var(--accent); color: #fff; }

/* ─── Formulaires partagés (contact, newsletter, mairie, etc.) ─── */
.contact-section,
.newsletter-page-section,
.partnership-section {
  padding: var(--s-6) 0 var(--s-7);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form,
.commune-mairie-form,
form.contact-form {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.form-row-two,
.form-row.two-cols {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) { .form-row-two, .form-row.two-cols { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.form-group input,
.form-group textarea,
.form-group select,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea,
form select {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms, background 160ms;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Contact info side */
.contact-info {
  display: flex; flex-direction: column; gap: var(--s-3);
}
.contact-info-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: var(--shadow-1);
  display: flex; gap: var(--s-3); align-items: center;
}
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft, rgba(30,64,175,0.08));
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-item h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.contact-info-item p,
.contact-info-item a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info-item a:hover { color: var(--accent); }

/* ─── Admin (login + dashboard) — tokens v4 minimal ─── */
.admin-login-shell {
  min-height: 100vh;
  background:
    radial-gradient(700px 400px at 20% 30%, rgba(30, 64, 175, 0.08), transparent 60%),
    var(--paper);
}
.admin-login-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: var(--s-5);
}

/* ─── 404 / utility page-banner variants ─── */
.error-page-content,
.error-content {
  text-align: center;
  padding: var(--s-8) 0;
}
.error-page-content h1,
.error-content h1 {
  font-family: var(--serif);
  font-size: clamp(80px, 16vw, 180px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
  line-height: 1;
  font-variation-settings: 'opsz' 144;
  margin-bottom: var(--s-3);
}
.error-page-content h2,
.error-content h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: var(--s-3);
}

/* ─── Stat blocks (chiffres clés communs sur plusieurs pages) ─── */
.commune-stat,
.partnership-metric {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.commune-stat strong,
.partnership-metric strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  font-variation-settings: 'opsz' 100;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.commune-stat span,
.partnership-metric span {
  display: block;
  margin-top: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

/* ════════════════════════════════════════════════════════════════
   EVENT MODAL — popup événement (pages/evenements.html)
   ════════════════════════════════════════════════════════════════ */
.event-modal {
  position: fixed; inset: 0;
  z-index: 400;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-5) var(--s-3);
  overflow-y: auto;
}
.event-modal[aria-hidden="false"],
.event-modal.open { display: flex; }

.event-modal-dialog {
  width: min(1100px, 100%);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  margin: auto;
  animation: modalIn 320ms var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.event-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.event-modal-topbar .job-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.event-modal-close {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 160ms, transform 160ms;
}
.event-modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

.event-modal-content { padding: var(--s-5); }
.event-modal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 900px) { .event-modal-grid { grid-template-columns: 1fr; } }

/* Galerie d'images en haut du popup */
.event-gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.event-gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.event-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.event-gallery-main .badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  background: var(--surface);
  color: var(--ink);
}
.event-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-2);
}
.event-gallery-side figure {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.event-gallery-side figure img {
  width: 100%; height: 100%; object-fit: cover;
}

.event-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  font-size: 13px;
  color: var(--ink-mute);
}
.event-popup-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-popup-meta i { color: var(--accent); opacity: 0.8; }

.event-popup-copy h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.event-popup-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.event-actions .btn-outline {
  color: var(--ink) !important;
  border-color: var(--rule) !important;
}
.event-actions .btn-outline:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Panneau latéral du popup */
.event-popup-side { display: flex; flex-direction: column; gap: var(--s-3); }
.event-popup-box {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  border: 1px solid var(--rule);
}
.event-popup-box h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.event-popup-list { display: flex; flex-direction: column; gap: var(--s-2); font-size: 13px; }
.event-popup-list li {
  display: flex; justify-content: space-between; gap: var(--s-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.event-popup-list li:last-child { border-bottom: 0; }
.event-popup-list span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.event-popup-list strong {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}

/* Mini-carte décorative dans la popup */
.event-map-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 100%);
  border-radius: var(--r-md);
  overflow: hidden;
}
.event-map-route {
  position: absolute;
  top: 60%; left: 10%;
  width: 80%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-12deg);
  opacity: 0.45;
}
.event-map-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
}
.event-map-label {
  position: absolute;
  bottom: var(--s-2); left: var(--s-2); right: var(--s-2);
  padding: 6px 10px;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ════════════════════════════════════════════════════════════════
   BONS PLANS — pages/bons-plans.html
   ════════════════════════════════════════════════════════════════ */
.deals-section {
  padding: var(--s-7) 0;
}
.deals-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) { .deals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .deals-grid { grid-template-columns: 1fr; } }

.deal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  text-decoration: none; color: inherit;
}
.deal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.deal-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.deal-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.deal-card:hover .deal-card-media img { transform: scale(1.05); }

.deal-badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
}

.deal-card-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.deal-card-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 160ms;
}
.deal-card:hover h3 { color: var(--accent); }
.deal-card-body p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.deal-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  margin-top: var(--s-2);
}
.deal-meta span { display: inline-flex; align-items: center; gap: 6px; }
.deal-meta i { color: var(--accent); width: 14px; opacity: 0.8; }

.deal-highlight {
  margin-top: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
  color: #9A3412;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
}
.deal-highlight i { color: #C2410C; }

/* ════════════════════════════════════════════════════════════════
   OFFRES JOB — pages/offres-job.html
   ════════════════════════════════════════════════════════════════ */
.jobs-section {
  padding: var(--s-7) 0;
}
.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.jobs-hero-note {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  border-left: 3px solid var(--accent);
}

/* Carte job — même langage visuel que .article-card (surface, ombre, radius) */
.job-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.job-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.job-card-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 4px;
}
.job-company {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.job-card .job-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--ink-mute);
}
.job-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-card > p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.job-card-body,
.job-summary,
.job-summary-item {
  /* hérités du pattern article-card */
}
.job-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.job-summary-item {
  padding: 4px 10px;
  font-size: 12px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-weight: 500;
}
.job-summary-item.contract {
  background: var(--accent);
  color: #fff;
}

/* Page fiche job — header dédié */
.job-detail-header {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-5);
}
.job-apply-box {
  background: linear-gradient(135deg, var(--paper-2) 0%, #E5DDD0 100%);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  margin-top: var(--s-4);
  text-align: center;
}
.job-apply-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: var(--s-2);
}
.job-apply-box p { font-size: 14px; color: var(--ink-soft); margin-bottom: var(--s-3); }

/* ════════════════════════════════════════════════════════════════
   ANNUAIRE / DIRECTORY — fiches détails (ex: fiche-boulangerie-vieux-pont)
   ════════════════════════════════════════════════════════════════ */
.directory-profile-section {
  padding: var(--s-6) 0 var(--s-7);
}
.directory-profile-shell {
  /* simple wrapper, max-width déjà géré par .container parent */
}
.directory-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-6);
}
@media (max-width: 1024px) {
  .directory-profile-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
.directory-profile-main { display: flex; flex-direction: column; gap: var(--s-5); }

.directory-profile-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.directory-profile-card h2,
.directory-profile-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.directory-profile-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.directory-profile-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-2);
}
.directory-profile-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.directory-hero {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.directory-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 100;
}

.directory-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: var(--s-2);
}
.directory-meta-row span,
.directory-meta-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.directory-meta-row i { color: var(--accent); opacity: 0.8; }
.directory-meta-row a { color: var(--ink); font-weight: 500; }
.directory-meta-row a:hover { color: var(--accent); }

/* Gallery — image principale + 2 vignettes */
.directory-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
@media (max-width: 700px) { .directory-gallery { grid-template-columns: 1fr; } }
.directory-gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.directory-gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.directory-gallery-main:hover img { transform: scale(1.03); }
.directory-gallery-main .badge {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.directory-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-2);
}
.directory-gallery-side figure {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.directory-gallery-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.directory-gallery-side figure:hover img { transform: scale(1.05); }

/* Grille d'infos sur le commerce */
.directory-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (max-width: 560px) { .directory-info-grid { grid-template-columns: 1fr; } }
.directory-info-item {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.directory-info-item .label,
.directory-info-item > span:first-child {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.directory-info-item .value,
.directory-info-item strong,
.directory-info-item > span:last-child {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.directory-info-item i {
  color: var(--accent);
  margin-right: 6px;
  opacity: 0.8;
}

/* Filters chips (réutilisés sur annuaire détail aussi) */
.search-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  transition: all 160ms;
  text-decoration: none;
}
.search-filter-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.search-filter-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Offer highlight (offre / promo en haut de la fiche) */
.offer-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
  color: #9A3412;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}
.offer-highlight i { color: #C2410C; font-size: 14px; }

/* Hours list (horaires d'ouverture) */
.hours-list,
.commune-mairie-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  margin-top: var(--s-2);
}
.hours-list li,
.commune-mairie-hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.hours-list li:last-child,
.commune-mairie-hours li:last-child { border-bottom: 0; }
.hours-list .day,
.hours-list span:first-child,
.commune-mairie-hours span:first-child {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.hours-list .time,
.hours-list strong,
.hours-list span:last-child,
.commune-mairie-hours strong,
.commune-mairie-hours span:last-child {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
.hours-list .closed,
.hours-list .is-closed { color: var(--ink-mute); font-style: italic; }

/* Mini-map décorative (annuaire + événement) */
.mini-map-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 6px, transparent 6px 12px),
    linear-gradient(135deg, #DBEAFE 0%, #E0E7FF 100%);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: var(--s-3);
}
.mini-map-surface .map-river,
.map-river {
  position: absolute;
  top: 55%; left: -5%;
  width: 110%; height: 8px;
  background: linear-gradient(90deg, #60A5FA, #3B82F6);
  border-radius: 8px;
  transform: rotate(-6deg);
  opacity: 0.55;
}
.mini-map-surface .map-pin,
.map-pin {
  position: absolute;
  top: 45%; left: 50%;
  width: 18px; height: 18px;
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.4);
}
.mini-map-surface .map-label,
.map-label {
  position: absolute;
  bottom: var(--s-2); left: var(--s-2); right: var(--s-2);
  padding: 6px 10px;
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

/* ════════════════════════════════════════════════════════════════
   COMMUNE — pages/commune.php (page détail d'une commune)
   ════════════════════════════════════════════════════════════════ */
.commune-page {
  padding: var(--s-6) 0 var(--s-7);
}

/* Hero commune */
.commune-hero {
  padding: var(--s-6) 0 var(--s-5);
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(30, 64, 175, 0.08), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgba(124, 58, 237, 0.06), transparent 60%);
}
.commune-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
  align-items: center;
  margin-top: var(--s-4);
}
@media (max-width: 900px) { .commune-hero-grid { grid-template-columns: 1fr; } }

.commune-hero-copy { display: flex; flex-direction: column; gap: var(--s-3); }
.commune-hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: 'opsz' 120;
  text-wrap: balance;
}
.commune-hero-copy .badge,
.commune-hero-copy .article-lead {
  align-self: flex-start;
}
.commune-hero-copy .article-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-variation-settings: 'opsz' 24;
}

.commune-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-2);
}
.commune-badges .badge,
.commune-badges span {
  background: var(--paper-2);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.commune-hero-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.commune-hero-visual img {
  width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover;
}
.commune-caption {
  margin-top: var(--s-2);
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}
.commune-logo {
  position: absolute;
  bottom: var(--s-3); left: var(--s-3);
  width: 64px; height: 64px;
  background: var(--surface);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  overflow: hidden;
}
.commune-logo img { width: 100%; height: 100%; object-fit: cover; }

/* Stats commune (population, superficie, etc.) */
.commune-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}
@media (max-width: 560px) { .commune-hero-stats { grid-template-columns: 1fr 1fr; } }

/* (.commune-stat est déjà stylé plus haut dans le bridge) */

/* Layout principal commune */
.commune-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-6);
}
@media (max-width: 1024px) { .commune-grid { grid-template-columns: 1fr; } }

.commune-main { display: flex; flex-direction: column; gap: var(--s-5); }
.commune-side { display: flex; flex-direction: column; gap: var(--s-4); }

.commune-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.commune-card h2,
.commune-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.commune-card h2 { font-size: clamp(22px, 2.8vw, 30px); }
.commune-card h3 { font-size: clamp(18px, 2vw, 22px); }
.commune-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Liste d'infos clé/valeur (info-list) */
.commune-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.commune-info-item {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.commune-info-item:last-child { border-bottom: 0; }
.commune-info-item > span:first-child,
.commune-info-item .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  flex-shrink: 0;
}
.commune-info-item > span:last-child,
.commune-info-item strong,
.commune-info-item .value {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* Carte mairie + formulaire de contact */
.commune-mairie-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
}
.commune-mairie-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-2);
}
.commune-mairie-head i,
.commune-mairie-head .commune-logo {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(30,64,175,0.08));
  color: var(--accent);
  border-radius: 14px;
  font-size: 22px;
  flex-shrink: 0;
}
.commune-mairie-head h3,
.commune-mairie-head h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.commune-mairie-head .subtitle,
.commune-mairie-head p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0;
}

.commune-mairie-form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: var(--s-3);
}
.commune-mairie-form input,
.commune-mairie-form textarea,
.commune-mairie-form select {
  background: var(--surface);
}
.commune-mairie-feedback {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  font-size: 14px;
  background: var(--paper-2);
  color: var(--ink);
  border-left: 3px solid var(--accent);
  display: none;
}
.commune-mairie-feedback.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border-left-color: #10B981;
}
.commune-mairie-feedback.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border-left-color: #EF4444;
}

/* btn-primary alias de btn-accent (utilisé sur commune.php) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 200ms var(--ease-out);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Label commune (page liste communes) */
.commune-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* Legend de la carte territoire (réutilisée sur commune.php aussi) */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-seine,
.dot-commune,
.dot-active {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-seine   { background: #93C5FD; }
.dot-commune { background: var(--ink-mute); }
.dot-active  { background: var(--accent); }

/* ════════════════════════════════════════════════════════════════
   NEWSLETTER PAGE — pages/newsletter.html
   ════════════════════════════════════════════════════════════════ */
.newsletter-page-section { padding: var(--s-6) 0 var(--s-7); }
.newsletter-shell { display: flex; flex-direction: column; gap: var(--s-5); }
.newsletter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 900px) { .newsletter-grid { grid-template-columns: 1fr; } }

.newsletter-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.newsletter-panel h2,
.newsletter-panel h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.newsletter-panel h2 { font-size: clamp(22px, 2.8vw, 30px); }
.newsletter-panel h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.newsletter-panel p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.newsletter-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  min-height: 320px;
  background: linear-gradient(135deg, var(--paper-2) 0%, #E5DDD0 100%);
}
.newsletter-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newsletter-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-5);
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 35%, rgba(10, 10, 10, 0.78) 100%);
}
.newsletter-overlay h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  border: 0;
  padding: 0;
  text-transform: none;
}
.newsletter-overlay p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.newsletter-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.newsletter-benefits li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-soft);
}
.newsletter-benefits li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.newsletter-benefits .newsletter-chip { cursor: default; }
.newsletter-benefits .newsletter-chip:hover {
  background: var(--paper);
  color: var(--ink-soft);
  border-color: var(--rule);
}
.newsletter-benefits .newsletter-chip i { color: var(--accent); }

.newsletter-chip,
.newsletter-commune-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 160ms;
  font-family: var(--sans);
}
.newsletter-chip:hover,
.newsletter-commune-chip:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.newsletter-chip.is-active,
.newsletter-commune-chip.is-active,
.newsletter-chip[aria-checked="true"],
.newsletter-commune-chip[aria-checked="true"] {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.newsletter-communes,
.newsletter-communes-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--s-2);
}
.newsletter-communes-help,
.newsletter-communes-loading,
.newsletter-ranking-loading {
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
  padding: var(--s-2) 0;
}

.newsletter-scope { display: flex; flex-direction: column; gap: var(--s-2); }
.newsletter-scope-option {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
}
.newsletter-scope-option:hover { border-color: var(--accent); }
.newsletter-scope-option input[type="radio"],
.newsletter-scope-option input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 3px;
}
.newsletter-scope-option.is-selected,
.newsletter-scope-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(30, 64, 175, 0.04);
}
.newsletter-scope-legend {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.newsletter-scope-count {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
  margin-left: 6px;
}

.newsletter-ranking { display: flex; flex-direction: column; gap: var(--s-2); }
.newsletter-ranking li,
.newsletter-ranking-name {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.newsletter-ranking li:last-child { border-bottom: 0; }
.newsletter-ranking-count {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.newsletter-form-feedback {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  font-size: 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  display: none;
}
.newsletter-form-feedback.success { display: block; background: #ECFDF5; color: #065F46; border-left-color: #10B981; }
.newsletter-form-feedback.error   { display: block; background: #FEF2F2; color: #991B1B; border-left-color: #EF4444; }

/* ════════════════════════════════════════════════════════════════
   AGENDA — pages/agenda-*.html
   ════════════════════════════════════════════════════════════════ */
.agenda-section { padding: var(--s-6) 0 var(--s-7); }
.agenda-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--s-5);
}
@media (max-width: 900px) { .agenda-shell { grid-template-columns: 1fr; } }

.agenda-filter-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  height: fit-content;
  position: sticky;
  top: 84px;
}
.agenda-filter-panel h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.agenda-filter-grid {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}

.agenda-select,
.agenda-select select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
}
.agenda-select select:focus { border-color: var(--accent); outline: none; }

.agenda-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.agenda-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 160ms;
}
.agenda-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.agenda-chip.is-active,
.agenda-chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

.agenda-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (max-width: 700px) { .agenda-results { grid-template-columns: 1fr; } }

.agenda-commune-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
@media (max-width: 700px) { .agenda-commune-grid { grid-template-columns: 1fr; } }
.agenda-commune-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
}
.agenda-commune-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.agenda-commune-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.agenda-commune-card .count,
.agenda-commune-card .chip-count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.chip-count {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ════════════════════════════════════════════════════════════════
   COMMUNAUTÉ — pages/communaute.html (variantes étendues)
   ════════════════════════════════════════════════════════════════ */
.community-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
@media (max-width: 900px) { .community-grid { grid-template-columns: 1fr; } }
.community-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.community-panel h2,
.community-panel h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.community-panel h2 { font-size: clamp(22px, 2.6vw, 28px); }
.community-panel h3 { font-size: 18px; }
.community-panel p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.community-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
@media (max-width: 600px) { .community-audience-grid { grid-template-columns: 1fr; } }
.community-audience-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-2);
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
  text-decoration: none; color: inherit;
}
.community-audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.community-audience-card h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
}
.community-audience-card p { font-size: 14px; color: var(--ink-soft); }

.community-feed {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-top: var(--s-3);
}
.community-feed-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.community-feed-card h4 {
  font-family: var(--serif); font-size: 17px; font-weight: 600;
}
.community-feed-card .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}

.community-pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.community-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
}

.community-cta-band {
  margin-top: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(30, 64, 175, 0.28), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #fff;
  text-align: center;
}
.community-cta-band h2 {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.community-cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 50ch; margin: 0 auto var(--s-3); }
.community-cta-actions { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }

/* ════════════════════════════════════════════════════════════════
   SEARCH — pages/search.html
   ════════════════════════════════════════════════════════════════ */
.search-results-section { padding: var(--s-6) 0 var(--s-7); }
.search-shell { display: flex; flex-direction: column; gap: var(--s-4); }

.search-bar-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}
.search-form-large {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.search-form-large input[type="search"],
.search-form-large input[type="text"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 15px;
  outline: none;
  transition: border-color 160ms;
}
.search-form-large input:focus { border-color: var(--accent); background: var(--surface); }
.search-form-large button {
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  transition: background 160ms;
}
.search-form-large button:hover { background: var(--accent); }

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.search-meta-row strong { color: var(--ink); font-weight: 700; }

.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s-5);
}
@media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } }

.search-results-list {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.search-results-list a,
.search-results-list .search-result {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 240ms var(--ease-out), box-shadow 240ms;
}
.search-results-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.search-results-list h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 160ms;
}
.search-results-list a:hover h3 { color: var(--accent); }
.search-results-list p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.search-results-list .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* Cartes réellement générées par js/main.js (renderSearchResults) */
.search-result-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: block;
  transition: transform 240ms var(--ease-out), box-shadow 240ms;
}
article.search-result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.search-result-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.search-result-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 160ms;
}
article.search-result-card:hover h3 { color: var(--accent); }
.search-result-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: var(--s-2);
}
.search-result-meta span { display: flex; align-items: center; gap: 6px; }
.search-empty {
  padding: var(--s-5);
  text-align: center;
  color: var(--ink-mute);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

/* ════════════════════════════════════════════════════════════════
   PARTENARIATS — pages/adhesions-partenariats.html
   ════════════════════════════════════════════════════════════════ */
.partnership-intro { padding: var(--s-6) 0 var(--s-4); }
.partnership-intro h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-3);
}
.partnership-intro p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }

.partnership-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 900px) { .partnership-grid { grid-template-columns: 1fr; } }

.partnership-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.partnership-panel h2,
.partnership-panel h3 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.partnership-panel h2 { font-size: clamp(22px, 2.8vw, 30px); }
.partnership-panel h3 { font-size: 18px; }

.partnership-list { display: flex; flex-direction: column; gap: var(--s-2); }
.partnership-list li {
  display: flex; align-items: start; gap: 10px;
  padding: var(--s-2) 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.partnership-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.partnership-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
  margin: var(--s-3) 0;
}
@media (max-width: 560px) { .partnership-metrics { grid-template-columns: 1fr 1fr; } }

.partnership-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
@media (max-width: 1024px) { .partnership-plans { grid-template-columns: 1fr; } }

.partnership-plan {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
  border: 1px solid var(--rule);
  position: relative;
  transition: transform 280ms var(--ease-out), box-shadow 280ms;
}
.partnership-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.partnership-plan.is-featured,
.partnership-plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(30,64,175,0.04), var(--surface) 30%);
}

.partnership-plan-top {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.partnership-plan-top h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.partnership-price {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 100;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.partnership-price small,
.partnership-price .unit,
.partnership-price span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.partnership-badge {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.partnership-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-3);
}
@media (max-width: 768px) { .partnership-steps { grid-template-columns: 1fr; } }
.partnership-step {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 6px;
}
.partnership-step-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.partnership-step h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}
.partnership-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.partnership-note {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: var(--paper-2);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
}

/* ════════════════════════════════════════════════════════════════
   PORTRAITS — pages/portraits.html
   ════════════════════════════════════════════════════════════════ */
.portraits-section { padding: var(--s-6) 0 var(--s-7); }
.portraits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 1024px) { .portraits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .portraits-grid { grid-template-columns: 1fr; } }

.portrait-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform 320ms var(--ease-out), box-shadow 320ms;
  text-decoration: none; color: inherit;
  cursor: pointer;
}
.portrait-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(56px, 8vw, 84px);
  line-height: 1;
  background: linear-gradient(135deg, var(--paper-2) 0%, #E5DDD0 100%);
}
.portrait-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.portrait-card:hover .portrait-img img { transform: scale(1.05); }
.portrait-img:has(img)::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0) 50%);
}

.portrait-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portrait-body h3,
.portrait-body h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 160ms;
}
.portrait-card:hover h3,
.portrait-card:hover h4 { color: var(--accent); }
.portrait-body .role,
.portrait-body > .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.portrait-body p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 6px;
}

.portraits-cta {
  text-align: center;
  padding: var(--s-6) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.portraits-cta h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.portraits-cta p {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: var(--s-2);
}

/* ════════════════════════════════════════════════════════════════
   ADMIN — pages/admin-*.html (login, dashboard, analytics)
   ════════════════════════════════════════════════════════════════ */
.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(700px 400px at 20% 30%, rgba(30, 64, 175, 0.06), transparent 60%),
    var(--paper);
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100dvh;
}

/* Mobile hamburger (hidden on desktop, shown via @media below) */
.admin-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  flex: none;
}
.admin-sidebar-overlay { display: none; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }

  /* Sidebar becomes an off-canvas app drawer instead of stacking in-flow
     (that's what pushed all page content below the fold on mobile). */
  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 84vw;
    max-width: 320px;
    height: 100dvh;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    padding-top: max(var(--s-4), env(safe-area-inset-top));
    padding-bottom: max(var(--s-4), env(safe-area-inset-bottom));
    box-shadow: var(--shadow-3);
  }
  .admin-sidebar-open .admin-sidebar { transform: translateX(0); }

  .admin-sidebar-overlay {
    display: block;
    position: fixed; inset: 0;
    background: rgba(10, 14, 23, 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  .admin-sidebar-open .admin-sidebar-overlay { opacity: 1; pointer-events: auto; }

  .admin-menu-btn { display: inline-flex; }

  .admin-main { padding: var(--s-3) var(--s-3) calc(var(--s-4) + env(safe-area-inset-bottom)); }
}

.admin-sidebar {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.admin-brand {
  display: flex; align-items: center; gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px;
}
.admin-brand-copy {
  display: flex; flex-direction: column; gap: 2px;
}
.admin-brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.admin-brand-copy span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
}

.admin-nav { display: flex; flex-direction: column; gap: var(--s-3); }
.admin-nav-section { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.4);
  padding: 0 8px;
  margin-bottom: 4px;
}
.admin-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.admin-sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-sidebar-link.is-active,
.admin-sidebar-link.active {
  background: var(--accent); color: #fff;
}
.admin-nav-section a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: background 160ms, color 160ms;
}
.admin-nav-section a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-section a.is-active,
.admin-nav-section a.active {
  background: var(--accent); color: #fff;
}
.admin-sidebar-footer {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.admin-main {
  padding: var(--s-4) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) {
  .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--paper);
    padding-top: max(var(--s-3), env(safe-area-inset-top));
    margin: calc(var(--s-3) * -1) calc(var(--s-3) * -1) 0;
    padding-left: var(--s-3);
    padding-right: var(--s-3);
  }
  .admin-topbar > div:first-child { display: flex; align-items: center; gap: var(--s-3); }
}
.admin-topbar h1 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.admin-content-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.admin-topbar-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-search {
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 14px;
  min-width: 240px;
  outline: none;
}
.admin-search:focus { border-color: var(--accent); background: var(--surface); }
.admin-select-wrap { position: relative; display: inline-block; }
.admin-select-wrap select {
  padding: 10px 32px 10px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 13px;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
}
.admin-select-wrap::after {
  content: '▾';
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px; color: var(--ink-mute);
  pointer-events: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-3);
  align-items: start;
}
@media (max-width: 1024px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: var(--s-5);
}
.admin-panel-header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
}
.admin-panel-header h2,
.admin-panel-header h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
}

.admin-toolbar {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 640px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-search { min-width: 0; width: 100%; }
  .admin-select-wrap,
  .admin-select-wrap select { width: 100%; }
}
.admin-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 160ms;
}
.admin-chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

.admin-row {
  display: grid;
  grid-template-columns: 1fr 120px 90px;
  gap: var(--s-3); align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}
.admin-row:last-child { border-bottom: 0; }
.admin-row.head {
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
@media (max-width: 640px) {
  .admin-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title actions"
      "status status";
    row-gap: 8px;
  }
  .admin-row.head { display: none; }
  .admin-row .admin-content-title { grid-area: title; }
  .admin-row .admin-actions { grid-area: actions; }
  .admin-row > div:nth-child(2) { grid-area: status; }
}

.admin-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 768px) { .admin-editor-fields { grid-template-columns: 1fr; } }
.admin-editor-fields > .full,
.admin-editor-fields > .span-2 { grid-column: 1 / -1; }

.admin-editor-actions {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.admin-editor-message {
  padding: var(--s-3);
  border-radius: var(--r-md);
  font-size: 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  display: none;
}
.admin-editor-message.success { display: block; background: #ECFDF5; color: #065F46; border-left-color: #10B981; }
.admin-editor-message.error   { display: block; background: #FEF2F2; color: #991B1B; border-left-color: #EF4444; }

.admin-actions { display: inline-flex; gap: 6px; }

.admin-btn {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: 0;
  transition: all 200ms;
}
.admin-btn-primary { background: var(--ink); color: var(--paper); }
.admin-btn-primary:hover { background: var(--accent); }
.admin-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.admin-btn-ghost:hover { background: var(--ink); color: var(--paper); }
.admin-btn-danger { background: #B91C1C; }
.admin-btn-danger:hover { background: #7F1D1D; }
.admin-btn-success { background: #047857; }
.admin-btn-success:hover { background: #065F46; }

/* Admin login (variantes) */
.admin-login-form { display: flex; flex-direction: column; gap: var(--s-3); }
.admin-auth-note {
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.admin-auth-note a { color: var(--accent); text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   UTILITAIRES DIVERS — anx-tabs (admin analytics), status-pill, etc.
   ════════════════════════════════════════════════════════════════ */
.anx-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.anx-tab {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 160ms;
}
.anx-tab:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.anx-tab.is-active,
.anx-tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.anx-empty {
  text-align: center;
  padding: var(--s-6) var(--s-3);
  color: var(--ink-mute);
  font-size: 14px;
  font-style: italic;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink);
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ink-mute);
  border-radius: 50%;
}
.status-pill.is-active,
.status-pill.published,
.status-pill.success { background: #ECFDF5; color: #065F46; }
.status-pill.is-active::before,
.status-pill.published::before,
.status-pill.success::before { background: #10B981; }
.status-pill.draft,
.status-pill.warning { background: #FEF3C7; color: #92400E; }
.status-pill.draft::before,
.status-pill.warning::before { background: #F59E0B; }
.status-pill.archived,
.status-pill.error,
.status-pill.urgent { background: #FEF2F2; color: #991B1B; }
.status-pill.archived::before,
.status-pill.error::before,
.status-pill.urgent::before { background: #EF4444; }
.status-pill.review { background: #EFF6FF; color: #1E40AF; }
.status-pill.review::before { background: #3B82F6; }

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-4);
}
.page-head h1,
.page-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Deals : variantes layout (utilisées sur certaines fiches deal détaillées) */
.deals-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-5);
}
@media (max-width: 1024px) { .deals-layout { grid-template-columns: 1fr; } }
.deals-list { display: flex; flex-direction: column; gap: var(--s-3); }
.deals-panel {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}

/* ════════════════════════════════════════════════════════════════
   TERRITORY MAP — quand la carte est utilisée hors home (commune.php,
   carte-territoire.html). Sur fond clair, pas dark comme dans .map-v4-card.
   ════════════════════════════════════════════════════════════════ */
.territory-map-canvas {
  position: relative;
  width: 100%;
  min-height: 360px;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: var(--s-3);
}
.territory-map-canvas .territory-map-svg { width: 100%; height: auto; display: block; }
.territory-map-canvas .territory-map-loading,
.territory-map-canvas .territory-map-error {
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  padding: var(--s-3);
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 14px;
  text-align: center;
}
/* Communes (claires) */
.territory-map-canvas .territory-commune {
  fill: #ECE7DC;
  stroke: var(--surface);
  stroke-width: 0.8;
  transition: fill 200ms, filter 200ms;
}
.territory-map-canvas .territory-commune.is-context {
  fill: #E8E2D7;
  opacity: 0.6;
}
.territory-map-canvas .territory-commune.is-covered {
  fill: #BFDBFE;
  cursor: pointer;
}
.territory-map-canvas .territory-commune.is-covered:hover {
  fill: var(--accent);
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.25));
}
.territory-map-canvas .territory-commune.active {
  fill: var(--accent);
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.35));
}
.territory-map-canvas .territory-commune:focus-visible {
  outline: none;
  stroke: #F59E0B; stroke-width: 2;
}
.territory-map-canvas .territory-label {
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.5px;
  stroke-linejoin: round;
}

/* ════════════════════════════════════════════════════════════════
   COMMUNE V2 — fiche encyclopédique (carte d'identité, histoire,
   maires, cartes patrimoine, occupation des sols, statistiques,
   contenus liés, newsletter de commune)
   ════════════════════════════════════════════════════════════════ */

.commune-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.badge-soft {
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-soft i { color: var(--accent); }

.commune-lead p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-variation-settings: 'opsz' 24;
}
.commune-lead p + p { margin-top: var(--s-2); }

.commune-hero-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .commune-hero-stats { grid-template-columns: 1fr 1fr; } }

.commune-card h2 i,
.commune-card h3 i {
  color: var(--accent);
  font-size: 0.72em;
  margin-right: 8px;
  vertical-align: 2px;
}

.commune-prose p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}
.commune-prose p + p { margin-top: var(--s-3); }

.commune-source {
  font-size: 12.5px !important;
  color: var(--ink-mute) !important;
  border-top: 1px solid var(--rule);
  padding-top: var(--s-2);
}
.commune-source a { color: var(--accent); text-decoration: underline; }

/* ── Carte d'identité ─────────────────────────────────────────── */
.commune-identity {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-2);
}
.commune-identity-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.commune-identity-item > i {
  color: var(--accent);
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}
.commune-identity-item span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.commune-identity-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 2px;
}

/* ── Blocs dépliables ─────────────────────────────────────────── */
.commune-details {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}
.commune-details > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-3) var(--s-4);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 180ms var(--ease-out);
}
.commune-details > summary::-webkit-details-marker { display: none; }
.commune-details > summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  margin-left: auto;
  color: var(--ink-mute);
  transition: transform 200ms var(--ease-out);
}
.commune-details[open] > summary::after { transform: rotate(180deg); }
.commune-details > summary:hover { background: var(--paper-2); }
.commune-details > summary i { color: var(--accent); }
.commune-details > *:not(summary) {
  padding: 0 var(--s-4) var(--s-4);
}
.commune-details-hint {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  margin-left: 4px;
}
@media (max-width: 560px) { .commune-details-hint { display: none; } }
.commune-subdetails { background: var(--surface); margin-top: var(--s-3); }

/* ── Maires ───────────────────────────────────────────────────── */
.commune-mayor-current {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.06), rgba(124, 58, 237, 0.05));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}
.commune-mayor-photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-1);
}
.commune-mayor-photo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--accent);
  font-size: 26px;
}
.commune-mayor-role {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.commune-mayor-current strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2px 0 4px;
}
.commune-mayor-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.commune-mayor-meta em {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  margin-right: 8px;
}

.commune-mayors {
  list-style: none;
  counter-reset: none;
  display: flex;
  flex-direction: column;
}
.commune-mayors li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  align-items: baseline;
}
.commune-mayors li:last-child { border-bottom: 0; }
.commune-mayors li.is-current { background: rgba(30, 64, 175, 0.04); }
@media (max-width: 640px) {
  .commune-mayors li { grid-template-columns: 1fr; }
}
.commune-mayor-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.commune-mayor-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.commune-mayor-party {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.commune-mayor-quality {
  grid-column: 2 / -1;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.commune-mairie-block {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.commune-mairie-block .commune-logo {
  position: static;
  width: 52px; height: 52px;
  box-shadow: none;
}

/* ── État vide + CTA ──────────────────────────────────────────── */
.commune-empty {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-4);
  border: 1px dashed var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.commune-empty > i {
  font-size: 22px;
  color: var(--accent);
  background: var(--surface);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-1);
}
.commune-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.commune-empty p {
  font-size: 14px !important;
  line-height: 1.6;
  margin-bottom: var(--s-3);
}
.commune-empty .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ── Cartes lieux et patrimoine ───────────────────────────────── */
.commune-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s-3);
}
.commune-place-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.commune-place-card:hover,
.commune-place-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  outline: none;
}
.commune-place-card img,
.commune-place-noimg {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.commune-place-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 2;
  font-size: 24px;
  color: var(--accent);
  opacity: 0.45;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
}
.commune-place-body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.commune-place-body h3 {
  font-family: var(--serif);
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.commune-place-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Occupation des sols ──────────────────────────────────────── */
.commune-landuse {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.commune-landuse-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 64px;
  gap: var(--s-3);
  align-items: center;
  font-size: 14px;
}
@media (max-width: 560px) {
  .commune-landuse-row { grid-template-columns: 1fr 56px; }
  .commune-landuse-bar { grid-column: 1 / -1; order: 3; }
}
.commune-landuse-label { color: var(--ink-soft); }
.commune-landuse-bar {
  height: 10px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.commune-landuse-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-env), var(--accent));
}
.commune-landuse-value {
  font-family: var(--serif);
  font-weight: 600;
  text-align: right;
}

/* ── Statistiques : courbe + pyramide ─────────────────────────── */
.commune-stats-card { padding: var(--s-4); }
.commune-stats-details h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-top: var(--s-4);
  padding: 0;
}
.commune-chart {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-top: var(--s-2);
}
.commune-chart svg { width: 100%; height: 180px; }
.commune-chart-area { fill: rgba(30, 64, 175, 0.12); stroke: none; }
.commune-chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.commune-chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: var(--s-2);
}
.commune-chart-legend strong { color: var(--ink); font-family: var(--serif); }

.commune-pop-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
}
.commune-pop-table span {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 8px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
}
.commune-pop-table em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}

.commune-pyramid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--s-2);
}
.commune-pyramid-head,
.commune-pyramid-row {
  display: grid;
  grid-template-columns: 1fr 108px 1fr;
  gap: var(--s-2);
  align-items: center;
}
.commune-pyramid-head span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-align: center;
}
.commune-pyramid-head span:first-child { text-align: right; }
.commune-pyramid-head span:last-child { text-align: left; }
.commune-pyramid-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.commune-pyramid-side {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
}
.commune-pyramid-side i {
  display: block;
  height: 100%;
  border-radius: var(--r-sm);
}
.commune-pyramid-side b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-mute);
  font-family: var(--serif);
}
.commune-pyramid-side.left { flex-direction: row-reverse; }
.commune-pyramid-side.left i { background: linear-gradient(270deg, var(--c-mobil), #60A5FA); }
.commune-pyramid-side.right i { background: linear-gradient(90deg, var(--c-solid), #F9A8D4); }

/* ── Contenus liés (agenda, assos, commerces, actus) ──────────── */
.commune-linked-list {
  display: flex;
  flex-direction: column;
}
.commune-linked-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-bottom: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: background 180ms var(--ease-out);
}
.commune-linked-item:last-child { border-bottom: 0; }
.commune-linked-item:hover { background: var(--paper); }
.commune-linked-item > i:last-child { color: var(--accent); font-size: 13px; margin-left: auto; }
.commune-linked-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.commune-linked-body strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.commune-linked-body > span {
  font-size: 12.5px;
  color: var(--ink-mute);
}
.commune-linked-date {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  padding: 6px 0;
}
.commune-linked-date strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.commune-linked-date em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.commune-linked-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.commune-linked-thumb {
  width: 64px; height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.commune-premium { color: #D97706; font-size: 12px; }

.commune-bullets { display: flex; flex-direction: column; gap: var(--s-2); }
.commune-bullets li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.commune-bullets li i { color: var(--accent); margin-top: 5px; font-size: 11px; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.commune-toc { position: sticky; top: 96px; }
.commune-toc ul { display: flex; flex-direction: column; }
.commune-toc li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  transition: color 160ms, padding-left 160ms var(--ease-out);
}
.commune-toc li:last-child a { border-bottom: 0; }
.commune-toc li a:hover { color: var(--accent); padding-left: 6px; }
.commune-side-links { display: flex; flex-direction: column; gap: var(--s-2); }
.commune-side-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  transition: background 160ms, transform 160ms var(--ease-out);
}
.commune-side-links a i { color: var(--accent); width: 18px; }
.commune-side-links a:hover { background: var(--paper-2); transform: translateX(3px); }

/* ── Newsletter de commune ────────────────────────────────────── */
.commune-nl {
  margin-top: var(--s-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0A2540 0%, #1E40AF 55%, #4338CA 100%);
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-2);
}
.commune-nl-inner { max-width: 660px; }
.commune-nl .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}
.commune-nl h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: var(--s-2) 0 var(--s-2);
  color: #fff;
  text-wrap: balance;
}
.commune-nl p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.commune-nl-form {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.commune-nl-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
}
.commune-nl-form input::placeholder { color: rgba(255, 255, 255, 0.6); }
.commune-nl-form input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}
.commune-nl-form .btn { border-radius: var(--r-pill); padding: 14px 26px; }
.commune-nl-feedback {
  margin-top: var(--s-2);
  font-size: 13.5px;
  min-height: 18px;
  color: #BBF7D0;
}
.commune-nl-feedback.is-error { color: #FECACA; }

/* ── Modale lieux + popup newsletter ──────────────────────────── */
.commune-modal,
.commune-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
}
.commune-modal[hidden],
.commune-popup[hidden] { display: none; }
.commune-modal-backdrop,
.commune-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(3px);
}
.commune-modal-box,
.commune-popup-box {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: var(--s-5);
  animation: communeModalIn 260ms var(--ease-out);
}
@keyframes communeModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.commune-modal-box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
}
.commune-modal-box h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.commune-modal-box p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.commune-modal-source {
  margin-top: var(--s-3);
  font-size: 12px !important;
  color: var(--ink-mute) !important;
}
.commune-modal-source a { color: var(--accent); text-decoration: underline; }
.commune-modal-close,
.commune-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms;
  z-index: 2;
}
.commune-modal-close:hover,
.commune-popup-close:hover { background: var(--rule); }

.commune-popup-box {
  max-width: 480px;
  background: linear-gradient(150deg, #0A2540 0%, #1E40AF 60%, #4338CA 100%);
  color: #fff;
  text-align: left;
}
.commune-popup-box h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  margin: var(--s-2) 0;
  color: #fff;
}
.commune-popup-box p { color: rgba(255, 255, 255, 0.82); font-size: 14.5px; line-height: 1.6; }
.commune-popup-box .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
}
.commune-popup-close { background: rgba(255, 255, 255, 0.15); color: #fff; }
.commune-popup-close:hover { background: rgba(255, 255, 255, 0.28); }
.commune-popup-later {
  display: block;
  margin-top: var(--s-3);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
}
body.has-modal { overflow: hidden; }

/* Accueil : état vide avec appel à contribution */
.home-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5);
  border: 1px dashed var(--rule);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.home-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-empty p {
  margin-top: 6px;
  max-width: 60ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.home-empty .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Portraits sans photo : repère iconographique plutôt qu'un emoji */
.portrait-img-empty {
  font-size: clamp(38px, 5vw, 56px);
  color: var(--accent);
  opacity: 0.35;
}

/* Bloc d'appel à contribution générique (bons plans, partenariats, rubriques vides) */
.page-cta-block {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--rule);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.page-cta-block > div:first-child { max-width: 62ch; }
.page-cta-block h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--s-2) 0 var(--s-3);
}
.page-cta-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.page-cta-block p + p { margin-top: var(--s-2); }
.page-cta-block .badge { display: inline-flex; align-items: center; gap: 8px; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.page-cta-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.partnership-soon { margin-bottom: var(--s-6); }

/* ════════════════════════════════════════════════════════════════
   FICHE PRATIQUE (bloc :::pratique en fin d'article)
   Rendu par mdimport_render_pratique() : libellé + icône FontAwesome
   en colonne gauche, valeur à droite. Aucun emoji.
   ════════════════════════════════════════════════════════════════ */
.article-content .article-aside--pratique {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-4) var(--s-3);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
/* Filet coloré sur le bord gauche, à la couleur d'accent de la page */
.article-content .article-aside--pratique::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.article-aside--pratique .aside-kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}
.pratique-list { display: grid; gap: 0; margin: 0; }
.pratique-row {
  display: grid;
  grid-template-columns: minmax(140px, 190px) 1fr;
  gap: var(--s-3);
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.pratique-row:first-child { border-top: 0; padding-top: 0; }
.pratique-row dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pratique-row dt i {
  flex: none;
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--accent);
}
.pratique-row dt i.pratique-icon--none { color: var(--rule); }
.pratique-row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.pratique-row dd strong { color: var(--ink); font-weight: 600; }
.pratique-subhead {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-3) 0 var(--s-2);
}
.pratique-note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
  margin: var(--s-2) 0 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
}
@media (max-width: 640px) {
  .pratique-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .pratique-row dd { font-size: 15px; }
}

/* ════════════════════════════════════════════════════════════════
   ABSENCE D'ILLUSTRATION
   Aucune image générique : on rend une vignette typographique
   à la place, et le hero d'article passe en pleine largeur.
   ════════════════════════════════════════════════════════════════ */
.visual-empty {
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 140px;
  height: 100%;
  padding: var(--s-3);
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--paper-2) 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  border-radius: inherit;
  overflow: hidden;
}
.visual-empty img { display: none; }
.visual-empty-label {
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--ink) 55%, var(--paper));
  font-variation-settings: 'opsz' 40;
  line-height: 1.2;
}
/* Fines rayures diagonales : occupe l'espace sans imiter une photo */
.visual-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 9px,
    color-mix(in srgb, var(--ink) 4%, transparent) 9px 10px
  );
  pointer-events: none;
}
.visual-empty { position: relative; }
.visual-empty .badge { position: relative; z-index: 1; }

/* Hero d'article sans bannière : la colonne texte prend toute la largeur */
.article-hero-grid--noimage { grid-template-columns: 1fr; }
.article-hero-grid--noimage .article-hero-copy { max-width: 76ch; }
.article-hero-grid--noimage .article-hero-copy h1 { font-size: clamp(34px, 6vw, 62px); }

/* Lien « Ajouter à mon agenda » sur les cartes d'événement */
.e-cal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--s-2);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.e-cal:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.e-cal i { font-size: 12px; }

/* Libellé sans icône : on réserve la gouttière pour garder l'alignement */
.pratique-row dt i.pratique-icon--none {
  display: inline-block;
  width: 16px;
  height: 1px;
}
