:root {
  --blue: #00518a;
  --blue-dark: #122f45;
  --blue-soft: #eaf3f8;
  --pink: #e83e87;
  --green: #669327;
  --green-dark: #4f7d18;
  --ink: #17212b;
  --muted: #5b6772;
  --line: #d9e3eb;
  --soft: #f6f8fa;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(18, 47, 69, 0.11);
  --shadow-strong: 0 26px 70px rgba(18, 47, 69, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f8fbfd;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--pink);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(18, 47, 69, 0.05);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
  color: var(--blue-dark);
  font-weight: 800;
}

.brand img {
  width: 250px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 800;
  border-radius: 8px;
}

.main-nav a:hover {
  background: var(--blue-soft);
}

.main-nav .nav-cta {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(0, 81, 138, 0.18);
}

.main-nav .nav-cta:hover {
  color: var(--white);
  background: var(--pink);
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs span {
  margin: 0 8px;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(234, 244, 248, 0.98) 0%, rgba(234, 244, 248, 0.9) 39%, rgba(234, 244, 248, 0.58) 72%, rgba(234, 244, 248, 0.74) 100%),
    url("../images/generated/hero-politique-transparent-1120.webp") right -80px center / min(72vw, 960px) auto no-repeat,
    #eaf4f8;
  border-bottom: 1px solid var(--line);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(18, 47, 69, 0.04));
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 44px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 590px;
  padding: 68px 20px 58px;
}

.hero-main {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-copy h1 {
  margin: 0;
  max-width: 660px;
  color: var(--blue-dark);
  font-size: 48px;
  line-height: 1.08;
}

.hero-copy,
.hero-main,
.hero-side {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.lead {
  max-width: 540px;
  margin: 18px 0 0;
  color: #344452;
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.button.primary:hover {
  color: var(--white);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button.secondary {
  color: var(--white);
  background: var(--blue);
}

.button.ghost {
  color: var(--blue);
  background: var(--white);
}

.button.full {
  width: 100%;
}

.hero-proof-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.hero-proof-grid a {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(185, 207, 220, 0.92);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 47, 69, 0.08);
  backdrop-filter: blur(8px);
}

.hero-proof-grid a:hover {
  background: var(--white);
  border-color: var(--pink);
}

.hero-proof-grid span {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.hero-proof-grid small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.hero-form-card {
  position: relative;
  z-index: 3;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.98));
  border: 1px solid rgba(196, 214, 226, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.hero-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--pink);
  border-radius: 8px;
  pointer-events: none;
}

.hero-form-card h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.16;
}

.hero-form-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-form-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.hero-form-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.hero-form-list li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  background: var(--blue-soft);
  border-radius: 8px;
}

.hero-form-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 18px auto 10px;
  padding: 0 20px;
}

.stats-strip div {
  min-height: 98px;
  padding: 18px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
}

.stats-strip strong {
  display: block;
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 48px 20px;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading,
.section > .content-row,
.card-grid,
.profile-grid,
.chip-list,
.faq-list,
.article-body,
.party-grid,
.directory-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  position: relative;
  display: block;
  margin-bottom: 30px;
  padding-left: 18px;
}

.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 4px;
  height: 58px;
  background: linear-gradient(180deg, var(--pink), var(--green));
  border-radius: 99px;
}

.section-heading h2 {
  margin: 0;
  max-width: 780px;
  color: var(--blue-dark);
  font-size: 34px;
  line-height: 1.18;
}

.section-heading p:not(.eyebrow) {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  align-items: start;
}

.article-body {
  max-width: 900px;
  color: var(--ink);
  font-size: 17px;
}

.article-body h2 {
  margin: 34px 0 10px;
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1.2;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: var(--white);
}

.article-body th,
.article-body td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--blue-soft);
}

.blog-meta {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.article-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.section-context {
  background: #ffffff;
}

.local-context-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  margin: 0 auto;
}

.map-card,
.context-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-card {
  position: relative;
  min-height: 420px;
  grid-row: span 3;
  background: linear-gradient(135deg, #eaf4f8 0%, #ffffff 100%);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

.map-caption {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: grid;
  gap: 2px;
  max-width: calc(100% - 32px);
  padding: 10px 12px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 47, 69, 0.1);
}

.map-caption strong {
  font-size: 13px;
  text-transform: uppercase;
}

.map-caption span {
  color: var(--muted);
  font-size: 13px;
}

.context-card {
  padding: 20px;
}

.context-card--strong {
  background: var(--blue-dark);
  color: var(--white);
}

.context-card--strong h3,
.context-card--strong .eyebrow {
  color: var(--white);
}

.context-card--strong p {
  color: rgba(255, 255, 255, 0.78);
}

.context-card--wide {
  grid-column: 2;
}

.context-card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1.18;
}

.context-card p {
  color: var(--muted);
}

.context-card.context-card--strong h3,
.context-card.context-card--strong .eyebrow {
  color: var(--white);
}

.context-card.context-card--strong p {
  color: rgba(255, 255, 255, 0.78);
}

.context-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-party-row,
.context-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-party-chip,
.context-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.mini-party-chip {
  color: var(--blue-dark);
  background: var(--white);
}

.context-tags span {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-list p {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--blue-soft);
  border-left: 4px solid var(--pink);
  border-radius: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.profile-card,
.signup-panel,
.party-card,
.directory-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.info-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.card-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--pink);
  background: #fff4fa;
  border: 1px solid #f8cfe1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-card h3 {
  margin: 12px 0 8px;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.2;
}

.info-card p {
  color: var(--muted);
}

.info-card a {
  margin-top: auto;
  font-weight: 900;
}

.signup-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.signup-panel h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.2;
}

.signup-panel p,
.signup-panel small {
  color: var(--muted);
}

.signup-panel .button {
  margin-top: 10px;
}

.partner-form-shell {
  margin: 16px 0 12px;
  padding: 12px;
  background: #f8fbfd;
  border: 1px solid #d7e3ec;
  border-radius: 8px;
}

#formuser,
#loguser {
  width: 100%;
  min-height: 120px;
}

#loguser {
  min-height: 96px;
}

.party-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.party-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.party-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--blue-dark);
  border-radius: 8px;
  font-weight: 900;
}

.party-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
}

.party-card p {
  margin: 0 0 3px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.party-card h3 {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 1.25;
}

.party-card a {
  font-weight: 900;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.directory-block {
  padding: 18px;
}

.directory-block h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 20px;
}

.mini-link-list {
  display: grid;
  gap: 8px;
}

.mini-link-list a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 9px;
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 8px;
  font-weight: 800;
}

.mini-link-list a:hover {
  color: var(--white);
  background: var(--blue);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-photo-wrap {
  position: relative;
  aspect-ratio: 1 / 0.78;
  background: var(--blue-soft);
}

.profile-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-match {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(18, 47, 69, 0.9);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.profile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.profile-card h3 {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.2;
}

.profile-line,
.profile-quote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-quote {
  margin-top: 10px;
  color: var(--ink);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.profile-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.profile-action {
  margin-top: auto;
  padding-top: 14px;
  color: var(--pink);
  font-weight: 900;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 800;
}

.chip:hover {
  border-color: var(--pink);
  background: #fff7fb;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.conversion-band {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto;
  gap: 24px;
  align-items: center;
  margin: 28px auto 46px;
  padding: 26px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 47, 69, 0.98), rgba(0, 81, 138, 0.92)),
    var(--blue-dark);
  border-radius: 8px;
  overflow: hidden;
}

.conversion-band h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.conversion-band p:not(.eyebrow) {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.conversion-band .button.ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.conversion-visual {
  align-self: end;
  display: block;
  width: 230px;
  margin: -22px 0 -28px;
  opacity: 0.92;
  pointer-events: none;
}

.conversion-visual img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.18));
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.site-footer {
  padding: 38px 20px 24px;
  background: var(--blue-dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand img {
  width: 230px;
  max-width: 100%;
  margin-bottom: 12px;
}

.site-footer a {
  margin-top: 8px;
}

.copyright {
  max-width: var(--max);
  margin: 26px auto 0;
  font-size: 13px;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .content-row,
  .local-context-grid,
  .footer-grid,
  .conversion-band {
    grid-template-columns: 1fr;
  }

  .hero-band {
    background:
      linear-gradient(180deg, rgba(234, 244, 248, 0.97) 0%, rgba(234, 244, 248, 0.93) 100%),
      url("../images/generated/hero-politique-transparent-1120.webp") right -170px top 10px / min(105vw, 760px) auto no-repeat,
      #eaf4f8;
  }

  .site-header {
    position: static;
    display: grid;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    gap: 24px;
    min-height: 0;
    padding-top: 40px;
  }

  .hero-main {
    min-height: 0;
  }

  .hero-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-form-card {
    max-width: 560px;
    margin: 0 auto;
  }

  .card-grid,
  .party-grid,
  .directory-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signup-panel {
    position: static;
  }

  .map-card {
    grid-row: auto;
  }

  .context-card--wide {
    grid-column: auto;
  }

  .conversion-visual {
    width: min(260px, 75vw);
    margin: -8px 0 -18px;
  }
}

@media (max-width: 640px) {
  .hero {
    width: 100%;
    overflow: hidden;
    padding-top: 34px;
  }

  .hero-band {
    background:
      linear-gradient(180deg, rgba(234, 244, 248, 0.98) 0%, rgba(234, 244, 248, 0.95) 100%),
      url("../images/generated/hero-politique-transparent-1120.webp") right -230px top 0 / 620px auto no-repeat,
      #eaf4f8;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 30px;
    overflow-wrap: break-word;
  }

  .lead {
    max-width: 100%;
    font-size: 17px;
  }

  .hero-actions,
  .hero-proof-grid {
    display: none;
  }

  .hero-copy,
  .hero-actions,
  .hero-main,
  .hero-form-card {
    max-width: 350px;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-form-card {
    padding: 20px;
  }

  .brand {
    min-width: 0;
    max-width: 350px;
  }

  .brand img {
    width: 220px;
  }

  .main-nav a {
    flex: 1 1 auto;
    min-width: 0;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 350px;
  }

  .main-nav .nav-cta {
    grid-column: 1 / -1;
  }

  .main-nav a {
    padding-inline: 6px;
    font-size: 13px;
    white-space: nowrap;
  }

  .stats-strip,
  .card-grid,
  .party-grid,
  .directory-grid,
  .local-context-grid,
  .profile-grid,
  .split-list,
  .hero-proof-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-bottom: 0;
  }

  .hero-actions .button,
  .conversion-actions .button {
    width: 100%;
  }

  .conversion-visual {
    display: none;
  }

  .party-card {
    grid-template-columns: 50px minmax(0, 1fr);
  }
}
