/* =================================
   PMU POSTS INSTAGRAM — PAGE SPECIFIC STYLES
================================= */

:root {
  --margin: 40px;
  --gap: 96px;
  --col: calc((100vw - 80px) / 12);
}


/* =================================
   INTRO — 2 colonnes 50/50
   Identique à pmu-brand-reveal
================================= */

.pmu-posts-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  padding: 120px var(--margin) 0 var(--margin);
}

.pmu-posts-title {
  margin: 0;
  padding-right: 40px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.pmu-posts-body {
  margin: 0;
  padding-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}


/* =================================
   SECTION — wrapper de chaque post
================================= */

.pmu-posts-insta-section {
  margin-top: var(--gap);
  padding: 0 var(--margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;               /* section pleine largeur */
  box-sizing: border-box;
}

/* Légende sous le post — identique à .pmu-infotext */
.pmu-posts-infotext {
  margin-top: 20px;
  font-family: 'Krub', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #888;
  text-align: center;
}


/* =================================
   CARTE INSTAGRAM
   Layout identique au brand reveal :
   gauche = visuel | droite = UI
================================= */

.pmu-posts-insta-card {
  display: flex;
  width: 100%;
  max-width: 1070px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}


/* =================================
   COLONNE GAUCHE — carrousel d'images
================================= */

.pmu-posts-insta-left {
  flex: 1;                   /* prend tout l'espace restant après la colonne droite */
  min-width: 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;      /* ratio portrait Instagram */
}

/* Le carrousel prend toute la place de la colonne gauche */
.pmu-posts-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Chaque image remplit exactement le cadre — cover = pas de bandes */
.pmu-posts-carousel-img {
  display: block;
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* remplit le cadre sans bandes */
  flex-shrink: 0;
}


/* FLÈCHES de navigation */

.pmu-posts-carousel-btn {
  /* Positionnées par-dessus le carrousel */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  /* Style bulle blanche semi-transparente, comme Instagram */
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;

  /* Transition douce pour l'apparition/disparition */
  transition: opacity 0.2s ease;
}

/* Icônes chevron en dark sur fond blanc */
.pmu-posts-carousel-btn svg path {
  stroke: #262626;
}

.pmu-posts-carousel-btn--prev {
  left: 10px;
}

.pmu-posts-carousel-btn--next {
  right: 10px;
}


/* POINTS DE PAGINATION (dots) */

.pmu-posts-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}

.pmu-posts-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s ease;
}

/* Point actif = blanc plein */
.pmu-posts-carousel-dot--active {
  background: #fff;
}


/* =================================
   COLONNE DROITE — UI Instagram
   Identique à .pmu-insta-right
================================= */

.pmu-posts-insta-right {
  width: 340px;              /* largeur fixe — comme Instagram desktop */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-left: 1px solid #efefef;
}


/* HEADER DU POST */

.pmu-posts-insta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #efefef;
}

/* Avatar unique (pas de double avatar pour les posts PMU officiel) */
.pmu-posts-insta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pmu-posts-insta-header-text {
  flex: 1;
}

/* Pseudo + badge vérifié (✓) */
.pmu-posts-insta-username {
  margin: 0;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Le ✓ dans le HTML est affiché en bleu Instagram */
.pmu-posts-insta-username strong + * {
  color: #0095f6;
  font-size: 12px;
}

/* Bouton ··· décoratif */
.pmu-posts-insta-dots {
  font-size: 18px;
  letter-spacing: 1px;
  color: #262626;
  cursor: default;
  line-height: 1;
  align-self: flex-start;
  padding-top: 2px;
}


/* CAPTION — zone scrollable */

.pmu-posts-insta-caption {
  display: flex;
  gap: 10px;
  padding: 16px 16px 0 16px;
  flex: 1;
  overflow-y: auto;           /* seule zone scrollable */
  min-height: 0;              /* nécessaire pour flex + overflow-y */
}

.pmu-posts-caption-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-start;
}

.pmu-posts-caption-content {
  flex: 1;
}

/* Pseudo + texte de la caption sur la même ligne */
.pmu-posts-caption-meta {
  margin: 0 0 4px 0;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #262626;
}

/* Texte de la caption (après le pseudo) */
.pmu-posts-insta-time {
  font-weight: 400;
  margin-left: 4px;
}

.pmu-posts-caption-text {
  margin: 4px 0 0 0;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #262626;
}

/* Hashtags en bleu Instagram */
.pmu-posts-insta-hashtag {
  color: #00376b;
}

/* "41 sem" ou "24 sem" — petit gris sous la caption */
.pmu-posts-caption-date-small {
  margin: 6px 0 0 0;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: #888;
}


/* ACTIONS — cœur, commentaire, partage + bookmark */

.pmu-posts-insta-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 4px 16px;
}

.pmu-posts-insta-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmu-posts-action-icon {
  display: flex;
  align-items: center;
  color: #262626;
  cursor: default;
}


/* LIKES */

.pmu-posts-insta-likes {
  margin: 0;
  padding: 0 16px 4px 16px;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #262626;
  line-height: 1.4;
}


/* DATE */

.pmu-posts-insta-date {
  margin: 0;
  padding: 4px 16px 12px 16px;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 11px;
  color: #888;
}


/* BARRE COMMENTAIRE (décorative) */

.pmu-posts-comment-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid #efefef;
}

.pmu-posts-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pmu-posts-comment-placeholder {
  flex: 1;
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  color: #888;
}

/* Bouton "Publier" bleu — décoratif */
.pmu-posts-comment-publish {
  font-family: -apple-system, 'Helvetica Neue', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0095f6;
  cursor: default;
}


/* =================================
   META — Client / Outils
   Identique à pmu-brand-reveal
================================= */

.pmu-posts-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 88px var(--margin) 100px var(--margin);
}

.pmu-posts-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pmu-posts-meta-label {
  font-family: 'Krub', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.pmu-posts-meta-value {
  font-family: 'Krub', sans-serif;
  font-weight: 400;
  font-size: 14px;
}


/* =================================
   MOBILE — max 768px
================================= */

@media (max-width: 768px) {

  :root {
    --margin: 20px;
    --gap: 56px;
  }

  /* Intro en 1 colonne */
  .pmu-posts-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 96px var(--margin) 48px var(--margin);
  }

  .pmu-posts-title {
    padding-right: 0;
    font-size: clamp(42px, 11vw, 72px);
    line-height: 0.96;
  }

  .pmu-posts-body {
    padding-top: 0;
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
  }

  /* Carte en colonne unique sur mobile */
  .pmu-posts-insta-card {
    flex-direction: column;
    max-width: 100%;
    height: auto;             /* hauteur auto sur mobile, pas 90vh */
  }

  .pmu-posts-insta-left {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .pmu-posts-insta-right {
    max-height: none;
  }

  /* Meta */
  .pmu-posts-meta {
    gap: 20px;
    padding: 40px var(--margin) 120px var(--margin);
  }

  .pmu-posts-meta-label {
    font-size: 11px;
  }

  .pmu-posts-meta-value {
    font-size: 10px;
  }

}