/* FomLove - Page profil individuel */

/* LAYOUT PROFIL */

.profile-page {
  padding: var(--space-6) 0 var(--space-12);
}

.profile-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* COLONNE GAUCHE - Galerie */

.profile-gallery {}

/* Photo principale */
.gallery-main {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* ratio 2:3 */
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: zoom-in;
  margin-bottom: var(--space-3);
}

.gallery-main__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-main:hover .gallery-main__img {
  transform: scale(1.03);
}

/* Icône zoom */
.gallery-main__zoom {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  transition: background-color var(--transition-fast);
  z-index: 2;
}

.gallery-main:hover .gallery-main__zoom {
  background-color: rgba(232,23,93,0.7);
  color: #fff;
}

.gallery-main__zoom svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Placeholder */
.gallery-main__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(160deg, #1a1a1a 0%, #111 100%);
  color: var(--color-text-muted);
}

.gallery-main__placeholder svg {
  width: 56px;
  height: 56px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.3;
}

/* Thumbnails */
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.gallery-thumb {
  position: relative;
  padding-bottom: 100%; /* carré */
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-surface);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast),
              transform var(--transition-fast);
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  border-color: var(--color-primary);
}

.gallery-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* +N photos restantes */
.gallery-thumb--more {
  cursor: pointer;
}

.gallery-thumb--more::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
}

.gallery-thumb--more__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #fff;
  z-index: 2;
}

/* LIGHTBOX */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  user-select: none;
  -webkit-user-select: none;
}

/* Bouton fermer */
.lightbox__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background-color var(--transition-fast);
}

.lightbox__close:hover {
  background-color: var(--color-primary);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Prev / Next */
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  z-index: 2;
}

.lightbox__btn:hover {
  background-color: var(--color-primary);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

.lightbox__btn--prev { left: var(--space-5); }
.lightbox__btn--next { right: var(--space-5); }

/* Compteur photos */
.lightbox__counter {
  position: absolute;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
  background-color: rgba(0,0,0,0.5);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* COLONNE DROITE - Infos profil */

.profile-info {}

/* En-tête : nom + badges */
.profile-info__head {
  margin-bottom: var(--space-5);
}

.profile-info__badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.profile-info__name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

/* Localisation */
.profile-info__location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.profile-info__location svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Stats (vues + date) */
.profile-info__stats {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-5) 0;
  flex-wrap: wrap;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.profile-stat__value span {
  color: var(--color-primary);
}

.profile-stat__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Description */
.profile-info__desc-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.profile-info__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.8;
  white-space: pre-line;
}

.profile-info__desc.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  cursor: pointer;
  margin-top: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-read-more:hover {
  color: var(--color-primary-light);
}

.btn-read-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.btn-read-more.is-expanded svg {
  transform: rotate(180deg);
}

/* BOUTONS CONTACT */

.profile-contact {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.btn-whatsapp:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

.btn-show-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-light);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast),
              color var(--transition-fast);
}

.btn-show-phone:hover {
  border-color: var(--color-text-muted);
  color: var(--color-white);
}

.btn-show-phone svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Avertissement discrétion */
.profile-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: rgba(243,156,18,0.07);
  border: 1px solid rgba(243,156,18,0.2);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: rgba(243,156,18,0.8);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.profile-disclaimer svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

/* SECTION PROFILS SIMILAIRES */

.similar-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 340px 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .profile-page {
    padding: var(--space-4) 0 var(--space-8);
  }

  /* Photo principale moins haute sur mobile */
  .gallery-main {
    padding-bottom: 120%;
  }

  .profile-info__name {
    font-size: var(--font-size-xl);
  }

  .lightbox__btn--prev { left: var(--space-3); }
  .lightbox__btn--next { right: var(--space-3); }
}

@media (max-width: 480px) {

  .profile-info__stats {
    gap: var(--space-4);
  }

  .lightbox__img {
    max-width: 100vw;
    max-height: 85vh;
    border-radius: 0;
  }

  .lightbox__btn {
    width: 40px;
    height: 40px;
  }
}

/* CONTACT VERROUILLÉ (non connecté) */

.profile-contact-locked {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}

.profile-contact-locked svg {
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
