/* Carte témoignages — version définitive indépendante */
:root {
  --ink: #1f2d3d;
  --muted: #5c6b7a;
  --line: #d9d3c7;
  --paper: #f6f4ef;
  --surface: #fff;
  --green: #1a6b3c;
  --green-soft: #e8f5ee;
  --red: #c41e3a;
  --active: #c45c26;
  --shadow: 0 10px 28px rgba(31, 45, 61, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #d8f0e2 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #f8d6db 0%, transparent 48%),
    radial-gradient(600px 300px at 50% 100%, #dce8f5 0%, transparent 50%),
    var(--paper);
  line-height: 1.5;
  font-size: 16px;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 72px;
}
@media (min-width: 1400px) {
  .wrap {
    max-width: 1280px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

.nav-local {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.nav-local a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-local a.nav-back {
  background: linear-gradient(135deg, #1a6b3c, #1e3a5f);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(26, 107, 60, 0.22);
}
.nav-local a.nav-back:hover {
  background: linear-gradient(135deg, #145730, #8b1e2d);
  color: #fff;
}
.nav-local a.is-active {
  border-color: #127a3f;
  color: #127a3f;
  background: #e8f8ee;
}
.nav-local a:hover:not(.nav-back) {
  border-color: #127a3f;
  color: #127a3f;
}

.banner {
  background:
    radial-gradient(circle at 12% 20%, rgba(29, 185, 84, 0.28), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(229, 36, 63, 0.25), transparent 40%),
    linear-gradient(135deg, #127a3f 0%, #1a4d7a 52%, #b01830 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  margin-bottom: 14px;
  box-shadow: 0 16px 40px rgba(26, 35, 48, 0.16);
  text-align: center;
}
.banner-flag {
  display: flex;
  width: 100px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  overflow: hidden;
}
.banner-flag span { flex: 1; }
.banner-flag span:nth-child(1) { background: #1db954; }
.banner-flag span:nth-child(2) { background: #fff; }
.banner-flag span:nth-child(3) { background: #e5243f; }
.banner .brand {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  opacity: 1;
  margin-bottom: 8px;
  line-height: 1.15;
}
.banner .brand .red { color: #ffb3b3; }
.banner .brand .green { color: #b8f0c8; }
.banner h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.96;
}
.banner p {
  font-size: 0.98rem;
  opacity: 0.94;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.55;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  scroll-margin-top: 12px;
}
.panel-accent {
  border-color: rgba(26, 107, 60, 0.22);
  background:
    linear-gradient(180deg, #f3faf6 0%, #fff 28%, #fff 100%);
  box-shadow: 0 12px 32px rgba(26, 35, 48, 0.08);
  position: relative;
  overflow: hidden;
}
.panel-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1db954 0%, #1a4d7a 50%, #e5243f 100%);
}
.section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #127a3f;
  margin: 0 0 6px;
}
.panel h2 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: #143528;
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.crumb {
  font-size: 0.92rem;
  color: #fff;
  margin: 4px 0 12px;
  min-height: 1.2em;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #158a45, #1a4d7a);
  box-shadow: 0 6px 18px rgba(26, 107, 60, 0.18);
}
.crumb strong { color: #ffe8b0; }

/* Formulaire « Déposer un témoignage » — CTA coloré */
.panel-form-cta {
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(26, 107, 60, 0.35);
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 185, 84, 0.22), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(229, 36, 63, 0.2), transparent 40%),
    linear-gradient(135deg, #127a3f 0%, #1a4d7a 50%, #b01830 100%);
  box-shadow: 0 16px 40px rgba(26, 35, 48, 0.16);
}
.panel-form-cta .share-flag {
  display: flex;
  width: 96px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  overflow: hidden;
}
.panel-form-cta .share-flag span { flex: 1; }
.panel-form-cta .share-flag span:nth-child(1) { background: #1db954; }
.panel-form-cta .share-flag span:nth-child(2) { background: #fff; }
.panel-form-cta .share-flag span:nth-child(3) { background: #e5243f; }

.form-details {
  padding: 10px 16px 16px;
}
.form-details > summary {
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  color: #fff;
  padding: 10px 4px 12px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
.form-summary-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.form-summary-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #127a3f;
  background: #fff;
  padding: 4px 9px;
  border-radius: 999px;
}
.form-details > summary::-webkit-details-marker { display: none; }
.form-details > summary::after {
  content: "+";
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #b01830;
  line-height: 1;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.form-details[open] > summary::after { content: "−"; }
.form-details-body {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #e8f8ee 0%, #fff 30%, #fff8f4 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(12, 22, 34, 0.18);
}
.panel-form-cta .hint {
  color: #3a4553;
}

.formbricks-embed {
  margin-top: 8px;
}
.formbricks-embed iframe {
  display: block;
  width: 100%;
  min-height: 780px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.formbricks-embed-fallback {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #555;
  text-align: center;
  line-height: 1.45;
}
.formbricks-embed-fallback a {
  color: #127a3f;
}

.form-box { display: grid; gap: 12px; }
.form-box label {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #127a3f;
}
.form-row-2 {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}
.form-box input,
.form-box select,
.form-box textarea {
  font: inherit;
  padding: 10px 12px;
  border: 2px solid #b7e0c6;
  border-radius: 8px;
  background: #fff;
  font-weight: 400;
  color: var(--ink);
}
.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  outline: none;
  border-color: #e5243f;
  box-shadow: 0 0 0 3px rgba(229, 36, 63, 0.14);
}
.form-box textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}
.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  font-weight: 400;
  color: #3a4553;
  line-height: 1.4;
  cursor: pointer;
}
.form-box label.form-check {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: #3a4553;
}
.form-check input {
  margin-top: 0.2em;
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  accent-color: #127a3f;
}
.form-check span {
  flex: 1;
  min-width: 0;
}
.form-box button[type="submit"] {
  justify-self: stretch;
  background: linear-gradient(135deg, #1db954 0%, #158a45 40%, #e5243f 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(29, 185, 84, 0.35);
}
.form-box button[type="submit"]:hover {
  background: linear-gradient(135deg, #158a45 0%, #e5243f 100%);
}

.form-feedback {
  display: none;
  text-align: center;
  padding: 14px;
  margin-top: 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}
.form-feedback-success { background: #d4edda; color: #155724; }
.form-feedback-error { background: #f8d7da; color: #721c24; }

/* Recherche */
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.search-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 2px solid #b7e0c6;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.search-row input:focus {
  outline: none;
  border-color: #e5243f;
  box-shadow: 0 0 0 3px rgba(229, 36, 63, 0.12);
}
.search-row button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1db954, #158a45);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.28);
}
.search-row button:hover {
  background: linear-gradient(135deg, #158a45, #127a3f);
}

/* Carte */
.map-shell {
  display: grid;
  gap: 14px;
}
@media (min-width: 820px) {
  .map-shell {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}
.map-svg-wrap {
  background:
    linear-gradient(180deg, #e7f6ee 0%, #f4f8fb 50%, #fcecef 100%);
  border: 2px solid rgba(26, 107, 60, 0.18);
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.map-svg-wrap svg { width: 100%; height: auto; display: block; }

.region {
  fill: #c5ddd2;
  stroke: #f7f4ee;
  stroke-width: 0.9;
  cursor: pointer;
  transition: fill 0.15s ease;
  vector-effect: non-scaling-stroke;
}
.region:hover,
.region:focus { fill: #7ec9a4; outline: none; }
.region.has-data { fill: #2f9e6b; }
.region.has-data:hover,
.region.has-data:focus { fill: #1db954; }
.region.is-active,
.region.has-data.is-active { fill: #e5243f; }

.region-label {
  font-size: 9px;
  font-weight: 700;
  fill: #243041;
  pointer-events: none;
  text-anchor: middle;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 0.84rem;
  color: #3a4553;
  font-weight: 600;
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.legend .l-empty::before { background: #c5ddd2; }
.legend .l-data::before { background: #2f9e6b; }
.legend .l-active::before { background: #e5243f; }

.side-list {
  max-height: 420px;
  overflow: auto;
  border: 2px solid rgba(26, 107, 60, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #f3faf6, #fff);
}
.side-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(26, 107, 60, 0.1);
  background: transparent;
  padding: 11px 13px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
}
.side-list button:last-child { border-bottom: 0; }
.side-list button:hover { background: #e8f8ee; }
.side-list button.is-active {
  background: linear-gradient(90deg, #158a45, #1a4d7a);
  color: #fff;
}
.side-list button:disabled { opacity: 0.4; cursor: default; }
.side-list .count {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  background: rgba(229, 36, 63, 0.12);
  color: #b01830;
  padding: 2px 7px;
  border-radius: 999px;
}
.side-list button.is-active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cities { display: grid; gap: 8px; }
.city-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 2px solid #b7e0c6;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.city-btn:hover {
  border-color: #1db954;
  background: #e8f8ee;
}
.city-btn.is-active {
  background: linear-gradient(90deg, #158a45, #1a4d7a);
  border-color: transparent;
  color: #fff;
}
.city-btn .n {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.9;
  background: rgba(229, 36, 63, 0.12);
  color: #b01830;
  padding: 2px 8px;
  border-radius: 999px;
}
.city-btn.is-active .n {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.empty {
  padding: 16px;
  background: linear-gradient(135deg, #fff5f5, #fff8f0);
  border: 2px dashed #e5243f;
  border-radius: 12px;
  color: #842029;
  font-size: 0.95rem;
  line-height: 1.45;
}
.empty a { color: #127a3f; font-weight: 700; }

/* Section témoignages — très visible à l’ouverture */
.panel-stories.is-visible {
  border: 2px solid rgba(229, 36, 63, 0.35);
  background:
    radial-gradient(circle at 8% 0%, rgba(29, 185, 84, 0.16), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(229, 36, 63, 0.14), transparent 42%),
    linear-gradient(180deg, #eefaf3 0%, #fff 32%, #fff8f5 100%);
  box-shadow: 0 18px 48px rgba(176, 24, 48, 0.14);
  padding: 22px 18px 20px;
}
.panel-stories.is-visible::before {
  height: 6px;
  background: linear-gradient(90deg, #1db954 0%, #fff 45%, #e5243f 100%);
}
.panel-stories .stories-loc {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #158a45, #1a4d7a);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  vertical-align: middle;
}
.panel-stories .stories-count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5243f;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.panel-stories .hint {
  color: #3a4553;
  font-weight: 500;
}

.stories { display: grid; gap: 16px; }
.story {
  position: relative;
  border: 2px solid rgba(26, 107, 60, 0.22);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f4fbf7 55%, #fff7f4 100%);
  box-shadow:
    0 12px 28px rgba(26, 35, 48, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.story::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #1db954, #e5243f);
}
.story-quote {
  position: absolute;
  top: 4px;
  right: 14px;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(229, 36, 63, 0.12);
  pointer-events: none;
}
.story-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 2rem;
}
.story-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #158a45, #1a4d7a 55%, #e5243f);
  box-shadow: 0 6px 14px rgba(26, 107, 60, 0.28);
}
.story-id { min-width: 0; }
.story .who {
  display: block;
  font-weight: 800;
  color: #143528;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 6px;
}
.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.story .relation,
.story-place {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.story .relation {
  background: linear-gradient(135deg, #e8f8ee, #d4f0e0);
  color: #127a3f;
}
.story-place {
  background: linear-gradient(135deg, #fde8ea, #ffe4e8);
  color: #b01830;
}
.story-body {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(26, 107, 60, 0.12);
}
.story p {
  margin: 0;
  line-height: 1.6;
  color: #243041;
  font-size: 1.02rem;
}
.story .more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5243f, #b01830);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(229, 36, 63, 0.28);
}
.story .more:hover {
  background: linear-gradient(135deg, #b01830, #8b1e2d);
}
.story .full { display: none; }
.story.is-open .full { display: block; }
.story.is-open .excerpt { display: none; }
.story.is-open {
  border-color: rgba(229, 36, 63, 0.4);
  box-shadow:
    0 16px 36px rgba(176, 24, 48, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.story.is-open .more {
  background: linear-gradient(135deg, #158a45, #127a3f);
  box-shadow: 0 6px 16px rgba(21, 138, 69, 0.28);
}

.recent-list { display: grid; gap: 10px; }
.recent-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 2px solid rgba(26, 107, 60, 0.14);
  background: linear-gradient(90deg, #fff, #f3faf6);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.recent-item:hover {
  border-color: #e5243f;
  background: linear-gradient(90deg, #fff8f4, #e8f8ee);
  transform: translateY(-1px);
}
.recent-item .meta {
  font-size: 0.82rem;
  color: #127a3f;
  font-weight: 700;
  margin-bottom: 4px;
}
.recent-item .txt { font-size: 0.95rem; line-height: 1.45; color: #2f3b4a; }

.charte-list {
  margin: 0.5rem 0 1rem 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}
.charte-list li { margin-bottom: 0.55rem; }
.charte-list strong { color: var(--ink); }
.charte-list a,
.hint a,
.foot a {
  color: #127a3f;
  font-weight: 600;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.btn-green {
  background: #127a3f;
  color: #fff;
}
.btn-outline {
  background: #fff;
  color: #127a3f;
  border: 1px solid #127a3f;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(29, 185, 84, 0.08), rgba(229, 36, 63, 0.08));
}
.foot .badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fff;
  color: #127a3f;
  border: 1px solid #b7e0c6;
  padding: 4px 8px;
  border-radius: 6px;
}
