:root {
  --flamme: #c5162f;
  --marine: #1c4778;
  --gris: #e8e8e8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Metropolis", "Metropolis Sans", "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
}

.container-max {
  max-width: 1200px;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(28,71,120,0.88) 0%, rgba(28,71,120,0.55) 55%, rgba(28,71,120,0.15) 100%);
}

.card-shadow {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.petition-card-overlay {
  opacity: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 71, 120, 0.08) 0%,
    rgba(28, 71, 120, 0.72) 58%,
    rgba(8, 20, 42, 0.96) 100%
  );
}

.petition-card-content {
  opacity: 0;
  transform: translateY(14px);
}

.petition-card:hover .petition-card-overlay,
.petition-card:focus-within .petition-card-overlay {
  opacity: 1;
}

.petition-card:hover .petition-card-content,
.petition-card:focus-within .petition-card-content {
  opacity: 1;
  transform: translateY(0);
}

.focus-ring:focus {
  outline: 2px solid var(--flamme);
  outline-offset: 2px;
}

.badge {
  background: var(--gris);
  color: #334155;
}

.bg-flamme {
  background-color: var(--flamme);
}

.text-flamme {
  color: var(--flamme);
}

.border-flamme {
  border-color: var(--flamme);
}

input, textarea, select {
  background: #fff;
}

.sticky-header {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}

.home-shortcut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: var(--marine);
}

.home-shortcut-icon {
  width: 25px;
  height: 25px;
  background-color: currentColor;
  -webkit-mask-image: var(--home-icon-src);
  mask-image: var(--home-icon-src);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: filter 180ms ease;
}

.home-shortcut::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translate(-50%, -4px);
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}

@media (hover: hover) {
  .home-shortcut:hover .home-shortcut-icon,
  .home-shortcut:focus-visible .home-shortcut-icon {
    filter: drop-shadow(0 6px 10px rgba(28, 71, 120, 0.35));
  }

  .home-shortcut:hover::after,
  .home-shortcut:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.footer-title {
  letter-spacing: 0.02em;
}

.wysiwyg-wrapper .ql-toolbar.ql-snow {
  border: 1px solid #cbd5e1;
  border-radius: 10px 10px 0 0;
}

.wysiwyg-wrapper .ql-container.ql-snow {
  border: 1px solid #cbd5e1;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.wysiwyg-wrapper .ql-editor {
  min-height: 190px;
  font-size: 15px;
  line-height: 1.6;
}

.ql-align-center {
  text-align: center;
}

.ql-align-right {
  text-align: right;
}

.ql-align-justify {
  text-align: justify;
}

.ql-indent-1 {
  margin-left: 1.5em;
}

.ql-indent-2 {
  margin-left: 3em;
}

.ql-indent-3 {
  margin-left: 4.5em;
}

.ql-indent-4 {
  margin-left: 6em;
}

.ql-indent-5 {
  margin-left: 7.5em;
}

.ql-indent-6 {
  margin-left: 9em;
}

.ql-indent-7 {
  margin-left: 10.5em;
}

.ql-indent-8 {
  margin-left: 12em;
}

iframe.ql-video {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 12px;
}

.ql-editor blockquote,
.rich-text blockquote {
  border-left: 4px solid #cbd5e1;
  margin: 0.75rem 0;
  padding-left: 0.9rem;
  color: #475569;
}

.rich-text strong,
.rich-text b {
  font-weight: 700 !important;
}

.rich-text ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 0.6rem 0;
}

.rich-text ol {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0.6rem 0;
}

.rich-text li {
  display: list-item;
  margin: 0.2rem 0;
}

.rich-text a {
  color: var(--marine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text a:hover {
  color: var(--flamme);
}

.cookie-banner {
  z-index: 70;
}

.cookie-banner-inner {
  border: 1px solid #d9e1ec;
  border-radius: 18px;
  padding: 16px 18px;
  background:
    radial-gradient(circle at top right, rgba(197, 22, 47, 0.08), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-text-wrap {
  min-width: 0;
}

.cookie-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(28, 71, 120, 0.22);
  background: #eef4fb;
  color: var(--marine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.cookie-banner-text {
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: all 180ms ease;
}

.cookie-btn-secondary {
  color: #1f3656;
  border: 1px solid #c7d3e1;
  background: #ffffff;
}

.cookie-btn-secondary:hover {
  background: #eff4fa;
  border-color: #a8bbd1;
}

.cookie-btn-primary {
  color: #ffffff;
  border: 1px solid #ad1128;
  background: linear-gradient(180deg, #c5162f 0%, #ad1128 100%);
  box-shadow: 0 8px 18px rgba(197, 22, 47, 0.25);
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(197, 22, 47, 0.32);
}

@media (max-width: 767px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .cookie-banner-text {
    font-size: 14px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    padding: 10px 12px;
  }
}

.depute-map-card {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.depute-map-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.depute-map-back {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 0.6rem 0.95rem;
}

.depute-map-back:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.depute-map-shell {
  position: relative;
  border: 1px solid #d5deea;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.depute-circo-map {
  padding: 10px;
  min-height: 360px;
}

.depute-circo-map svg {
  width: 33%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.depute-circo-map .depute-circo-shape {
  fill: #e5e7eb !important;
  stroke: #334155 !important;
  stroke-width: 0.18px !important;
  transition: fill 0.16s ease;
  cursor: pointer;
}

.depute-circo-map .depute-circo-shape:hover {
  fill: #d1d5db !important;
}

.depute-circo-map .depute-canton-shape {
  stroke: #334155 !important;
  stroke-width: 0.12px !important;
  fill-opacity: 0.9 !important;
  transition: fill 0.14s ease, stroke-width 0.14s ease, filter 0.14s ease;
  cursor: pointer;
}

.depute-circo-map .depute-canton-summary.is-hovered .depute-canton-shape {
  fill: #c5162f !important;
  stroke: #7f1023 !important;
  stroke-width: 0.2px !important;
  filter: brightness(1.02);
}

.depute-circo-map .depute-commune-shape {
  fill: #d6dde8 !important;
  stroke: #314154 !important;
  stroke-width: 0.16px !important;
  transition: fill 0.14s ease, stroke 0.14s ease;
  cursor: pointer;
}

.depute-circo-map .depute-commune-shape.is-hovered {
  fill: #c5162f !important;
  stroke: #6f0d1f !important;
}

.depute-map-tooltip {
  position: absolute;
  z-index: 10;
  max-width: 200px;
  pointer-events: none;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 8px;
  padding: 7px 9px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}
