:root {
  --rouge: #e10600;
  --vert: #1b8f4a;
  --jaune: #f5b400;
  --magenta: #b0006f;
  --noir: #1a1a1a;
  --gris: #f7f7f7;
  --bg: #F0EEE9;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--noir);
  background: var(--bg);
  line-height: 1.7;
}

p {
  color: var(--noir);
}

a {
  color: var(--vert);
}

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

/* HEADER */
.site-header {
  background: var(--bg);
}

.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  background: linear-gradient(
    to right,
    var(--jaune),
    var(--vert),
    var(--magenta),
    var(--rouge)
  );
  border-bottom: 4px solid var(--jaune);
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.navbar a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  max-width: 960px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

main > section > h1:not(.hero-title) {
  color: var(--vert);
}

main > section > h2:not(.hero-subtitle) {
  color: var(--vert);
}

main > section > p {
  color: var(--noir);
}

/* TYPOGRAPHIE POLITIQUE */
h1 {
  font-size: 3rem;
  color: var(--vert);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  color: var(--vert);
  font-weight: 800;
  line-height: 1.3;
}

h3 {
  color: var(--noir);
  font-weight: 700;
  font-size: 1.3rem;
}

h4 {
  color: var(--rouge);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.date-highlight {
  color: var(--rouge);
  font-weight: 900;
  font-size: 1.8rem;
}

.statement {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--noir);
}

/* PROGRAMME - COLLAPSIBLES */
details {
  margin: 2rem 0;
  border-left: 8px solid var(--jaune);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

details:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-left-color: var(--vert);
}

details[open] {
  border-left-color: var(--vert);
  background: linear-gradient(to right, rgba(27, 143, 74, 0.03), var(--bg));
}

details summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--noir);
  list-style: none;
  user-select: none;
  position: relative;
  background: var(--bg);
  transition: all 0.2s ease;
}

details summary:hover {
  background: rgba(27, 143, 74, 0.05);
}

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

details summary::before {
  content: "▶";
  color: var(--vert);
  font-weight: bold;
  margin-right: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details summary strong {
  color: var(--vert);
}

details > div,
details > h3,
details > h4,
details > p,
details > ul {
  padding: 0 2rem 1rem 2rem;
  animation: fadeIn 0.3s ease;
}

details h3 {
  color: var(--jaune);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

details h4 {
  color: var(--rouge);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

details ul {
  line-height: 1.9;
  margin-top: 0.5rem;
}

details li {
  margin-bottom: 0.5rem;
}

details li strong {
  color: var(--vert);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HORIZONTAL RULES */
hr {
  border: none;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--jaune),
    var(--vert),
    var(--magenta),
    var(--rouge)
  );
  margin: 2rem 0;
}

/* ACTUS */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.news-card {
  border-left: 8px solid var(--vert);
  padding-left: 1.5rem;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-left-color: var(--rouge);
  transform: translateX(5px);
}

.news-card h3 {
  margin-top: 0;
  color: var(--vert);
}

/* FOOTER */
footer {
  margin-top: 5rem;
  padding: 0;
  background: var(--bg);
  font-size: 0.95rem;
  border-top: 4px solid;
  border-image: linear-gradient(
    to right,
    var(--jaune),
    var(--vert),
    var(--magenta),
    var(--rouge)
  ) 1;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h3 {
  color: var(--vert);
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 900;
}

.footer-section h4 {
  color: var(--rouge);
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-tagline {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--noir);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.footer-links a::before {
  content: "→";
  margin-right: 0.5rem;
  color: var(--vert);
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--vert);
  transform: translateX(3px);
}

.footer-links a:hover::before {
  color: var(--rouge);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.03);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom p {
  margin: 0.25rem 0;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--vert);
}

/* HOME PAGE - HERO */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 4rem;
}

.hero .hero-title {
  font-size: 4rem;
  color: var(--rouge) !important;
  margin: 0 0 0.5rem 0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .hero-subtitle {
  font-size: 3rem;
  color: var(--vert) !important;
  margin: 0 0 2rem 0;
  font-weight: 900;
}

.hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 12px;
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--noir);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-values {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.value {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.value-justice {
  background: var(--rouge);
}

.value-citoyen {
  background: var(--magenta);
}

.value-ecologie {
  background: var(--vert);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--vert);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-vert {
  background: var(--vert);
}

.btn-rouge {
  background: var(--rouge);
}

.btn-magenta {
  background: var(--magenta);
}

.btn-primary:hover {
  color: white;
  transform: translateY(-2px);
}

.btn-vert:hover {
  box-shadow: 0 8px 20px rgba(27, 143, 74, 0.4);
}

.btn-rouge:hover {
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.4);
}

.btn-magenta:hover {
  box-shadow: 0 8px 20px rgba(176, 0, 111, 0.4);
}

/* HOME PAGE - NEWS SECTION */
.news-section {
  margin-top: 4rem;
}

.news-section h2 {
  text-align: center;
  color: var(--vert);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.news-section .news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-section .news-card {
  border-left: 8px solid var(--vert);
  padding: 1.5rem;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-section .news-card:hover {
  border-left-color: var(--rouge);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-section .news-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.news-section .news-card h3 a {
  color: var(--noir);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-section .news-card h3 a:hover {
  color: var(--vert);
}

.news-date {
  color: var(--rouge) !important;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.news-excerpt {
  color: #555 !important;
  line-height: 1.6;
  margin: 0;
}

.news-section .news-card p {
  color: #555 !important;
}

.see-all {
  text-align: center;
  margin-top: 2rem;
}

.see-all a {
  color: var(--vert);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.see-all a:hover {
  color: var(--rouge);
}

/* TEAM GRID */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}

.team-member {
  background: var(--bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 6px solid var(--vert);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-member:nth-child(4n+1) {
  border-top-color: var(--vert);
}

.team-member:nth-child(4n+2) {
  border-top-color: var(--rouge);
}

.team-member:nth-child(4n+3) {
  border-top-color: var(--jaune);
}

.team-member:nth-child(4n+4) {
  border-top-color: var(--magenta);
}

.team-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--gris);
  transition: all 0.3s ease;
}

.team-member:hover .team-photo {
  border-color: var(--vert);
  transform: scale(1.05);
}

.team-photo svg {
  width: 100%;
  height: 100%;
  background: var(--gris);
}

.team-member h3 {
  text-align: center;
  color: var(--noir);
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
}

.team-member .role {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vert);
  margin: 0 0 1rem 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.team-member .bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  text-align: center;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  details summary {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }

  details > div,
  details > h3,
  details > h4,
  details > p,
  details > ul {
    padding: 0 1.5rem 1rem 1.5rem;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .navbar a {
    font-size: 0.85rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero .hero-title {
    font-size: 2.5rem;
  }

  .hero .hero-subtitle {
    font-size: 2rem;
  }

  .hero-image {
    max-width: 100%;
    margin: 1.5rem auto;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-values {
    gap: 1rem;
  }

  .value {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.9rem 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn-primary {
    width: 100%;
    max-width: 320px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem 1.5rem;
  }

  .footer-section {
    text-align: left;
  }
}
