/* style.css */
@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto/static/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto/static/Roboto-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('fonts/Roboto/static/Roboto-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/Space_Mono/SpaceMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/Space_Mono/SpaceMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/Space_Mono/SpaceMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

:root {
  --primary: #69D6EB;
  --primary-light: #a3d8e1;
  --primary-dark: #6dc6d8;
  --bg-dark: #060f1c;
  /* Deep navy */
  --bg-darker: #040a12;
  --bg-light: #f4f5f5;
  --text-main: #343742;
  --text-muted: #5c5c67;
  --text-light: #919096;
  --white: #ffffff;

  --font-main: 'Roboto', sans-serif;
  --font-display: 'Space Mono', monospace;

  --border-radius: 12px;
  --shadow: 0 10px 30px rgba(6, 15, 28, 0.08);
  --shadow-hover: 0 15px 40px rgba(6, 15, 28, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
}

.page-overflow-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  color: var(--bg-dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 4px;
}

.programme-header-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.programme-header-img {
  width: 100%;
  max-width: 800px;
  max-height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

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

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--bg-dark);
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(105, 214, 235, 0.4);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(105, 214, 235, 0.6);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- HERO SECTION REVISED --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-glass-bar {
  background-color: var(--white);
  color: var(--bg-dark);
  padding: 1.5rem 0;
  z-index: 10;
  border-bottom: 2px solid #eaeaea;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-img {
  height: 60px;
  width: auto;
  border-right: 2px solid #eaeaea;
  padding-right: 1.5rem;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--bg-dark);
  text-transform: uppercase;
}

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

.election-info {
  text-align: right;
  font-family: var(--font-main);
  font-size: 1.1rem;
}

.election-title-normal {
  font-weight: 400;
  font-style: normal;
}

.bold-tracking {
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 1.5rem;
  color: var(--primary);
}

.badge-date {
  background-color: #e2e8e9;
  color: var(--bg-dark);
  padding: 0.1rem 0.6rem;
  font-weight: 700;
  font-family: var(--font-main);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

/* Photo placeholder area */
.hero-image-area {
  height: 50vh;
  min-height: 400px;
  background: url("l_equipe_froeningen_2026_energie_nouvelle_menee_par_julien_bottlaender_photo_fournie_par_la_liste_1772738393_1.jpg") center 25%/cover no-repeat;
  position: relative;
  z-index: 5;
}

.programme-image-area {
  height: 35vh;
  min-height: 250px;
  background: url("image_header_village.jpeg") center/cover no-repeat;
  width: 100%;
}

/* Slogan & text area */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 5%;
  background-color: var(--bg-dark);
  margin-top: -2rem;
  /* Pull up over image slightly */
}

.hero-slogan {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 4vw;
  line-height: 1.1;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.hero-slogan .italic-serif {
  color: var(--primary);
  font-style: italic;
}

.hero-text-columns {
  display: flex;
  gap: 4rem;
  max-width: 1000px;
}

.hero-col {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d1d5db;
}

.hero-col-left {
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
}

.highlight-box {
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--bg-dark);
  padding: 0 4px;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.font-bold {
  font-weight: 700;
}

.hero-arrow-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  transform: rotate(90deg);
}

.hero-arrow-link:hover {
  transform: rotate(90deg) translateX(10px);
}

/* Background animated circles */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 214, 235, 0.08) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.circle-1 {
  width: 800px;
  height: 800px;
  bottom: -400px;
  right: -200px;
  animation: pulse 15s infinite alternate;
}

.circle-2 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: -300px;
  animation: pulse 20s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* --- LE MOT DU CANDIDAT --- */
.candidat-section {
  background-color: var(--white);
}

.candidat-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.candidat-profile {
  text-align: center;
}

.candidat-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.blockquote-wrapper {
  background-color: var(--bg-light);
  padding: 4rem 2.5rem 2.5rem;
  border-radius: var(--border-radius);
  position: relative;
  box-shadow: var(--shadow);
}

.blockquote-wrapper::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--primary-light);
  position: absolute;
  top: 15px;
  left: 20px;
  opacity: 0.3;
  line-height: 1;
  font-family: serif;
}

.blockquote-wrapper p {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 400;
}

.signature {
  font-weight: 800;
  color: var(--bg-dark);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  text-align: right;
  display: block;
}

/* --- L'ÉQUIPE --- */
.equipe-section {
  background-color: var(--bg-light);
}

.equipe-tree {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.equipe-tree::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50px;
  width: 4px;
  background-color: var(--primary-light);
  z-index: 0;
}

.tree-card {
  display: flex;
  align-items: flex-start;
  text-align: left;
  background: transparent;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tree-card:hover {
  transform: translateX(5px);
}

.tree-card .member-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin-bottom: 0;
  margin-right: 1.5rem;
  border: 4px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-light);
  z-index: 2;
}

.tree-card-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
  transition: var(--transition);
}

.tree-card-content::before {
  content: '';
  position: absolute;
  top: 35px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--white);
  transform: rotate(45deg);
}

.speech-bubble {
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px dashed #eaeaea;
  display: none;
  animation: slideDown 0.3s ease;
}

.speech-bubble .badge {
  margin-bottom: 0.4rem;
  display: inline-block;
}

.tree-card.active .speech-bubble {
  display: block;
}

.member-photo {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 1.5rem;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

.member-name {
  font-size: 1.25rem;
  color: var(--bg-dark);
  margin-bottom: 0.25rem;
}

.member-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.member-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.badge {
  background-color: rgba(105, 214, 235, 0.15);
  color: var(--bg-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* --- LE PROGRAMME --- */
.programme-section {
  background-color: var(--white);
}

.programme-container {
  max-width: 900px;
  margin: 0 auto;
}

.theme-card {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
}

.theme-header:hover {
  background-color: #fcfcfc;
}

.theme-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(105, 214, 235, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.theme-title {
  flex-grow: 1;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin: 0;
}

.theme-title::after {
  content: none;
}

.theme-chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.theme-content {
  padding: 0 2rem 1.5rem 2rem;
  display: none;
  background: var(--white);
}

.theme-card.active .theme-chevron {
  transform: rotate(180deg);
}

.theme-card.active .theme-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.theme-content ul {
  list-style: none;
  padding-left: 0;
}

.theme-content li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.theme-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* --- BANNER --- */
.cta-banner {
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(105, 214, 235, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-banner h2::after {
  background-color: var(--primary);
}

.cta-banner p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* --- FOOTER --- */
footer {
  background-color: #040a12;
  color: var(--text-muted);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .candidat-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .candidat-profile {
    flex: 0 0 250px;
  }
}

@media (max-width: 900px) {
  .hero-text-columns {
    flex-direction: column;
    gap: 2rem;
  }

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

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

  .logo {
    gap: 0.8rem;
  }

  .logo-img {
    height: 45px;
    padding-right: 0.8rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .election-info {
    font-size: 0.8rem;
    text-align: right;
  }

  .bold-tracking {
    font-size: 1rem;
  }

  .badge-date {
    font-size: 0.9rem;
  }

  .cta-banner h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .hero-slogan {
    font-size: 2rem;
  }

  .blockquote-wrapper {
    padding: 3.5rem 1.5rem 1.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .tree-card .member-photo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
  }

  .tree-card-content::before {
    top: 25px;
  }

  .equipe-tree::before {
    left: 30px;
  }
}