@import '../root.css';


/* Hero content avec flexbox */
.hero-content {
    flex: 1;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--spacing-md);
    margin-bottom: 50px;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    align-items: center;
    text-transform: capitalize;
}

.hero-intro h1 {
    font-family: var(--font-primary);
    font-size: var(--font-size-huge);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    margin-top: 80px;
}


.hero__subtitle {
  font-family: var(--font-tertiary);
  font-size: var(--font-size-medium);
  color: var(--color-text-light);
  text-transform: none;
  margin-bottom: 2.5rem;
}

/* Conteneur général */
.container {
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.about-intro .about-image img{
    height: auto;
    width: 100%;
}

/* Styles pour la section DALENCY */
.dalency-intro {
    padding: var(--spacing-xl) 0;
  }
  
  .intro-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
  }
  
  .company-name {
    font-size: var(--font-size-xlarge);
    font-weight: 700;
    margin-right: var(--spacing-md);
    flex: 0 0 30%;
  }
  
  .company-description {
    flex: 0 0 65%;
  }
  
  .company-description p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
  }
  
  /* Section Philosophie */
  .philosophy-section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-title {
    text-align: center;
    font-size: var(--font-size-xlarge);
    margin-bottom: var(--spacing-xl);
    font-weight: 500;
  }
  
  .philosophy-content {
    display: flex;
    flex-wrap: wrap;
  }

  .company-description,
  .philosophy-text {
    font-size: var(--font-size-medium);
  }
  
  .philosophy-text {
    flex: 0 0 60%;
    padding-right: var(--spacing-lg);
  }
  
  .philosophy-image {
    flex: 0 0 40%;
    /* background-color: #f5f5f5; */
  }
  .philosophy-image img {
    width: 440px;
    height: 520px;
    object-fit: cover;
    max-width: 100%; /* Assure que l'image ne dépasse jamais la largeur de son conteneur */
  }
  
  .philosophy-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
  }
  
  .cta-container {
    margin-top: var(--spacing-lg);
  }
  
  .cta-button {
    display: inline-block;
    text-decoration: underline;
    color: #000;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
.methodology-section {
    padding: var(--spacing-xl) 0;
  }
  
  .methodology-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
    font-size: var(--font-size-large);
    line-height: 1.5;
  }
  
  .methodology-steps {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .methodology-step {
    margin-bottom: var(--spacing-md);
  }
  
  .step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-sm) 0;
    transition: color 0.2s ease;
  }
  
  .step-header:hover {
    color: #555;
  }
  
  .step-title {
    font-size: var(--font-size-medium);
    font-weight: 500;
  }
  
  .toggle-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
  }
  
  .plus-icon {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.3s ease;
  }
  
  .step-content {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-xl);
    line-height: 1.6;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* États du collapse */
  .step-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .step-content.expanded {
    max-height: 300px; /* Ajustez selon le contenu */
    opacity: 1;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
  }
  
  .step-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: var(--spacing-md) 0;
  }
  
  /* Supprime le dernier diviseur */
  .methodology-step:last-child .step-divider {
    display: none;
  }
  
  /* Animation du bouton lors du clic */
  .step-header:active .toggle-btn {
    transform: scale(0.9);
  }
  
  /* Rotation de l'icône lorsque le contenu est déplié */
  .expanded + .step-header .plus-icon {
    transform: rotate(45deg);
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .hero-intro h1 {
      font-size: 3rem;
    }
    .hero__subtitle{
      font-size: var(--font-size-small);
    }
    .company-name, 
    .company-description,
    .philosophy-text,
    .philosophy-image {
      flex: 0 0 100%;
    }

    .philosophy-image img {
      width: 100%;
      height: auto;
      max-height: 400px;
      object-fit: contain;
    }
    
    .philosophy-image {
      display: flex;
      justify-content: center;
    }
    
    .company-name {
      margin-bottom: var(--spacing-md);
    }
    
    .philosophy-text {
      padding-right: 0;
      margin-bottom: var(--spacing-lg);
    }

    .methodology-intro {
      font-size: var(--font-size-medium);
    }
    
    .step-content {
      padding-right: var(--spacing-sm);
    }
  }