﻿@import url('./bib/fonts/fonts.css');

:root {
  --panel: #ffffff;
  --ink: #0c3c76;
  --muted: #4c6a8a;
  --brand-blue: #0b4f9c;
  --brand-blue-2: #0d67b2;
  --brand-orange: #ef6c00;
  --brand-green: #3d8f42;
  --line: #d9e4f0;
  --shadow: 0 12px 32px rgba(11, 79, 156, 0.14);
  --radius: 18px;
  --sidebar-w: 360px;
  --sidebar-collapsed: 88px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 82% 5%, #d7ebff 0%, transparent 34%),
    radial-gradient(circle at 10% 0%, #ffe8d5 0%, transparent 28%),
    linear-gradient(135deg, #f6f9fd 0%, #eef4fb 45%, #f4f8fd 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.3s ease;
}

.sidebar {
  background: linear-gradient(180deg, #0b4f9c 0%, #0a427f 52%, #08386b 100%);
  color: #effaf5;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.sidebar-close {
  display: none;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 4px 14px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.sidebar-logo-link {
  display: block;
  width: 100%;
}

.sidebar-logo img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
}

.active-commune {
  margin: 0 6px 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #e9f3ff;
  font-size: 12px;
  line-height: 1.35;
}

.active-commune strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cddff3;
  margin-bottom: 4px;
}

.active-commune span {
  display: block;
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
}

.active-commune-empty-link {
  display: block;
  text-decoration: none;
}

.active-commune-empty-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.active-commune-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.active-commune-armoiries {
  display: inline-block;
  margin: 0;
  max-width: 44px;
  max-height: 48px;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.active-commune-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.6);
}

.active-commune-link:hover {
  color: #ffe0bf;
  border-bottom-color: #ffe0bf;
}

.hamburger {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: none;
  place-items: center;
  margin-bottom: 0;
  font-size: 20px;
}

.menu-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d0e0f1;
  margin: 6px 12px 16px;
}

.menu-divider {
  height: 1px;
  margin: 8px 10px 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.14));
}

.menu-user {
  margin: 0 10px 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #f2f8ff;
}

.menu-user strong {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #d7e7f9;
  margin-bottom: 4px;
}

.menu-user span {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.menu-user-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-user-medal {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-user-medal svg {
  display: block;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

.menu-user-medal:hover svg {
  transform: scale(1.06);
}

.menu-user-medal-popup {
  position: fixed;
  left: 50%;
  top: 120px;
  transform: translateX(-50%);
  z-index: 3600;
  width: min(92vw, 420px);
  border: 1px solid #cfdeed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(11, 79, 156, 0.26);
}

.menu-user-medal-popup.is-hidden {
  display: none;
}

.menu-user-medal-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #dfebf7;
  background: linear-gradient(120deg, #0b4f9c, #0d67b2);
  color: #ffffff;
  border-radius: 16px 16px 0 0;
  cursor: move;
}

.menu-user-medal-popup-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.menu-user-medal-popup-body {
  padding: 16px;
  color: #1b365d;
  line-height: 1.5;
}

.menu-user-medal-popup-body p {
  margin: 0;
}

.menu-user-line span {
  flex: 1;
  min-width: 0;
}

.menu-user-actions {
  margin-top: 0;
  margin-left: auto;
}

.menu-user-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #ef6c00;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  position: relative;
}

.menu-user-actions a:hover {
  background: #ff8f26;
  color: #ffffff;
}

.menu-user-actions a::after {
  content: attr(data-label);
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #0b4f9c;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #d9e4f0;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.menu-user-actions a:hover::after {
  opacity: 1;
  visibility: visible;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.menu a {
  text-decoration: none;
  color: #ecf7f2;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.menu a:hover,
.menu a.active {
  background: rgba(239, 108, 0, 0.24);
}

.icon {
  width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  line-height: 1.5;
}

.content {
  padding: 18px 20px 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-width: 0;
}

.topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2px 16px;
  display: block;
  position: relative;
  overflow: hidden;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-blue), var(--brand-green));
}

.search {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  gap: 10px;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  height: 52px;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.top-ticker-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
}

.top-ticker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.top-ticker-label-logo {
  display: block;
  height: 52px;
  width: auto;
}

.top-ticker {
  position: relative;
  min-height: 42px;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
  overflow: hidden;
}

.top-ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  height: 42px;
  animation: topTickerLoop 34s linear infinite;
  will-change: transform;
}

.top-ticker-seq {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-ticker-item {
  display: inline-flex;
  align-items: center;
  height: 42px;
  white-space: nowrap;
  color: #0b4f9c;
  font-weight: 700;
  text-decoration: none;
  padding: 0 12px 0 0;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.top-ticker-item::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 26px;
  margin-left: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef6c00 0%, #0b4f9c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 0 10px rgba(11, 79, 156, 0.22);
  flex-shrink: 0;
}

.top-ticker-item:hover {
  color: #ef6c00;
}

.top-ticker-item.is-empty {
  padding: 0 10px;
  color: #4c6a8a;
}

.top-ticker-item.is-empty::after {
  display: none;
}

@keyframes topTickerLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.feed-search-form input[type="text"],
.feed-search-form input[type="search"],
#inscription_recherche_commune,
#commune_active_recherche,
#user-form-commune-search,
#user-form-type-search {
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 16px;
  border: 1px solid var(--line);
}

.feed-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}

.feed-refresh-submit {
  font-size: 20px;
}

.feed-search-submit:visited,
.feed-search-submit:hover,
.feed-search-submit:active,
.feed-search-submit:focus {
  text-decoration: none;
  color: var(--ink);
}

.feed-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #9db7d3;
  background: linear-gradient(180deg, #f4f9ff 0%, #e4f0ff 100%);
  color: #0b4f9c;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(11, 79, 156, 0.16);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.feed-pagination-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
  box-shadow: 0 4px 12px rgba(11, 79, 156, 0.24);
  transform: translateY(-1px);
}

.notif {
  border: 0;
  background: linear-gradient(120deg, var(--brand-orange), #ff8f26);
  color: #fff;
  border-radius: 14px;
  height: 44px;
  min-width: 112px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  min-height: 0;
}

.site-footer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer-links,
.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer-links a,
.site-store-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #c6d8ec;
  background: #ffffff;
  color: #0b4f9c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

button.site-store-link {
  font-family: inherit;
  cursor: pointer;
}

.site-footer-links a:hover,
.site-store-link:hover {
  background: #ebf3ff;
}

.site-footer-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2b68f;
  background: #fff4e8;
  color: #8a4819;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.site-footer-btn:hover {
  background: #ffe8d3;
}

.cookie-notice {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3700;
}

.cookie-notice.is-hidden {
  display: none;
}

.cookie-notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #cfe0f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 48px rgba(11, 79, 156, 0.18);
  backdrop-filter: blur(10px);
}

.cookie-notice-text {
  min-width: 0;
}

.cookie-notice-text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}

.cookie-notice-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-notice-text a {
  color: var(--brand-blue);
  font-weight: 700;
}

.cookie-notice-actions {
  flex: 0 0 auto;
}

.site-store-android {
  background: #ebfff0;
  border-color: #bfe3c7;
  color: #166b31;
}

.site-store-android:hover {
  background: #d8f8e1;
}

.site-store-ios {
  background: #eef4ff;
  border-color: #c5d5f6;
  color: #1f4f8f;
}

.site-store-ios:hover {
  background: #e0ebff;
}

.site-contact-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3500;
  width: min(92vw, 520px);
  border: 1px solid #cfdeed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(11, 79, 156, 0.26);
}

.site-contact-popup.is-hidden {
  display: none;
}

.site-contact-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #dfebf7;
  background: linear-gradient(120deg, #0b4f9c, #0d67b2);
  color: #ffffff;
  border-radius: 16px 16px 0 0;
  cursor: move;
}

.site-contact-popup-close {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.site-contact-popup-body {
  padding: 14px;
}

.site-contact-form {
  display: grid;
  gap: 8px;
}

.site-contact-form label {
  font-size: 13px;
  font-weight: 700;
}

.site-contact-form input,
.site-contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font-family: inherit;
}

.site-contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.site-contact-form button {
  margin-top: 4px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-contact-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feed,
.top10 {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-head .section-title {
  margin: 0;
}

.feed-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-count {
  font-size: 13px;
  color: #1f7a33;
  white-space: nowrap;
}

.post {
  border: 1px solid #d6e2ef;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 6px 16px rgba(13, 103, 178, 0.08);
}

.post.feed-publication-card {
  position: relative;
  background-color: #fff4e8 !important;
  background-image: linear-gradient(180deg, #fff9f2 0%, #ffe9d1 100%) !important;
  border: 4px solid #000000;
  box-shadow: 0 10px 20px rgba(239, 140, 58, 0.18);
  padding-left: 14px;
  padding-right: 14px;
}

.post.feed-publication-card.is-focus-target {
  border-color: #0b4f9c;
  box-shadow: 0 0 0 4px rgba(11, 79, 156, 0.18), 0 18px 34px rgba(11, 79, 156, 0.22);
  animation: feedPublicationFocusPulse 2.4s ease-out 1;
}

@keyframes feedPublicationFocusPulse {
  0% {
    transform: translateY(10px) scale(0.99);
    box-shadow: 0 0 0 0 rgba(11, 79, 156, 0.28), 0 12px 24px rgba(11, 79, 156, 0.16);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 4px rgba(11, 79, 156, 0.18), 0 18px 34px rgba(11, 79, 156, 0.22);
  }
}

.post.feed-publication-card > .reaction-bar {
  position: absolute;
  top: 12px;
  right: 12px;
  margin-top: 0;
}

.post.feed-publication-card .publication-title,
.post.feed-publication-card .post-meta {
  padding-right: 195px;
}

.post.feed-publication-card .post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post.feed-publication-card .post-meta-main {
  min-width: 0;
}

.post.feed-publication-card .post-meta-type {
  margin-left: auto;
  margin-right: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post.feed-publication-card .post-meta-type .tag {
  background: #fff1e5;
  color: #bb5600;
  border-color: #ffd4b0;
}

.post.feed-publication-card .post-meta-gps {
  position: absolute;
  top: 52px;
  right: 56px;
  margin: 0;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(233, 243, 255, 0.92);
  border: 1px solid rgba(31, 78, 140, 0.25);
  font-size: 11px;
  color: #1b5e95;
  font-weight: 700;
  line-height: 1.2;
}

.publication-map-btn {
  position: absolute;
  top: 52px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 2px solid #1f4e8c;
  border-radius: 10px;
  background: #e9f3ff;
  color: #0b4f9c;
  font-size: 18px;
  cursor: pointer;
}

.publication-map-btn.no-reactions {
  top: 12px;
}

.publication-map-btn:hover {
  background: #dcecff;
}

.publication-pro-btn {
  position: absolute;
  top: 94px;
  right: 12px;
  min-height: 34px;
  border: 2px solid #8a4b13;
  border-radius: 10px;
  background: #fff0dc;
  color: #8a4b13;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 10px;
}

.publication-pro-btn:hover {
  background: #ffe5c6;
}

.publication-pro-inline {
  position: absolute;
  top: 52px;
  right: 52px;
  display: grid;
  justify-items: end;
  gap: 2px;
}

.publication-pro-inline .publication-pro-btn {
  position: static;
  top: auto;
  right: auto;
}

.publication-pro-dates {
  display: inline-block;
  max-width: 220px;
  color: #2e7d32;
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.publication-map-popup {
  position: fixed;
  top: 110px;
  right: 24px;
  width: min(640px, calc(100vw - 24px));
  z-index: 1210;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.publication-map-popup.is-hidden {
  display: none;
}

.publication-map-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #ffffff;
  cursor: move;
}

.publication-map-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.publication-map-popup-body {
  padding: 12px;
}

.publication-map-view {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #eef4fb;
}

#publication-map-popup-coords {
  display: block;
  margin-top: 8px;
  color: #1b5e95;
  font-weight: 600;
}

.publication-pro-popup {
  position: fixed;
  top: 96px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  z-index: 1265;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.publication-pro-popup.is-hidden {
  display: none;
}

.publication-pro-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #8a4b13;
  color: #ffffff;
  cursor: move;
}

.publication-pro-popup-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.publication-pro-popup-body {
  padding: 12px;
}

.publication-pro-wallet-row {
  margin-bottom: 10px;
  color: #8a4b13;
  font-weight: 700;
}

.publication-pro-popup-message {
  min-height: 22px;
  margin-bottom: 10px;
  font-size: 13px;
}

.publication-pro-popup-message.is-error {
  color: #b3261e;
  font-weight: 700;
}

.publication-pro-popup-message.is-success {
  color: #1f7a33;
  font-weight: 700;
}

.publication-pro-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.publication-pro-calendar-nav {
  width: 36px;
  height: 36px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #ffffff;
  color: #0b4f9c;
  cursor: pointer;
}

.publication-pro-calendar-weekdays,
.publication-pro-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.publication-pro-calendar-weekdays {
  margin-bottom: 6px;
  color: #5f7c9a;
  font-size: 12px;
  font-weight: 700;
}

.publication-pro-calendar-weekdays span {
  text-align: center;
}

.publication-pro-calendar-empty,
.publication-pro-calendar-day {
  min-height: 82px;
  border-radius: 10px;
}

.publication-pro-calendar-empty {
  background: transparent;
}

.publication-pro-calendar-day {
  border: 1px solid #d6e2ef;
  background: #ffffff;
  text-align: left;
  padding: 8px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
}

.publication-pro-calendar-day:hover {
  background: #eef6ff;
  border-color: #a9c7e8;
}

.publication-pro-calendar-day strong {
  color: #0b4f9c;
}

.publication-pro-calendar-day span {
  color: #5f7c9a;
  font-size: 12px;
}

.publication-pro-calendar-day.is-selected {
  background: #e7f6ea;
  border-color: #7fc28d;
}

.publication-pro-calendar-day.is-reserved {
  background: #fff0cf;
  border-color: #e0ad45;
}

.publication-pro-calendar-day.is-reserved strong,
.publication-pro-calendar-day.is-reserved span {
  color: #8f5d00;
}

.publication-pro-calendar-day.is-locked {
  background: #fbfbfb;
  border-color: #ececec;
  cursor: not-allowed;
  opacity: 0.52;
}

.publication-pro-calendar-day.is-reserved.is-locked {
  background: #ffe7b0;
  border-color: #d89b1f;
  opacity: 1;
}

.publication-pro-calendar-day.is-reserved.is-locked strong,
.publication-pro-calendar-day.is-reserved.is-locked span {
  color: #8f5d00;
}

.publication-pro-calendar-day.is-locked strong,
.publication-pro-calendar-day.is-locked span {
  color: #c7c7c7;
}

.publication-pro-validate-btn {
  margin-top: 12px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, #8a4b13, #bf6a1c);
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
}

.post.mes-publication-card {
  background-color: #fff4e8 !important;
  background-image: linear-gradient(180deg, #fff9f2 0%, #ffe9d1 100%) !important;
  border: 4px solid #000000 !important;
  box-shadow: 0 10px 20px rgba(239, 140, 58, 0.18) !important;
  padding-left: 14px;
  padding-right: 14px;
}

.post:last-child {
  margin-bottom: 0;
}

.post h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--brand-blue);
}

.presentation-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.presentation-item-head h3 {
  margin: 0;
}

.presentation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(10, 66, 127, 0.18);
  flex: 0 0 30px;
}

.presentation-badge-blue {
  background: linear-gradient(135deg, #0a427f 0%, #1d6ed1 100%);
}

.presentation-badge-orange {
  background: linear-gradient(135deg, #ef8c3a 0%, #f7b45b 100%);
}

.presentation-badge-green {
  background: linear-gradient(135deg, #1f7a33 0%, #44b85f 100%);
}

.presentation-badge-yellow {
  background: linear-gradient(135deg, #c58a00 0%, #e7b92f 100%);
}

.presentation-badge-red {
  background: linear-gradient(135deg, #ba3f2d 0%, #e36a57 100%);
}

.presentation-badge-sky {
  background: linear-gradient(135deg, #0f7c95 0%, #33a9c7 100%);
}

.presentation-badge-purple {
  background: linear-gradient(135deg, #6650b8 0%, #8a73dc 100%);
}

.presentation-badge-teal {
  background: linear-gradient(135deg, #0d7f72 0%, #25b6a5 100%);
}

.presentation-badge-coral {
  background: linear-gradient(135deg, #d35a45 0%, #ef8c72 100%);
}

.presentation-badge-indigo {
  background: linear-gradient(135deg, #4057b2 0%, #6d84df 100%);
}

.presentation-badge-rose {
  background: linear-gradient(135deg, #b23a6b 0%, #da6b98 100%);
}

.publication-title {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #0a427f;
  color: #ffffff !important;
  border: 1px solid #08386b;
}

.post p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.mes-amis-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.mes-amis-link-card:visited,
.mes-amis-link-card:hover,
.mes-amis-link-card:active,
.mes-amis-link-card:focus {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.mes-amis-link-card:hover {
  background: #f7fbff;
  border-color: #c9dff4;
}

.post-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.publication-author-link {
  color: #0b4f9c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publication-author-link:hover {
  color: #08386b;
}

.post-photo-wrap {
  margin: 0 0 10px;
}

.post-photo-gallery {
  margin: 0 0 10px;
}

.post-photo-gallery .post-photo-wrap {
  margin: 0 0 8px;
}

.post-photo-main-open {
  display: block;
  width: 100%;
  max-width: 560px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.post-photo-main-open .post-photo-main-image {
  width: 100%;
  height: auto;
  max-width: 560px;
  max-height: 380px;
  object-fit: cover;
}

.post-photo-thumbs-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-photo-nav {
  width: 30px;
  height: 30px;
  border: 1px solid #9db7d3;
  border-radius: 8px;
  background: #f0f6fd;
  color: #0b4f9c;
  cursor: pointer;
  flex: 0 0 auto;
}

.post-photo-thumbs-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.post-photo-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  flex: 0 0 auto;
}

.post-photo-thumb img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}

.post-photo-thumb.is-active {
  border-color: #0b4f9c;
}

.post-photo {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d6e2ef;
  background: #f3f8fd;
}

.publication-image-popup {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 31, 46, 0.74);
}

.publication-image-popup.is-hidden {
  display: none;
}

.publication-image-popup-card {
  width: min(96vw, 1200px);
  max-height: calc(100vh - 40px);
  border-radius: 16px;
  border: 1px solid #b9cadb;
  background: #f8fbff;
  box-shadow: 0 30px 70px rgba(10, 34, 58, 0.34);
  overflow: hidden;
}

.publication-image-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #d6e2ef;
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  color: #143b62;
}

.publication-image-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publication-image-popup-zoom,
.publication-image-popup-close {
  width: 34px;
  height: 34px;
  border: 1px solid #b7cadf;
  border-radius: 10px;
  background: #ffffff;
  color: #1c466e;
  font-size: 18px;
  cursor: pointer;
}

.publication-image-popup-zoom[data-image-zoom="reset"] {
  width: auto;
  min-width: 58px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.publication-image-popup-body {
  max-height: calc(100vh - 110px);
  padding: 16px;
  overflow: auto;
  cursor: grab;
  background:
    linear-gradient(45deg, #edf4fb 25%, transparent 25%),
    linear-gradient(-45deg, #edf4fb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf4fb 75%),
    linear-gradient(-45deg, transparent 75%, #edf4fb 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.publication-image-popup-body.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.publication-image-popup-img {
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid #d6e2ef;
  background: #fff;
}

.post-gps {
  margin: 0 0 8px;
  font-size: 12px;
  color: #1b5e95;
  font-weight: 600;
}

.tag {
  display: inline-block;
  background: #fff1e5;
  color: #bb5600;
  border: 1px solid #ffd4b0;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.post-meta .tag {
  vertical-align: middle;
}

.post-comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3edf7;
}

.publication-moderation-banner {
  margin: 8px 0 12px;
  padding: 18px 16px;
  border: 2px solid #c84f4f;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff4f4 0%, #ffe6e6 100%);
  color: #9d1f1f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.post-comments h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
}

.post-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.post-comments-empty {
  color: var(--muted);
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}

.comment-item {
  position: relative;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #fcfeff;
}

.comment-item p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.comment-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.comment-photo-wrap {
  margin-top: 8px;
}

.comment-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #d6e2ef;
  background: #f3f8fd;
  display: block;
}

.comment-meta {
  margin: 0 0 5px;
  font-size: 12px;
  color: #5f7c9a;
}

.comment-replies {
  margin-top: 8px;
  margin-left: 18px;
  display: grid;
  gap: 6px;
}

.comment-reply-item {
  background: #f6fbff;
  border-color: #d7e7f7;
}

.comment-popup-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d8ea;
  border-radius: 10px;
  background: #f4f9ff;
  color: #235a8b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.comment-popup-open-btn:hover {
  background: #e7f1fb;
  border-color: #9db8d4;
}

.comment-reply-open-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.comment-reply-form {
  margin-top: 8px;
}

.reaction-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reaction-form {
  margin: 0;
}

.publication-id-inline {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  background: #eef3fa;
  border: 1px solid #d2ddea;
  color: #5a6c84;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.reaction-btn {
  height: 32px;
  border: 1px solid #84c79a;
  border-radius: 9px;
  background: #f2fbf4;
  color: #1f7a33;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  cursor: pointer;
}

.reaction-btn.active {
  background: #dff4e5;
  border-color: #4fa66b;
  color: #155d2a;
}

.reaction-btn.dislike {
  border-color: #e3a1a1;
  background: #fff4f4;
  color: #b42318;
}

.reaction-btn.dislike.active {
  background: #ffdede;
  border-color: #d24b4b;
  color: #8f1f1f;
}

.reaction-bar-readonly .reaction-btn {
  cursor: default;
  opacity: 1;
}

.publication-comment-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.publication-comment-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.publication-comment-form input[type="file"] {
  display: none;
}

.publication-comment-form button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 140px;
}

.publication-comment-popup {
  position: fixed;
  top: 108px;
  left: 50%;
  z-index: 1270;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 140px);
  border: 1px solid #cfdced;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 36, 64, 0.24);
  overflow: hidden;
  transform: translateX(-50%);
}

.publication-comment-popup.is-hidden {
  display: none;
}

.publication-comment-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f4c81, #2f77b7);
  color: #fff;
  cursor: move;
}

.publication-comment-popup-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
}

.publication-comment-popup-body {
  padding: 16px;
  overflow: auto;
}

.publication-comment-popup-form {
  margin-top: 0;
}

.publication-gps-block {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.publication-gps-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.publication-gps-field {
  min-width: 0;
}

.publication-gps-field label {
  display: block;
  margin-bottom: 6px;
}

.publication-gps-map-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 2px solid #1f4e8c;
  border-radius: 10px;
  background: #e9f3ff;
  color: #0b4f9c;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 2px;
}

.publication-gps-map-btn:hover {
  background: #dcecff;
}

.publication-gps-map-popup {
  position: fixed;
  top: 110px;
  right: 24px;
  width: min(640px, calc(100vw - 24px));
  z-index: 1220;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.publication-gps-map-popup.is-hidden {
  display: none;
}

.publication-gps-map-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #ffffff;
  cursor: move;
}

.publication-gps-map-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.publication-gps-map-popup-body {
  padding: 12px;
}

.publication-gps-map-view {
  width: 100%;
  min-height: 360px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #eef4fb;
}

#publication-gps-map-hint {
  display: block;
  margin-top: 8px;
  color: #1b5e95;
  font-weight: 600;
}

.auteur-profile-popup {
  position: fixed;
  top: 90px;
  right: 24px;
  width: min(420px, calc(100vw - 24px));
  z-index: 1200;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.nearest-commune-popup {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(11, 27, 48, 0.38);
}

.nearest-commune-popup.is-hidden {
  display: none;
}

.nearest-commune-popup-card {
  width: min(520px, calc(100vw - 32px));
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.nearest-commune-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(120deg, #0a427f, #1d6ed1);
  color: #ffffff;
}

.nearest-commune-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.nearest-commune-popup-body {
  padding: 16px 14px 8px;
}

.nearest-commune-popup-body p {
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.5;
}

.nearest-commune-popup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 14px 14px;
}

.nearest-commune-popup-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nearest-commune-popup-actions button[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.nearest-commune-popup-actions .nearest-commune-secondary {
  background: #e7edf5;
  color: #15314f;
}

.auteur-profile-popup.is-hidden {
  display: none;
}

.auteur-profile-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #ffffff;
  cursor: move;
}

.auteur-profile-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.auteur-profile-popup-body {
  padding: 12px;
}

.auteur-profile-popup-body p {
  margin: 0 0 8px;
  color: var(--ink);
}

.auteur-profile-popup-body p:last-child {
  margin-bottom: 0;
}

.follow-author-form {
  padding: 0 12px 12px;
}

.follow-author-form button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.publication-edit-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cfe0f1;
  display: grid;
  gap: 8px;
}

.publication-edit-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.publication-edit-form input,
.publication-edit-form select,
.publication-edit-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  width: min(100%, 560px);
  box-sizing: border-box;
  justify-self: start;
}

.publication-edit-form textarea {
  resize: vertical;
}

.publication-edit-draft-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.publication-edit-draft-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.publication-edit-form button {
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 260px;
}

.publication-edit-photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}

.publication-edit-photo-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.publication-edit-photo-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d6e2ef;
  background: #f3f8fd;
}

.publication-edit-photo-dropzone {
  margin-top: 6px;
}

.publication-edit-toggle-btn {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--brand-blue);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0 12px;
}

.mes-publication-card .publication-edit-toggle-btn {
  position: absolute;
  top: 128px;
  right: 52px;
  margin-top: 0;
  padding: 0 10px;
}

.mes-publication-card .comment-item {
  position: relative;
  padding-right: 154px;
}

.mes-publication-card .comment-tools {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mes-publication-card .comment-tools > .reaction-bar {
  margin-top: 0;
  gap: 4px;
}

.mes-publication-card .comment-tools .comment-reply-open-btn {
  flex: 0 0 auto;
}

.publication-edit-toggle-btn:hover {
  background: #f3f8ff;
}

.publication-draft-banner {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 2px solid #000000;
  border-radius: 8px;
  background: #ffe08a;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.publication-edit-panel.is-hidden {
  display: none;
}

.account-edit-toggle-btn {
  margin-bottom: 10px;
  height: 38px;
  border: 1px solid #bdd3ea;
  border-radius: 10px;
  background: #eef5ff;
  color: var(--brand-blue);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.account-edit-toggle-btn:hover {
  background: #e2eeff;
}

.account-edit-toggle-btn.is-hidden {
  display: none;
}

.account-field-edit {
  width: min(100%, 360px);
  margin-left: 8px;
  padding: 6px 8px;
  border: 1px solid #c6d7ea;
  border-radius: 8px;
  font: inherit;
}

.account-field-edit.is-hidden {
  display: none;
}

.account-edit-only.is-hidden {
  display: none;
}

.account-edit-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cfe0f1;
}

.account-edit-panel.is-hidden {
  display: none;
}

.account-edit-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.account-edit-mode-actions {
  margin-top: 0;
  margin-bottom: 10px;
}

.account-edit-mode-actions.is-hidden {
  display: none;
}

.account-edit-actions button {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid #c6d7ea;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.account-edit-cancel-btn {
  background: #f3f7fd;
  color: #294b74;
}

.account-edit-cancel-btn:hover {
  background: #e7f0fb;
}

.account-edit-save-btn {
  background: #1e5da8;
  color: #ffffff;
  border-color: #164b88;
}

.account-edit-save-btn:hover {
  background: #184f90;
}

.account-pro-block {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d6e5f5;
  border-radius: 10px;
  background: #f7fbff;
}

.account-pro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-pro-head label {
  margin: 0;
}

.account-pro-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #7ea6d1;
  background: #e8f2ff;
  color: #0b4f9c;
  font-weight: 700;
  cursor: pointer;
}

.account-pro-status {
  margin: 8px 0;
  color: var(--ink);
}

.account-pro-activate-btn {
  min-height: 38px;
  border: 1px solid #b9cfe8;
  border-radius: 10px;
  background: #edf7ff;
  color: #0b4f9c;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 12px;
}

.account-pro-activate-btn:hover {
  background: #dff0ff;
}

.account-pro-activate-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

.account-pro-info-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #cddced;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.account-pro-info-box.is-hidden {
  display: none;
}

.account-pro-info-box p {
  margin: 0 0 6px;
}

.account-pro-info-box p:last-child {
  margin-bottom: 0;
}

.mes-communes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.mes-communes-head h3 {
  margin: 0;
}

.mes-communes-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.mes-communes-line .post-meta {
  margin: 0;
}

.mes-communes-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.mes-communes-action-form button {
  height: 36px;
  border: 0;
  border-radius: 9px;
  padding: 0 12px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mes-communes-action-form .icon-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.mes-communes-action-form button.danger {
  background: linear-gradient(120deg, #b42318, #d92d20);
}

.ma-commune-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, rgba(11, 79, 156, 0), rgba(11, 79, 156, 0.35), rgba(11, 79, 156, 0));
}

.login-card {
  border: 1px solid #d6e2ef;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 6px 16px rgba(13, 103, 178, 0.08);
  max-width: 520px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.login-form input,
.login-form select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.login-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.login-form .login-inline-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.login-form .login-inline-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
}

.inscription-email-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.inscription-email-error-inline {
  color: #b71c1c;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

#publication_photo {
  display: none;
}

.file-dropzone {
  border: 2px dashed #b5cbe3;
  border-radius: 10px;
  padding: 22px 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6faff;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-visible,
.file-dropzone.is-dragover {
  border-color: var(--brand-blue-2);
  background: #e9f3ff;
  color: var(--ink);
  outline: none;
}

.publication-photo-preview {
  display: none;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d6e2ef;
  border-radius: 12px;
  background: #f8fbff;
}

.publication-photo-preview.has-preview {
  display: block;
}

.publication-photo-preview-item {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #f8fbff;
}

.publication-photo-preview-image {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #e6eef7;
}

.publication-photo-preview-name {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}

.publication-photo-preview-gallery {
  max-width: 560px;
}

.publication-photo-preview-main-image {
  max-width: 100%;
}

.publication-photo-preview-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-word;
}

.field-error {
  color: #b54708;
  font-size: 12px;
  margin-top: -4px;
  min-height: 16px;
  display: block;
}

.field-success {
  color: #1f7a33;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-input-wrap input {
  min-width: 0;
}

.password-toggle-btn {
  height: 42px;
  width: 42px;
  min-width: 42px;
  border: 1px solid #bdd3ea;
  border-radius: 10px;
  background: #f3f8ff;
  color: #0b4f9c;
  font-family: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.password-toggle-btn:hover {
  background: #e6f0fb;
}

.commune-active-hero {
  display: block;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #c8dcf5;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef6ff 0%, #ddeeff 100%);
}

.commune-active-hero-label {
  display: block;
  font-size: 12px;
  color: #184c87;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.commune-active-hero-value {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #0a3e78;
}

.commune-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commune-contact-head h3 {
  margin: 0;
}

.commune-mairie-popup-open {
  width: 36px;
  height: 36px;
  border: 1px solid #0b4f9c;
  border-radius: 10px;
  background: #ffffff;
  color: #0b4f9c;
  font-size: 18px;
  cursor: pointer;
}

.commune-mairie-popup {
  position: fixed;
  right: 24px;
  top: 110px;
  width: min(560px, calc(100vw - 24px));
  z-index: 1300;
  border: 2px solid #000;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.commune-mairie-popup.is-hidden {
  display: none;
}

.commune-mairie-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #fff;
  cursor: move;
}

.commune-mairie-popup-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.commune-mairie-popup-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.commune-mairie-section h4 {
  margin: 0 0 8px;
}

.commune-mairie-horaires {
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.commune-mairie-horaires ul {
  margin: 0;
  padding-left: 18px;
}

.commune-mairie-popup-map {
  width: 100%;
  height: 220px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  overflow: hidden;
}

.commune-results {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}

.commune-results.open {
  display: block;
}

.commune-option {
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  border-bottom: 1px solid #eef3f9;
}

.commune-option:last-child {
  border-bottom: 0;
}

.commune-option:hover {
  background: #0b4f9c;
  color: #ffffff;
}

.login-form button {
  margin-top: 6px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.login-actions a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
}

.login-actions a:hover {
  text-decoration: underline;
}

.login-actions-buttons {
  gap: 10px;
}

.login-actions-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b9cfe8;
  border-radius: 12px;
  color: #0b4f9c;
  font-weight: 700;
  text-decoration: none;
}

.login-actions-buttons a:nth-child(1) {
  background: #edf7ff;
  border-color: #badbf2;
  color: #0a4f95;
}

.login-actions-buttons a:nth-child(1):hover {
  background: #dff0ff;
  text-decoration: none;
}

.login-actions-buttons a:nth-child(2) {
  background: #fff3ea;
  border-color: #f0ceb5;
  color: #8d4516;
}

.login-actions-buttons a:nth-child(2):hover {
  background: #ffe7d7;
  text-decoration: none;
}

.commune-map-wrapper {
  margin-top: 20px;
  border-top: 1px dashed #cbdced;
  padding-top: 14px;
}

.map-help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.mairie-publications-map-card {
  padding: 14px;
}

.mairie-publications-map-summary {
  margin: 0 0 12px;
  color: #1b5e95;
  font-weight: 600;
}

.mairie-publications-map {
  width: 100%;
  min-height: 580px;
  border: 1px solid #d6e2ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #edf4fb);
  overflow: hidden;
}

.mairie-publications-group-popup {
  position: fixed;
  top: 120px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  z-index: 1245;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.mairie-publications-group-popup.is-hidden {
  display: none;
}

.mairie-publications-group-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #ffffff;
  cursor: move;
}

.mairie-publications-group-popup-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.mairie-publications-group-popup-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  max-height: 60vh;
  overflow: auto;
}

.mairie-publications-group-item {
  width: 100%;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  font-family: inherit;
}

.mairie-publications-group-item:hover {
  background: #eef6ff;
  border-color: #a9c7e8;
}

.mairie-publications-group-item strong {
  color: #0b4f9c;
}

.mairie-publications-group-item span {
  color: #5f7c9a;
  font-size: 12px;
}

.infos-communes-popup {
  position: fixed;
  top: 96px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 24px));
  z-index: 1240;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.infos-communes-popup.is-hidden {
  display: none;
}

.infos-communes-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0b4f9c;
  color: #ffffff;
  cursor: move;
}

.infos-communes-popup-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.infos-communes-popup-body {
  padding: 12px;
  max-height: 78vh;
  overflow: auto;
}

.infos-communes-popup-card {
  margin-bottom: 0;
}

.wallet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-info-popup-open {
  width: 26px;
  height: 26px;
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wallet-info-popup {
  position: fixed;
  right: 24px;
  top: 110px;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #ffffff;
  border: 2px solid #0f172a;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
  z-index: 1850;
}

.wallet-info-popup.is-hidden {
  display: none;
}

.wallet-info-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe4f0;
  cursor: move;
  background: #f8fbff;
}

.wallet-info-popup-close {
  width: 32px;
  height: 32px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.wallet-info-popup-body {
  padding: 12px;
}

.wallet-info-popup-body p {
  margin: 0 0 10px 0;
  line-height: 1.45;
}

.wallet-info-popup-body p:last-child {
  margin-bottom: 0;
}

.commune-map {
  width: 100%;
  min-height: 340px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #eaf2fb;
  box-shadow: inset 0 0 0 1px rgba(11, 79, 156, 0.04);
}

.top10 ol {
  margin: 0;
  padding-left: 20px;
}

.top10 li {
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.35;
}

.top10 li::marker {
  color: var(--brand-orange);
  font-weight: 700;
}

.likeplusplus-feed .feed-head {
  align-items: flex-start;
}

.likeplusplus-list {
  display: grid;
  gap: 12px;
}

.medailles-list {
  display: grid;
  gap: 12px;
}

.medailles-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.medailles-card-badge {
  min-height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #ef6c00, #ffb347);
  box-shadow: 0 8px 18px rgba(239, 108, 0, 0.18);
}

.medailles-card-body {
  min-width: 0;
}

.medailles-card-body h3 {
  margin: 0 0 6px;
}

.medailles-card-body p {
  margin: 0 0 6px;
  color: #1d3557;
  font-weight: 700;
}

.medailles-card-body small {
  color: var(--muted);
}

.likeplusplus-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, #fefefe, #f6f9fd);
}

.likeplusplus-rank {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b4f9c, #2ea8ff);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.likeplusplus-card.rank-1 .likeplusplus-rank {
  background: linear-gradient(135deg, #b77900, #ffb100);
}

.likeplusplus-card.rank-2 .likeplusplus-rank {
  background: linear-gradient(135deg, #5f7083, #9db0c3);
}

.likeplusplus-card.rank-3 .likeplusplus-rank {
  background: linear-gradient(135deg, #8e4d1f, #d58a52);
}

.likeplusplus-body h3 {
  margin: 0 0 6px;
  color: var(--ink);
}

.likeplusplus-body p {
  margin: 0 0 6px;
  color: #1d3557;
  font-weight: 700;
}

.likeplusplus-body small {
  color: var(--muted);
}

.likeplusplus-months .field-success {
  display: block;
  margin-bottom: 12px;
}

.likeplusplus-month-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.likeplusplus-month-link {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #f8fbff;
  color: #0b4f9c;
  text-decoration: none;
  font-weight: 700;
}

.likeplusplus-month-link:hover {
  background: #eef6ff;
  border-color: #a9c7e8;
}

.likeplusplus-month-link.is-active {
  background: linear-gradient(135deg, #0b4f9c, #2ea8ff);
  border-color: #0b4f9c;
  color: #ffffff;
}

.collapsed {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

.collapsed .menu-title,
.collapsed .menu span:not(.icon) {
  display: none;
}

.collapsed .menu a {
  justify-content: center;
  padding: 12px;
}

.mount-error {
  background: #fff;
  border: 1px solid #ffd6d6;
  color: #a12424;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(92vw, var(--sidebar-w));
    max-width: 360px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 3600;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 1;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding: 14px;
  }

  .topbar {
    display: block;
    padding: 10px 12px;
  }

  .hamburger {
    display: grid;
    width: 44px;
    height: 44px;
    border: 1px solid #d1e0ef;
    background: linear-gradient(135deg, #0b4f9c, #0d67b2);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(11, 79, 156, 0.18);
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .top-ticker-wrap {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-ticker-label {
    justify-content: flex-start;
  }

  .feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-count {
    white-space: normal;
  }

  .post.feed-publication-card > .reaction-bar {
    position: static;
    margin: 0 0 10px;
    justify-content: flex-end;
  }

  .post.feed-publication-card .publication-title,
  .post.feed-publication-card .post-meta {
    padding-right: 0;
  }

  .post.feed-publication-card .post-meta {
    flex-wrap: wrap;
  }

  .post.feed-publication-card .post-meta-type {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .post.feed-publication-card .post-meta-gps,
  .publication-map-btn,
  .publication-pro-btn,
  .publication-pro-inline {
    position: static;
    top: auto;
    right: auto;
  }

  .publication-pro-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
  }

  .publication-pro-dates {
    max-width: none;
    text-align: left;
  }

  .publication-map-btn,
  .publication-pro-btn {
    margin-top: 8px;
  }

  .mes-communes-head,
  .mes-communes-line,
  .comment-meta-row,
  .account-pro-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mes-communes-actions,
  .account-edit-actions {
    flex-wrap: wrap;
  }

  .comment-replies {
    margin-left: 8px;
  }

  .site-footer-links,
  .site-footer-actions {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-notice-card {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-notice-actions {
    width: 100%;
  }

  .cookie-notice-actions .site-footer-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 10px;
    gap: 12px;
  }

  .feed,
  .top10,
  .post,
  .site-footer,
  .topbar {
    border-radius: 14px;
  }

  .feed,
  .top10 {
    padding: 12px;
  }

  .section-title {
    font-size: 18px;
  }

  .search {
    min-height: 48px;
    padding: 0 12px;
  }

  .search input {
    height: 44px;
    font-size: 15px;
  }

  .top-ticker-label-logo {
    height: 42px;
  }

  .top-ticker-wrap {
    gap: 10px;
  }

  .menu a {
    white-space: normal;
    align-items: flex-start;
  }

  .active-commune-line,
  .menu-user-line {
    align-items: flex-start;
  }

  .menu-user-actions a::after {
    display: none;
  }

  .likeplusplus-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .medailles-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .medailles-card-badge {
    min-height: 52px;
    border-radius: 14px;
  }

  .likeplusplus-rank {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 22px;
  }

  .post-photo {
    max-height: 280px;
  }

  .publication-map-view {
    min-height: 260px;
  }

  .publication-pro-calendar-weekdays,
  .publication-pro-calendar-grid {
    gap: 4px;
  }

  .publication-pro-calendar-empty,
  .publication-pro-calendar-day {
    min-height: 64px;
  }

  .publication-pro-calendar-day {
    padding: 6px;
  }

  .infos-communes-compact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .infos-communes-col {
    min-width: 0;
  }

  .feed-pagination-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --radius: 14px;
  }

  .sidebar {
    width: 100vw;
    max-width: none;
    padding: 14px 10px;
  }

  .content {
    padding: 8px;
  }

  .active-commune,
  .menu-user {
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer-links a,
  .site-store-link,
  .site-footer-btn {
    width: 100%;
    justify-content: center;
  }

  .publication-map-popup,
  .publication-pro-popup,
  .infos-communes-popup,
  .wallet-info-popup,
  .site-contact-popup,
  .menu-user-medal-popup {
    width: calc(100vw - 16px);
  }
}


