/*--------------------------------------------------------------
# General & Variables
--------------------------------------------------------------*/
:root {
  --heading-color: #2a2c39;
  --accent-color: #ef6603;
  --text-color: #555;
  --light-bg: rgba(239, 101, 3, 0.05);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-apropos {
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(94, 59, 52, 0.8)),
        url('../../assets/img/apropos/hero.png') center center / cover no-repeat;
    color: white;
    padding: 80px 20px; /* Adjusted padding for mobile */
    text-align: center;
    margin-top: 90px;
}

.hero-apropos h1 {
    font-size: 3rem; /* Adjusted font size */
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-apropos .subtitle {
    font-size: 1.1rem; /* Adjusted font size */
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Qui Sommes-Nous Section
--------------------------------------------------------------*/
.section-notrehistoire .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 10px 0;
}

.section-notrehistoire .description {
    font-weight: 500;
    font-size: 1rem;
    max-width: 63%;
    margin: 0 auto;
}

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

.about-card {
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding-bottom: 30px;
}

.about-card.dark {
    background-color: #2a2c39;
}

.about-card.orange {
    background-color: #ef6603;
}

.about-card .icon {
    width: 80px;
    height: 80px;
    margin: 40px auto 20px;
    background-color: #ffffff; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card .icon i {
    font-size: 2rem;
    color: #ef6603;
    line-height: 1;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
    color: white;
}

.about-card p {
    font-size: 1rem;
    padding: 0 20px;
    opacity: 0.9;
    color: white;
}

/*--------------------------------------------------------------
# Nos Valeurs Section
--------------------------------------------------------------*/
.section-nos-valeurs {
    padding: 60px 0;
}

.values-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--heading-color);
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 15px; /* Added horizontal padding */
}

.value-card {
    padding: 30px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.value-description {
    font-size: 1.05rem;
    color: var(--text-color);
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Notre Histoire Section
--------------------------------------------------------------*/
.section-histoire {
    padding: 80px 0;
    background-color: var(--light-bg);
    overflow: hidden; /* Prevent circles from creating horizontal scroll */
}

.circle-left,
.circle-right,
.circle-right-top {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--heading-color);
    opacity: 0.05;
    z-index: 0;
}

.circle-left { top: 50%; left: -75px; }
.circle-right { bottom: 15%; right: -75px; }
.circle-right-top { top: 15%; right: 20px; }

.section-histoire .section-title, .section-equipe .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-histoire .section-subtitle, .section-equipe .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px; /* Move line to the left for mobile */
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 100%; 
    padding-left: 70px;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    z-index: 1;
}

.timeline-content {
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.5rem;
    text-align:left;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    text-align:left;
    color: var(--text-color);
    line-height: 1.6;
}

/*--------------------------------------------------------------
# Notre Équipe Section
--------------------------------------------------------------*/
.section-equipe {
  padding: 80px 0;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 20px;
}

@media (max-width: 992px) {
  .equipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


.equipe-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.equipe-card-overlay {
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    background: linear-gradient(to top, rgb(42 44 57 / 73%) 0%, rgb(42 44 57 / 17%) 40%, rgba(103, 105, 115, 0) 100%);
    display: flex
;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.equipe-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.equipe-card-role {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.equipe-card-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  font-size: 1.4rem;
  color: white;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #ccccccff;
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# CTA Section
--------------------------------------------------------------*/
.cta {
    background: var(--accent-color);
    color: white;
    padding: 4rem 20px;
    text-align: center;
    margin: 4rem 0;
    border-radius: 0; /* Full width on mobile */
}
.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta .btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}
.cta .btn:hover {
    background: transparent;
    border-color: white;
    color: white;
}

/*--------------------------------------------------------------
# Responsive Media Queries
--------------------------------------------------------------*/
@media (min-width: 768px) {
    /* Revert timeline to centered on larger screens */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        width: 50%;
        padding-left: 0; /* Reset padding */
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 50px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-icon {
        right: -30px;
        left: auto;
    }

    .timeline-item:nth-child(even) .timeline-icon {
        left: -30px;
        right: auto;
    }

    .cta {
      border-radius: 20px; /* Apply border radius on larger screens */
    }
}


@media (max-width: 768px) {
    .hero-apropos h1,
    .section-notrehistoire .section-title,
    .values-title,
    .section-histoire .section-title,
    .section-equipe .section-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-apropos .subtitle,
    .section-histoire .section-subtitle,
    .section-equipe .section-subtitle {
        font-size: 1rem;
    }

    .section-notrehistoire .description {
        max-width: 100%;
        font-size: 1rem;
    }

    .about-grid {
      grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .values-grid {
        grid-template-columns: 1fr; /* Stack values vertically */
    }

    .equipe-grid {
      grid-template-columns: 1fr; /* Stack team members vertically */
    }

    .cta h2 {
      font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-apropos {
        padding: 60px 15px;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}