/* Histoire Page Styles */
:root {
  --primary-color: #0B3764;
  --secondary-color: #FFC107;
  --accent-color: #FF9800;
  --light-color: #F5F5F5;
  --dark-color: #333333;
  --text-color: #555555;
  --border-color: #E0E0E0;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --timeline-color: var(--primary-color);
  
  /* @tweakable primary color for the history page */
  --history-primary: #4CAF50;
  
  /* @tweakable secondary color for the history page */
  --history-secondary: #0B3764;
}

body {
  background-color: #ffffff;
}

/* Page Hero Section */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(11, 55, 100, 0.8), rgba(11, 55, 100, 0.5)),
    url('/static/impact_default.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.page-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-hero p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Timeline Section */
.timeline-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--timeline-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 4rem;
}

.timeline-marker {
  position: absolute;
  background-color: var(--timeline-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 2;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(76, 175, 80, 0.3);
}

.timeline-content {
  position: relative;
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--timeline-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: auto;
  right: calc(100% + 2rem);
}

.timeline-item:nth-child(even) .timeline-date {
  left: calc(100% + 2rem);
  right: auto;
}

.timeline-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 2rem;
}

.timeline-image {
  height: 240px;
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-card:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-text {
  padding: 1.5rem;
}

.timeline-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.timeline-text p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Founders Section */
.founders-section {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.founder-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.founder-image {
  height: 300px;
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.founder-card:hover .founder-image img {
  transform: scale(1.05);
}

.founder-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.founder-content h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.founder-role {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.founder-bio {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.founder-quote {
  background-color: #f5f5f5;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  margin-top: auto;
}

.founder-quote i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.founder-quote blockquote {
  font-style: italic;
  color: var(--dark-color);
  line-height: 1.6;
}

/* Values Section */
.values-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Vision Section */
.vision-section {
  position: relative;
  padding: 5rem 0;
  color: #fff;
  overflow: hidden;
}

.vision-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(76, 175, 80, 0.70), rgba(11, 55, 100, 0.70)),
    url('/static/hero-background.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.vision-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-header.light {
  color: #fff;
}

.section-header.light .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.vision-text {
  margin-top: 2rem;
}

.vision-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.vision-text ul {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.vision-text ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.vision-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: bold;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 20px;
  background: #f9f9f9;
  position: relative;
}

.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: #00a86b;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  margin-top: 10px;
  font-weight: 700;
  color: #222;
}

.section-header p {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin: 10px auto 0;
}

.testimonials-slider {
  position: relative;
}

.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.testimonial-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #00a86b;
  margin-bottom: 20px;
}

.testimonial-quote {
  position: relative;
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  padding: 0 20px;
}

.testimonial-quote i {
  font-size: 24px;
  color: #00a86b;
  margin-bottom: 10px;
  display: block;
}

.testimonial-author {
  margin-top: 20px;
  text-align: center;
}

.testimonial-author h4 {
  font-size: 18px;
  color: #111;
  font-weight: 600;
}

.testimonial-author p {
  font-size: 14px;
  color: #777;
}

/* Swiper Navigation */
.testimonials-navigation {
  margin-top: 30px;
  text-align: center;
}

.swiper-button-prev,
.swiper-button-next {
  color: #00a86b;
  transition: 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #00724d;
}

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: #00a86b;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 25px 15px;
  }

  .testimonial-quote {
    font-size: 15px;
    padding: 0;
  }

  .section-header h2 {
    font-size: 28px;
  }
}


/* Join Section */
.join-section {
  padding: 5rem 0;
  background-color: var(--secondary-color);
  color: #fff;
}

.join-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.join-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.join-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.join-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  min-width: 180px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
    display: block;
    transform: none;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-item:nth-child(odd) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    left: 0;
    right: auto;
    top: -40px;
  }
}

@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 2.8rem;
  }
  
  .testimonial-card {
    flex-direction: column;
  }
  
  .testimonial-image {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }
  
  .page-hero p {
    font-size: 1.1rem;
  }

  .timeline-marker {
    left: 20px;
    transform: translateY(-30px);
  }
  
  .timeline-image {
    height: 180px;
    
  }

  .timeline-card,.timeline-date {
    border-radius: 0 !important;
  }

  
  .timeline-text h3 {
    font-size: 1.3rem;
  }
  
  .founders-grid {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .join-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .join-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .page-hero {
    min-height: 50vh;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .timeline-text {
    padding: 1rem;
  }
  
  .founder-image {
    height: 220px;
  }
  
  .founder-content {
    padding: 1.5rem;
  }
  
  .founder-content h3 {
    font-size: 1.5rem;
  }
  
  .vision-text ul li {
    font-size: 1rem;
  }
  
  .join-text h2 {
    font-size: 1.8rem;
  }
}

