/* ========================================
   COQ COACHING — Photo Placeholders
   À remplacer par les vraies photos
   via remplacerPhoto(id, fichier)
======================================== */

/* ── BASE ── */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1A1A18 0%, #2C2C28 60%, #1f1f1c 100%);
  border: 1px solid rgba(184,149,90,0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Initiales watermark */
.ph-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 20%, 130px);
  font-weight: 700;
  color: rgba(184,149,90,0.07);
  letter-spacing: 4px;
  pointer-events: none;
  user-select: none;
}

/* Texte label */
.ph-label {
  position: relative;
  z-index: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #B8955A;
  text-align: center;
  padding: 0 16px;
  line-height: 1.6;
}

/* Icône ou emoji centré */
.ph-icon {
  position: relative;
  z-index: 1;
  font-size: 28px;
  opacity: 0.7;
}

/* Ligne déco sous le label */
.ph::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,149,90,0.4), transparent);
}

/* ── VARIANTES DE TAILLE ── */

/* Hero principal 600×700 */
.ph--hero {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 6/7;
}

/* Portrait 400×500 */
.ph--portrait {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/5;
}

/* Carré 500×500 */
.ph--square {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
}

/* Paysage 500×350 */
.ph--landscape {
  width: 100%;
  aspect-ratio: 10/7;
}

/* Timeline 200×150 */
.ph--timeline {
  width: 200px;
  height: 150px;
  flex-shrink: 0;
}

/* Bannière large 700×400 */
.ph--banner {
  width: 100%;
  aspect-ratio: 7/4;
  max-height: 400px;
}

/* Présentiel 400×300 */
.ph--medium {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
}

/* ── RONDS ── */
.ph--round {
  border-radius: 50%;
}

/* Avatar 80×80 */
.ph--avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #B8955A;
  border: none;
  flex-shrink: 0;
}
.ph--avatar .ph-label {
  font-size: 20px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: #1A1A18;
  letter-spacing: 0;
  padding: 0;
}
.ph--avatar::after { display: none; }

/* Avatar portrait rond 120×120 */
.ph--avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ph--avatar-lg .ph-initials { font-size: 40px; color: rgba(184,149,90,0.2); }

/* ── QUAND REMPLACÉ PAR UNE VRAIE PHOTO ── */
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
}
.ph.ph--replaced .ph-initials,
.ph.ph--replaced .ph-label,
.ph.ph--replaced .ph-icon { display: none; }

/* ── HERO AVEC PHOTO ── */
.hero-with-photo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 24px 80px;
}
.hero-with-photo .hero-content {
  padding: 0;
  max-width: 100%;
  margin: 0;
}
.hero-photo-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ── TIMELINE AVEC PHOTO ── */
.tv2-card-with-photo {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tv2-card-with-photo .ph--timeline {
  margin-top: 4px;
}
.tv2-timeline-logo {
  width: 200px;
  height: 150px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 6px;
}

/* DESJEPS : image pleine largeur sous le texte */
.desjeps-card {
  flex-direction: column !important;
  gap: 0 !important;
}
.desjeps-card .tv2-photo--full {
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
}
.desjeps-card .tv2-photo-img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

/* ── SECTION ABOUT-TEASER AJUSTÉE ── */
.about-teaser-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── SENIOR PLACEHOLDERS ── */
.senior-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

/* ── CONTACT PORTRAIT ── */
.contact-portrait-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-portrait-wrap .ph--avatar-lg {
  border: 2px solid rgba(184,149,90,0.4);
}
.contact-portrait-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(184,149,90,0.4);
  flex-shrink: 0;
}
.contact-portrait-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.contact-portrait-info span {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-with-photo {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
  .hero-photo-col { justify-content: flex-start; }
  .ph--hero { max-width: 320px; aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .ph--timeline { width: 140px; height: 105px; }
  .tv2-timeline-logo { width: 140px; height: 105px; }
  .senior-photo-row { grid-template-columns: 1fr; }
}

/* ── TIMELINE MOBILE : empiler photo + texte verticalement ── */
@media (max-width: 480px) {
  /* Colonne gauche plus étroite pour laisser plus de place à la card */
  .timeline-v2-item { grid-template-columns: 56px 24px 1fr; }
  .tv2-year { font-size: 15px; }
  .tv2-card { padding: 16px 14px 18px; margin-left: 8px; }

  /* Image + texte : passer en colonne pour les cards avec photo */
  .tv2-card-with-photo {
    flex-direction: column;
    gap: 12px;
  }
  /* Photo placeholder : pleine largeur, hauteur réduite */
  .tv2-card-with-photo .ph--timeline {
    width: 100%;
    height: 90px;
    flex-shrink: initial;
  }
  /* Logo COQ COACHING : centré, taille raisonnable */
  .tv2-timeline-logo {
    width: 100%;
    max-width: 140px;
    height: auto;
    margin: 0 auto 4px;
    display: block;
  }
}
