/* ============================================
   LA TOUCHE K — PAGE A PROPOS DE NOUS (TEMPLATE)
   Fichier : ltk-pg-apdn.css
   Niveau 1 : CORE
   ============================================ */

/* --- Section Valeurs --- */


.ltk-pg-apdn-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .ltk-pg-apdn-values-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Section Timeline (modulable 2 à N jalons) --- */


/* Flex column = adapte automatiquement à 2, 4, 6+ items sans casser le layout */
.ltk-pg-apdn-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Ligne verticale continue derrière les markers */
.ltk-pg-apdn-timeline-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 5px;
  width: 2px;
  background-color: var(--ltk-core-color-accent);
  opacity: 0.3;
}

.ltk-pg-apdn-timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.ltk-pg-apdn-timeline-marker {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--ltk-core-color-accent);
  border: 2px solid var(--ltk-core-color-white);
  box-shadow: 0 0 0 2px var(--ltk-core-color-accent);
  margin-top: 8px;
  z-index: 1;
}

.ltk-pg-apdn-timeline-content {
  background-color: var(--ltk-core-color-white);
  border-radius: var(--ltk-core-radius, 8px);
  padding: var(--ltk-core-space-lg, 1.5rem);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  flex: 1;
}

/* --- Avatar dans la timeline --- */

.ltk-pg-apdn-timeline-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--ltk-core-color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.ltk-pg-apdn-timeline-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Section Réalisations (optionnelle) --- */
.ltk-pg-apdn-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ltk-pg-apdn-works-images {
  position: relative;
  height: 400px;
}

.ltk-pg-apdn-works-img {
  position: absolute;
  border-radius: var(--ltk-core-radius, 8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform var(--ltk-core-transition-normal);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.ltk-pg-apdn-works-img:hover {
  transform: translateY(-8px);
  z-index: 10;
}

.ltk-pg-apdn-works-img--1 {
  width: 65%;
  height: 60%;
  top: 0;
  left: 0;
  z-index: 2;
}

.ltk-pg-apdn-works-img--2 {
  width: 55%;
  height: 50%;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.ltk-pg-apdn-works-img--3 {
  width: 45%;
  height: 40%;
  bottom: -30px;
  left: 20%;
  z-index: 3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ltk-pg-apdn-works-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ltk-pg-apdn-works-images {
    height: 320px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  /* Collage simplifié : 2 images en diagonale, la 3ème masquée */
  .ltk-pg-apdn-works-img--1 {
    width: 70%;
    height: 65%;
    top: 0;
    left: 0;
  }

  .ltk-pg-apdn-works-img--2 {
    width: 60%;
    height: 55%;
    bottom: 0;
    right: 0;
  }

  .ltk-pg-apdn-works-img--3 {
    display: none; /* masquée : évite la surcharge visuelle en petit espace */
  }

  .ltk-pg-apdn-timeline-content {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .ltk-pg-apdn-timeline-avatar {
    margin-bottom: 0;
  }

  .ltk-pg-apdn-timeline-content > div:not(.ltk-pg-apdn-timeline-avatar) {
    flex: 1;
  }
}

@media (max-width: 478px) {
  .ltk-pg-apdn-works-images {
    height: 260px;
    max-width: 320px;
    width: 100%;
  }
}