/*
Theme Name: Monistrol 2026
Theme URI: https://monistrol2026.fr
Author: Campagne Électorale Monistrol 2026
Description: Thème pour une commune solidaire, rurale, démocratique et durable
Version: 1.0
*/

/* Variables CSS */
:root {
  --primary-color: #2d3748;  /* Gris anthracite */
  --secondary-color: #4a5568; /* Gris ardoise */
  --accent-color: #3182ce;   /* Bleu professionnel */
  --warm-accent: #e53e3e;    /* Rouge discret */
  --neutral-dark: #1a202c;   /* Gris très foncé */
  --neutral-light: #f7fafc;  /* Gris très clair */
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Reset et Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--neutral-light);
  overflow-x: hidden;
}

/* Remove default link styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Typography - Sans-serif pour accessibilité (dyslexie) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 { 
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { 
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-color);
}

h3 { 
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--neutral-dark);
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Navigation */
.navbar {
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99999;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.nav-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Arrow */
.dropdown-arrow {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Arrow rotation now handled by .dropdown-open class */

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: white;
  min-width: 280px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1rem 0;
  border-top: 3px solid var(--accent-color);
  list-style: none;
}

/* Desktop: open on click, not hover */
.has-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.has-dropdown.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  background: rgba(49, 130, 206, 0.1);
  color: var(--accent-color) !important;
  border-left-color: var(--accent-color);
  text-decoration: none !important;
}

/* Dropdown main links (projets phares, 8 piliers) */
.dropdown-link-main {
  font-weight: 600 !important;
  color: var(--accent-color) !important;
  background: rgba(49, 130, 206, 0.05);
}

.dropdown-link-main:hover {
  background: rgba(49, 130, 206, 0.15);
}

/* Dropdown separator */
.dropdown-separator {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0.5rem 1rem;
}

/* Hero Section */
.hero {
  margin-top: 75px;
  padding: 2rem 0;
  min-height: calc(80vh - 75px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-light) 0%, #e2e8f0 100%);
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(74, 85, 104, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(90, 103, 216, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(237, 137, 54, 0.05) 0%, transparent 50%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-layout {
  max-width: 100%;
}

.hero-header {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-header h1 {
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease;
  line-height: 1.2;
  max-width: 100%;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  padding: 0 1rem;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.programme-summary h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.axes-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.axe-tag {
  background: rgba(49, 130, 206, 0.1);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(49, 130, 206, 0.2);
  transition: var(--transition);
}

.axe-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.collective-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.6s both;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.6s both;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.social-icons-hero {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: 0.5rem;
}

.social-icon-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon-hero:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.social-icon-hero svg {
  width: 22px;
  height: 22px;
}

.reunion-annonce {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
}

.reunion-annonce:hover {
  background: white;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(49, 130, 206, 0.4);
  background: #2b77cb;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Annie message styling */
.annie-message {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.annie-photo {
  flex-shrink: 0;
}

.annie-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
}

.annie-text {
  flex: 1;
}

.annie-text p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.annie-text .signature {
  text-align: right;
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 1.5rem;
}

/* Collective photo styling */
.collective-photo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.collective-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  text-align: center;
}

.photo-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.photo-overlay p {
  margin: 0;
  opacity: 0.9;
}

/* Programme Sections */
.programme-section {
  background: var(--white);
  padding: 3rem 0;
  position: relative;
}

.programme-section:nth-child(even) {
  background: #f0f4f8;
}

.programme-section:nth-child(even) .programme-card {
  background: white !important;
  border: 2px solid #a0aec0 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Force toutes les cartes à être visibles */
.programme-card {
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 500;
  margin-top: 0.5rem;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(49, 130, 206, 0.3);
}

.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .programme-grid {
    grid-template-columns: 1fr;
  }
}

.programme-card {
  background: white !important;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd5e0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.programme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--section-color, var(--accent-color));
}

/* Couleurs distinctes par section de programme */
#democratie { --section-color: #3182ce; }  /* Bleu */
#urbanisme { --section-color: #0891b2; }   /* Cyan/Teal */
#economie { --section-color: #b7791f; }    /* Or/Ocre */
#solidarite { --section-color: #9b2c2c; }  /* Rouge bordeaux */
#mobilites { --section-color: #6b46c1; }   /* Violet */
#ecologie { --section-color: #276749; }    /* Vert forêt */
#culture { --section-color: #c05621; }     /* Orange brûlé */
#securite { --section-color: #2c5282; }    /* Bleu marine */

/* Appliquer la couleur de section aux éléments */
.programme-section .section-number {
  background: var(--section-color, var(--accent-color));
}

.programme-section .programme-card::before {
  background: var(--section-color, var(--accent-color));
}

.programme-section .programme-details {
  border-left-color: var(--section-color, var(--accent-color));
}

.programme-section summary {
  color: var(--section-color, var(--accent-color));
  background: color-mix(in srgb, var(--section-color, var(--accent-color)) 10%, white);
}

.programme-section summary:hover {
  background: var(--section-color, var(--accent-color));
  color: white;
}

.programme-section .programme-card-icon {
  background: color-mix(in srgb, var(--section-color, var(--accent-color)) 10%, white);
  border-color: color-mix(in srgb, var(--section-color, var(--accent-color)) 25%, white);
  color: var(--section-color, var(--accent-color));
}

.programme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.programme-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(49, 130, 206, 0.1);
  border: 2px solid rgba(49, 130, 206, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
  text-align: center;
}

.programme-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.programme-card ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
  width: 100%;
}

.programme-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.programme-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--section-color, var(--accent-color));
  font-weight: bold;
}

/* Tête de liste card photo */
.tete-liste-photo {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.tete-liste-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 2.5rem 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: var(--transition);
  text-align: center;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Feature Items Clickable */
.feature-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-item-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-5px);
}

.feature-item-link:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
}

/* Couleurs des pastilles programme alignées avec les sections */
a[href="#democratie"] .feature-icon { background: #3182ce; }
a[href="#urbanisme"] .feature-icon { background: #0891b2; }
a[href="#economie"] .feature-icon { background: #b7791f; }
a[href="#solidarite"] .feature-icon { background: #9b2c2c; }
a[href="#mobilites"] .feature-icon { background: #6b46c1; }
a[href="#ecologie"] .feature-icon { background: #276749; }
a[href="#culture"] .feature-icon { background: #c05621; }
a[href="#securite"] .feature-icon { background: #2c5282; }

a[href="#democratie"]:hover .feature-icon { background: #2b6cb0; }
a[href="#urbanisme"]:hover .feature-icon { background: #0e7490; }
a[href="#economie"]:hover .feature-icon { background: #975a16; }
a[href="#solidarite"]:hover .feature-icon { background: #822727; }
a[href="#mobilites"]:hover .feature-icon { background: #553c9a; }
a[href="#ecologie"]:hover .feature-icon { background: #1e4d3a; }
a[href="#culture"]:hover .feature-icon { background: #9c4221; }
a[href="#securite"]:hover .feature-icon { background: #234876; }

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.timeline-content {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-date {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Contact Section */
.contact {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.contact h2 {
  color: white;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background: var(--neutral-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(49, 130, 206, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.3);
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Logo mobile - hide text since it's in the image */
  .logo-text {
    display: none;
  }

  .logo-img {
    height: 50px;
  }

  .nav-container {
    padding: 0.5rem;
  }

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

  .hero-header h1 {
    white-space: normal;
    line-height: 1.3;
  }

  .axes-preview {
    gap: 0.5rem;
  }

  .axe-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .annie-message {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 1rem;
  }

  .annie-photo img {
    width: 100px;
    height: 100px;
  }

  .collective-photo img {
    height: 200px;
  }

  .photo-overlay {
    padding: 1rem;
  }

  .programme-summary h3 {
    font-size: 1.1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    gap: 0.5rem;
  }

  .timeline-content {
    order: 2;
    padding: 1.2rem;
  }

  .timeline-date {
    order: 1;
    text-align: left;
    font-size: 1rem;
  }

  .timeline-dot {
    left: 20px;
    top: 0.5rem;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999999 !important;
    isolation: isolate;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu .nav-item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-menu .nav-item:last-child {
    border-bottom: none;
  }

  .nav-menu .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    display: block;
  }

  /* Mobile dropdown adjustments */
  .dropdown-menu {
    position: static;
    background: rgba(49, 130, 206, 0.05);
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 0;
    padding: 0;
    border: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }

  .has-dropdown.mobile-open .dropdown-menu {
    max-height: 500px;
    margin-top: 0;
    padding: 0;
    border-top: 1px solid rgba(49, 130, 206, 0.2);
  }

  .dropdown-menu li {
    border-bottom: 1px solid rgba(49, 130, 206, 0.1);
  }

  .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .dropdown-link {
    text-decoration: none !important;
    color: var(--text-dark) !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.9rem !important;
  }

  .dropdown-link-main {
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
  }

  .dropdown-arrow {
    display: inline-block;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .social-icons-hero {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

/* Hamburger Menu - hidden by default on desktop */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-dark);
}

/* Force hamburger visible on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: block !important;
  }
}

/* Programme Details */
.programme-details {
  margin-top: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.programme-details h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.programme-details h4:first-child {
  margin-top: 0;
}

.programme-details ul {
  margin-bottom: 1rem;
}

.programme-details li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

details {
  margin: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-color);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: rgba(49, 130, 206, 0.08);
  border-radius: 6px;
  display: inline-block;
}

summary:hover {
  color: white;
  background: var(--accent-color);
}

.programme-summary {
  margin-top: 1rem;
}

/* Programme Cards Clickable */
.programme-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

.programme-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.card-click-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  color: var(--accent-color);
  background: rgba(49, 130, 206, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  opacity: 0;
  transition: var(--transition);
}

.programme-card-link:hover .card-click-hint {
  opacity: 1;
}

.programme-card-link:hover {
  transform: translateY(-8px);
}

/* Anchor offset for fixed navbar */
.programme-section {
  scroll-margin-top: 100px;
}

/* Scroll reveal */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

/* 3 Projets Phares Section */
.programme-section.projets-phares {
  background: var(--primary-color) !important;
  color: white;
}

.programme-section.projets-phares .section-header h2,
.programme-section.projets-phares .section-header p {
  color: white !important;
}

.programme-section.projets-phares .section-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.programme-section.projets-phares .section-number {
  background: var(--accent-color) !important;
  color: white !important;
  font-weight: 800;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 968px) {
  .projets-grid {
    grid-template-columns: 1fr;
  }
}

.projet-phare-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  padding: 2rem;
  color: var(--text-dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.projet-phare-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.projet-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.projet-phare-card h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}

.projet-lieu {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.projet-points {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.projet-points li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* Liste Intro */
.liste-intro {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--accent-color);
}

.liste-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.liste-intro p:last-child {
  margin-bottom: 0;
}

/* Liens cliquables hero */
.annie-link,
.collective-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.annie-link:hover,
.collective-link:hover {
  transform: translateY(-3px);
  opacity: 0.95;
}

.annie-link:hover .annie-message,
.collective-link:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Bouton retour en haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}