:root {
  --agde-blue: #28347f;
  --agde-blue-dark: #17215b;
  --agde-blue-light: #e9ecf8;
  --agde-yellow: #ffdf00;
  --france-blue: #002654;
  --france-red: #ce1126;
  --ink: #172033;
  --muted: #5d6678;
  --paper: #ffffff;
  --soft-bg: #f4f6fb;
  --border: #dfe3ed;
  --shadow: 0 24px 65px rgba(24, 35, 88, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--agde-blue);
}

a:hover {
  color: var(--agde-blue-dark);
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--agde-blue-dark);
}

.brand-link:focus-visible,
.legal-copy a:focus-visible {
  border-radius: 0.25rem;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--agde-blue-dark);
  border-radius: 0.35rem;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: relative;
  background: #fff;
}

.republic-stripe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 6px;
}

.republic-stripe span:nth-child(1) {
  background: var(--france-blue);
}

.republic-stripe span:nth-child(2) {
  background: #fff;
  box-shadow: inset 0 0 0 1px #f1f1f1;
}

.republic-stripe span:nth-child(3) {
  background: var(--france-red);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(200px, 30vw, 360px);
  height: auto;
}

.header-label {
  color: var(--agde-blue);
  line-height: 1.25;
}

.header-label span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.header-label strong {
  font-size: 1.05rem;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(128deg, var(--agde-blue-dark) 0%, var(--agde-blue) 68%, #34439c 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 0;
  background-image: url("../img/drapeau-francais-transparent.png");
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.hero > .container {
  z-index: 1;
}

.py-lg-6 {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

.eyebrow,
.section-kicker {
  color: var(--agde-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--agde-yellow);
}

.eyebrow::before {
  width: 2.5rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.intro-section {
  background: #fff;
}

.intro-lead {
  color: #465064;
  font-weight: 500;
}

.mayor-video-wrap {
  width: min(100%, 18rem);
  margin-inline: auto;
  overflow: hidden;
  background: var(--agde-blue-dark);
  border: 4px solid #fff;
  border-radius: 1.35rem;
  box-shadow: 0 1.25rem 3rem rgba(13, 26, 72, 0.18);
}

.mayor-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--agde-blue-dark);
}

.section-title {
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.privacy-section {
  background: #fff;
}

.privacy-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 12px 38px rgba(24, 35, 88, 0.08);
}

.privacy-summary {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--agde-blue-light);
}

.privacy-icon {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #fff;
  background: var(--agde-blue);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
}

.privacy-card .accordion-button {
  padding: 1.15rem 1.5rem;
  color: var(--agde-blue-dark);
  font-weight: 700;
}

.privacy-card .accordion-button:not(.collapsed) {
  color: var(--agde-blue-dark);
  background: #f7f8fc;
  box-shadow: none;
}

.privacy-card .accordion-button:focus {
  border-color: var(--agde-blue);
  box-shadow: 0 0 0 0.25rem rgba(40, 52, 127, 0.2);
}

.legal-copy {
  padding: 1.5rem;
  color: #414a5c;
  font-size: 0.96rem;
}

.results-section {
  background:
    linear-gradient(rgba(244, 246, 251, 0.96), rgba(244, 246, 251, 0.96)),
    repeating-linear-gradient(135deg, var(--agde-blue) 0, var(--agde-blue) 2px, transparent 2px, transparent 18px);
}

.results-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.results-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.45rem;
  content: "";
  background: linear-gradient(90deg, var(--france-blue) 0 33.333%, #fff 33.333% 66.666%, var(--france-red) 66.666%);
  box-shadow: inset 0 -1px rgba(23, 32, 51, 0.08);
}

.results-title {
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.results-lead {
  color: #465064;
  font-size: 1.08rem;
  font-weight: 550;
}

.results-thanks {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--agde-blue-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.results-thanks .fa-heart {
  color: var(--france-red);
}

.results-figure {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--soft-bg);
  border-radius: 1.25rem;
}

.results-chart {
  display: grid;
  width: min(100%, 18rem);
  margin-inline: auto;
  aspect-ratio: 1;
  place-items: center;
  background: conic-gradient(var(--agde-blue) 0 86%, var(--france-red) 86% 100%);
  border-radius: 50%;
  box-shadow: 0 1rem 2.5rem rgba(24, 35, 88, 0.16);
}

.results-chart-center {
  display: grid;
  width: 68%;
  aspect-ratio: 1;
  place-content: center;
  text-align: center;
  background: #fff;
  border-radius: 50%;
}

.results-chart-center strong {
  color: var(--agde-blue-dark);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.results-chart-center strong span {
  font-size: 0.45em;
  letter-spacing: -0.02em;
}

.results-chart-center > span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-legend {
  display: grid;
  gap: 0.7rem;
  max-width: 26rem;
  margin: 1.5rem auto 0;
}

.result-row {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border-radius: 0.65rem;
}

.result-row > span:last-child {
  min-width: 2.75rem;
  text-align: right;
  color: var(--muted);
  font-weight: 750;
}

.result-color {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.result-row-for .result-color {
  background: var(--agde-blue);
}

.result-row-against .result-color {
  background: var(--france-red);
}

.result-label {
  font-weight: 750;
}

.results-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.3rem;
  padding-top: 1rem;
  color: var(--agde-blue-dark);
  border-top: 1px solid var(--border);
}

.results-total .fa-users {
  color: var(--agde-blue);
  font-size: 1.25rem;
}

.newsletter-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 223, 0, 0.2), transparent 19rem),
    linear-gradient(128deg, var(--agde-blue-dark), var(--agde-blue));
}

.newsletter-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  padding: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.25rem;
  box-shadow: 0 24px 65px rgba(5, 12, 55, 0.24);
  backdrop-filter: blur(8px);
}

.newsletter-icon {
  display: grid;
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  color: var(--agde-blue-dark);
  background: var(--agde-yellow);
  border-radius: 1rem;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 0.8rem 2rem rgba(5, 12, 55, 0.22);
}

.newsletter-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.newsletter-kicker {
  color: var(--agde-yellow);
}

.newsletter-title {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.newsletter-text {
  max-width: 39rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.newsletter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.3rem;
  color: var(--agde-blue-dark);
  background: var(--agde-yellow);
  border: 2px solid var(--agde-yellow);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0.8rem 2rem rgba(5, 12, 55, 0.22);
}

.newsletter-button .fa-arrow-right {
  transition: transform 0.22s ease;
}

.newsletter-button:hover,
.newsletter-button:focus-visible {
  color: var(--agde-blue-dark);
  background: #fff;
  border-color: #fff;
}

.newsletter-button:hover .fa-arrow-right,
.newsletter-button:focus-visible .fa-arrow-right {
  transform: translateX(0.35rem);
}

.newsletter-button:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.42);
}

.newsletter-note {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

@media (min-width: 992px) {
  .newsletter-title {
    white-space: nowrap;
  }
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--agde-blue-dark);
  border-top: 5px solid var(--agde-yellow);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.3rem;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--agde-yellow);
  text-decoration: none;
}

.external-link-icon {
  flex: 0 0 auto;
  margin-left: 0.12em;
  font-size: 1em;
}

@media (min-width: 1400px) {
  .hero::before {
    background-position: 74% center;
  }
}

@media (max-width: 991.98px) {
  .py-lg-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .hero::before {
    background-position: center;
    background-size: auto 88%;
    opacity: 0.28;
  }
}

@media (max-width: 767.98px) {
  .brand-logo {
    width: min(76vw, 290px);
  }

  .hero h1 {
    max-width: none;
  }

  .privacy-summary {
    padding: 1.25rem;
  }

  .results-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .results-card {
    border-radius: 1rem;
  }

  .result-row {
    grid-template-columns: 0.75rem 1fr auto;
  }

  .result-row > span:last-child {
    grid-column: 2 / -1;
    min-width: 0;
    text-align: left;
  }

  .newsletter-card {
    display: block;
    padding: 1.5rem;
  }

  .newsletter-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.65rem;
  }

  .newsletter-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    display: grid;
    justify-content: start;
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
    box-shadow: none;
  }
}

@media print {
  .skip-link,
  .btn,
  .newsletter-section {
    display: none !important;
  }

  .hero {
    color: #000 !important;
    background: #fff !important;
  }

  .hero-lead {
    color: #333 !important;
  }
}
