/* ==========================================================================
   PAGE QUI SOMMES-NOUS - LES SERRES DE MITRY
   Refonte visuelle - cohérence avec l'identité du site
   ========================================================================== */

:root {
  --vert-fonce:    #826E08;
  --vert-moyen:    #5a6521;
  --vert-clair:    #e8f0df;
  --vert-pale:     #f3f7ee;
  --sable:         #5b8c3e;
  --sable-clair:   #fef3e8;
  --terre:         #6b4f2e;
  --texte:         #2c2c2c;
  --texte-doux:    #5a5a5a;
  --blanc:         #ffffff;
  --ombre-verte:   rgba(130, 110, 8, 0.12);
  --rayon:         14px;
  --rayon-lg:      24px;
}

/* ==========================================================================
   CONTAINER — centrage cohérent avec le reste du site
   ========================================================================== */

/* On applique le container à toutes les sections de la page */
.about-intro .container,
.about-story .container,
.about-founder .container,
.about-team .container,
.about-values .container,
.about-transformation .container,
.about-cta .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Si le thème utilise .container directement sans préfixe de section */
.about-intro > .container,
.about-story > .container,
.about-founder > .container,
.about-team > .container,
.about-values > .container,
.about-transformation > .container,
.about-cta > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   HERO / INTRO HEADER
   ========================================================================== */
.page-hero.about-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

/* Bandeau décoratif haut de page */
.about-intro {
  padding: 5rem 0 4rem;
  background: var(--blanc);
  position: relative;
  overflow: hidden;
}

/* Texture végétale en arrière-plan subtile */
.about-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(90, 101, 33, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 5% 80%, rgba(130, 110, 8, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.intro-text h2 {
  font-size: 2.6rem;
  color: var(--vert-fonce);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Soulignement décoratif sous le h2 */
.intro-text h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--sable), var(--vert-moyen));
  border-radius: 2px;
  margin-top: 0.9rem;
}

.intro-text .lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--texte);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.intro-text p {
  line-height: 1.8;
  color: var(--texte-doux);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.intro-image {
  position: relative;
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px var(--ombre-verte), 0 4px 12px rgba(0,0,0,0.08);
}

/* Cadre décoratif derrière l'image */
.intro-image::before {
  content: '';
  position: absolute;
  inset: -12px -12px auto auto;
  width: 60%;
  height: 60%;
  background: var(--vert-clair);
  border-radius: var(--rayon-lg);
  z-index: -1;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro-image:hover img {
  transform: scale(1.04);
}

/* ==========================================================================
   EN-TÊTES DE SECTIONS (réutilisables)
   ========================================================================== */
.section-header {
  margin-bottom: 3.5rem;
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  border: 1.5px solid rgba(130, 110, 8, 0.15);
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--vert-fonce);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.08rem;
  color: var(--texte-doux);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   SECTION HISTOIRE / TIMELINE
   ========================================================================== */
.about-story {
  padding: 5rem 0;
  background: var(--vert-pale);
  position: relative;
}

/* Dégradé de transition haut/bas */
.about-story::before,
.about-story::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.about-story::before { top: 0;    background: linear-gradient(to bottom, var(--blanc), transparent); }
.about-story::after  { bottom: 0; background: linear-gradient(to top,   var(--blanc), transparent); }

/* Timeline */
.story-timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--vert-fonce) 0%, var(--vert-moyen) 60%, transparent 100%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--blanc);
  border: 2.5px solid var(--vert-fonce);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vert-fonce);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px var(--ombre-verte);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  background: var(--vert-fonce);
  color: var(--blanc);
  transform: scale(1.1);
  box-shadow: 0 8px 24px var(--ombre-verte);
}

.timeline-content {
  flex: 1;
  background: var(--blanc);
  padding: 1.75rem 2rem;
  border-radius: var(--rayon);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
  border-left-color: var(--sable);
  transform: translateX(8px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
}

.timeline-content h3 {
  font-size: 1.35rem;
  color: var(--vert-fonce);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.timeline-content p {
  line-height: 1.8;
  color: var(--texte-doux);
  font-size: 0.97rem;
  margin: 0;
}

.timeline-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.timeline-photos.two-up {
  grid-template-columns: 1fr 1fr;
}

.timeline-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--rayon);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

@media (max-width: 768px) {
  .timeline-photos.two-up {
    grid-template-columns: 1fr;
  }

  .timeline-photos img {
    height: 180px;
  }
}

/* ==========================================================================
   SECTION FONDATEUR
   ========================================================================== */
.about-founder {
  padding: 5rem 0;
  background: var(--blanc);
}

.founder-content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: start;
}

.founder-image {
  position: relative;
  padding-bottom: 2rem; /* espace pour le badge */
}

.founder-image img {
  width: 100%;
  height: auto;
  border-radius: var(--rayon-lg);
  box-shadow: 0 12px 40px var(--ombre-verte);
  display: block;
}

/* Liseré décoratif */
.founder-image::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: 16px;
  border: 2px solid var(--vert-clair);
  border-radius: var(--rayon-lg);
  z-index: -1;
}

.founder-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  color: var(--blanc);
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 6px 20px var(--ombre-verte);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.founder-text h2 {
  font-size: 2.4rem;
  color: var(--vert-fonce);
  margin-bottom: 0.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.founder-text h3 {
  font-size: 1.2rem;
  color: var(--sable);
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.founder-text p {
  line-height: 1.85;
  color: var(--texte-doux);
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}

.founder-cta {
  margin-top: 2.5rem;
}

/* ==========================================================================
   SECTION ÉQUIPE
   ========================================================================== */
.about-team {
  padding: 5rem 0;
  background: var(--vert-pale);
}

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

.team-member {
  background: var(--blanc);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
  border-bottom: 3px solid transparent;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 36px var(--ombre-verte);
  border-bottom-color: var(--sable);
}

.team-member-image {
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--vert-clair), #d9eacb);
  position: relative;
}

/* Motif décoratif quand l'image est manquante */
.team-member-image::after {
  content: '🌿';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  opacity: 0.2;
}

.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}

.team-member:hover .team-member-image img {
  transform: scale(1.07);
}

.team-member-content {
  padding: 1.75rem;
}

.team-member-content h3 {
  font-size: 1.55rem;
  color: var(--vert-fonce);
  margin-bottom: 0.15rem;
  font-weight: 700;
}

.team-role {
  color: var(--sable);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.team-description {
  line-height: 1.75;
  color: var(--texte-doux);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.team-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.expertise-tag {
  background: var(--vert-clair);
  color: var(--vert-fonce);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(130, 110, 8, 0.15);
  transition: background 0.2s ease, color 0.2s ease;
}

.team-member:hover .expertise-tag {
  background: var(--vert-fonce);
  color: var(--blanc);
}

/* ==========================================================================
   SECTION VALEURS
   ========================================================================== */
.about-values {
  padding: 5rem 0;
  background: var(--blanc);
}

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

.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--blanc);
  border-radius: var(--rayon-lg);
  border: 1.5px solid #e4ecd9;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Gradient d'ambiance au hover */
.value-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--vert-pale), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card:hover {
  border-color: var(--vert-moyen);
  transform: translateY(-6px);
  box-shadow: 0 10px 28px var(--ombre-verte);
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen));
  color: var(--blanc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.value-card:hover .value-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 6px 20px var(--ombre-verte);
}

.value-card h3 {
  font-size: 1.35rem;
  color: var(--vert-fonce);
  margin-bottom: 0.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.value-card p {
  line-height: 1.75;
  color: var(--texte-doux);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ==========================================================================
   SECTION TRANSFORMATION (AVANT/APRÈS)
   ========================================================================== */
.about-transformation {
  padding: 5rem 0;
  background: var(--vert-pale);
  position: relative;
}

.about-transformation::before,
.about-transformation::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.about-transformation::before { top: 0;    background: linear-gradient(to bottom, var(--blanc), transparent); }
.about-transformation::after  { bottom: 0; background: linear-gradient(to top,   var(--blanc), transparent); }

.before-after {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.comparison-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--blanc);
  padding: 2.5rem;
  border-radius: var(--rayon-lg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #e8f0df;
}

.comparison-item:nth-child(even) {
  direction: rtl;
}

.comparison-item:nth-child(even) .comparison-text {
  direction: ltr;
}

.comparison-image {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.comparison-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.comparison-item:hover .comparison-image img {
  transform: scale(1.03);
}

.comparison-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.label-before {
  background: rgba(204, 51, 0, 0.92);
  color: var(--blanc);
}

.label-after {
  background: rgba(45, 120, 50, 0.92);
  color: var(--blanc);
}

.comparison-text h3 {
  font-size: 1.65rem;
  color: var(--vert-fonce);
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.comparison-text p {
  line-height: 1.8;
  color: var(--texte-doux);
  font-size: 0.97rem;
  margin: 0;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.about-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--vert-fonce) 0%, var(--vert-moyen) 100%);
  color: var(--blanc);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Le footer a un margin-top global (footer.css) pensé pour les pages qui finissent
   sur du contenu blanc. Ici la section juste avant est déjà colorée en plein cadre,
   ce margin créerait un bandeau blanc entre les deux fonds colorés. */
.about-cta ~ .site-footer {
  margin-top: 0;
}

/* Motif décoratif */
.about-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 50% 60% at 10% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--blanc);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  opacity: 0.92;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

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

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--rayon);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.97rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 2px solid transparent;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--sable);
  color: var(--blanc);
  border-color: var(--sable);
}

.btn-primary:hover {
  background: #3f6b2a;
  border-color: #3f6b2a;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(91, 140, 62, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: var(--blanc);
  color: var(--vert-fonce);
  border-color: var(--blanc);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   RESPONSIVE - TABLETTE
   ========================================================================== */
@media (max-width: 1024px) {
  .intro-content,
  .founder-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .founder-image {
    max-width: 380px;
    margin: 0 auto;
  }

  .comparison-item {
    grid-template-columns: 1fr;
  }

  .comparison-item:nth-child(even) {
    direction: ltr;
  }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 768px) {
  .about-intro .container,
  .about-story .container,
  .about-founder .container,
  .about-team .container,
  .about-values .container,
  .about-transformation .container,
  .about-cta .container,
  .page-hero.about-hero {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .about-intro,
  .about-story,
  .about-founder,
  .about-team,
  .about-values,
  .about-transformation,
  .about-cta {
    padding: 3.5rem 0;
  }

  .section-header h2,
  .intro-text h2,
  .founder-text h2,
  .cta-content h2 {
    font-size: 1.9rem;
  }

  .intro-text .lead {
    font-size: 1.05rem;
  }

  .story-timeline::before {
    left: 31px;
  }

  .timeline-item {
    gap: 1.25rem;
  }

  .timeline-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

  .timeline-content {
    padding: 1.4rem 1.5rem;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .comparison-item {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item,
.team-member,
.value-card,
.comparison-item {
  animation: fadeInUp 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.08s; }
.timeline-item:nth-child(2) { animation-delay: 0.16s; }
.timeline-item:nth-child(3) { animation-delay: 0.24s; }
.timeline-item:nth-child(4) { animation-delay: 0.32s; }
.timeline-item:nth-child(5) { animation-delay: 0.40s; }

.team-member:nth-child(1) { animation-delay: 0.08s; }
.team-member:nth-child(2) { animation-delay: 0.18s; }
.team-member:nth-child(3) { animation-delay: 0.28s; }
.team-member:nth-child(4) { animation-delay: 0.38s; }

.value-card:nth-child(1) { animation-delay: 0.08s; }
.value-card:nth-child(2) { animation-delay: 0.16s; }
.value-card:nth-child(3) { animation-delay: 0.24s; }
.value-card:nth-child(4) { animation-delay: 0.32s; }

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}