﻿:root {
  --primary-blue: #1d4e89;
  --secondary-green: #6dae46;
  --accent-red: #ce2b37;
  --text-dark: #121a2b;
  --light-bg: #f4f7f6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --hero-image: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--accent-red);
}

.container {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 50px;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(29, 78, 137, 0.12);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--secondary-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--accent-red);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--secondary-green);
  border-color: var(--secondary-green);
}

.hero {
  position: relative;
  background: radial-gradient(circle at 0% 0%, #8c0f2a 0%, #7b1c5a 30%, #5c1a7a 70%, #4a1684 100%);
  color: var(--white);
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero--image {
  background-image: radial-gradient(circle at 0% 0%, rgba(140, 15, 42, 0.95) 0%, rgba(123, 28, 90, 0.9) 30%, rgba(92, 26, 122, 0.88) 70%, rgba(74, 22, 132, 0.86) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-content {
  display: grid;
  gap: 1.2rem;
  max-width: 720px;
}

.hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-photo {
  width: clamp(160px, 28vw, 260px);
  height: clamp(160px, 28vw, 260px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

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

.hero h1 {
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn--accent {
  background: var(--accent-red);
  color: var(--white);
}

.btn--primary {
  background: var(--secondary-green);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.92);
}

.ticker {
  background: var(--light-bg);
  border-bottom: 1px solid rgba(29, 78, 137, 0.12);
}

.ticker-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.ticker-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--secondary-green);
  background: rgba(109, 174, 70, 0.16);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  width: fit-content;
}

.ticker-window {
  overflow: hidden;
}

.ticker-marquee {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
  font-weight: 600;
  color: var(--text-dark);
}

.section {
  padding: 70px 0;
}

.section--alt {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  color: var(--accent-red);
  margin-bottom: 1.5rem;
}

.section-lead {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 720px;
  color: rgba(18, 26, 43, 0.75);
}

.candidate-grid {
  display: grid;
  gap: 2rem;
}

.candidate-photo {
  width: 220px;
  height: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.candidate-text {
  display: grid;
  gap: 0.65rem;
}

.candidate-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text-dark);
}

.candidate-list li {
  line-height: 1.5;
}

.lead {
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  color: var(--secondary-green);
}

.highlight {
  padding: 1rem 1.2rem;
  background: rgba(109, 174, 70, 0.12);
  border-left: 4px solid var(--secondary-green);
  border-radius: 12px;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
  align-self: start;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 78, 137, 0.9), rgba(109, 174, 70, 0.6));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  margin: -0.6rem -0.6rem 1rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 60%);
}

.card-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  background: var(--accent-red);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-details {
  margin-top: 0.4rem;
}

.card-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-red);
}

.card-details summary::-webkit-details-marker {
  display: none;
}

.card-details summary::after {
  content: "+";
  font-weight: 700;
  color: var(--secondary-green);
}

.card-details[open] summary::after {
  content: "-";
}

.card-details p {
  margin: 0.5rem 0 0;
  color: var(--text-dark);
}

.card-media--ecologie {
  background: linear-gradient(135deg, rgba(109, 174, 70, 0.9), rgba(29, 78, 137, 0.75));
}

.card-media--services {
  background: linear-gradient(135deg, rgba(29, 78, 137, 0.95), rgba(206, 43, 55, 0.7));
}

.card-media--solidarite {
  background: linear-gradient(135deg, rgba(206, 43, 55, 0.8), rgba(109, 174, 70, 0.75));
}

.card-media--securite {
  background: linear-gradient(135deg, rgba(18, 26, 43, 0.9), rgba(29, 78, 137, 0.8));
}

.tract-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.tract-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.tract-card .btn {
  width: fit-content;
}

.tract-preview {
  border: 1px solid rgba(29, 78, 137, 0.15);
  background: var(--light-bg);
  border-radius: 14px;
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  justify-self: start;
  width: min(240px, 100%);
}

.tract-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 26, 43, 0.12);
  border-color: rgba(29, 78, 137, 0.25);
}

.tract-preview:focus-visible {
  outline: 2px solid rgba(109, 174, 70, 0.4);
  outline-offset: 2px;
}

.tract-preview-sheet {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 246, 0.9));
  border: 1px solid rgba(29, 78, 137, 0.12);
  display: block;
  overflow: hidden;
  padding: 0;
}

.tract-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tract-preview-badge {
  background: var(--accent-red);
  color: var(--white);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tract-preview-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-blue);
  text-align: center;
}

.tract-preview-subtitle {
  font-size: 0.75rem;
  color: rgba(18, 26, 43, 0.7);
}

.tract-preview-action {
  font-weight: 600;
  color: var(--secondary-green);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(109, 174, 70, 0.2);
  color: var(--secondary-green);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-family: "Montserrat", sans-serif;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  align-self: start;
}

.team-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  margin: 0 auto 1rem;
}

.team-member h3 {
  color: var(--accent-red);
  margin-bottom: 0.2rem;
}

.team-role {
  color: var(--secondary-green);
  margin: 0;
}

.team-details {
  margin-top: 0.6rem;
  text-align: left;
}

.team-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent-red);
}

.team-details summary::-webkit-details-marker {
  display: none;
}

.team-details summary::after {
  content: "+";
  font-weight: 700;
  color: var(--secondary-green);
}

.team-details[open] summary::after {
  content: "-";
}

.team-details p {
  margin: 0.5rem 0 0;
  color: var(--text-dark);
}

.team-quote {
  font-style: italic;
  color: var(--accent-red);
}

.agenda {
  display: grid;
  gap: 1rem;
}

.agenda-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent-red);
}

.agenda-date {
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.2rem 1.4rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--accent-red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  color: var(--secondary-green);
  font-size: 1.4rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.4rem;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0 0 1.2rem;
}

.faq-answer ul {
  margin: 0 0 1.2rem 1.2rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

.faq-item.is-open .faq-question {
  background: rgba(109, 174, 70, 0.08);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

label.full {
  grid-column: span 1;
}

input,
select,
textarea {
  border: 1px solid rgba(18, 26, 43, 0.2);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: "Roboto", sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(109, 174, 70, 0.35);
  border-color: var(--secondary-green);
}

.contact-details {
  display: grid;
  gap: 0.6rem;
  text-align: center;
  margin-top: 1.8rem;
  font-weight: 600;
  color: var(--secondary-green);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(18, 26, 43, 0.65);
  backdrop-filter: blur(3px);
  z-index: 200;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-card h3 {
  margin-bottom: 0.75rem;
  color: var(--accent-red);
}

.modal-card p {
  margin: 0 0 1.5rem;
}

.modal-card--wide {
  max-width: 920px;
  text-align: left;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-card--wide h3 {
  margin: 0;
}

.modal-close--icon {
  border: 1px solid rgba(29, 78, 137, 0.2);
  background: var(--light-bg);
  color: var(--primary-blue);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.tract-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(29, 78, 137, 0.15);
  background: var(--white);
  margin-bottom: 1.2rem;
}

.tract-frame {
  width: 100%;
  height: 70vh;
  border: 0;
  display: block;
  background: var(--white);
}

.tract-download {
  width: fit-content;
}

.site-footer {
  background: radial-gradient(circle at 0% 0%, #8c0f2a 0%, #7b1c5a 30%, #5c1a7a 70%, #4a1684 100%);
  color: var(--white);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--white);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-layout {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }

  .tract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker-inner {
    flex-direction: row;
    align-items: center;
  }

  .ticker-window {
    flex: 1;
  }

  .candidate-grid {
    grid-template-columns: 260px 1fr;
    align-items: center;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  label.full {
    grid-column: span 2;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tract-frame {
    height: 60vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .ticker-window {
    overflow-x: auto;
  }

  .ticker-marquee {
    animation: none !important;
  }
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
