/* Style global */
.App {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 40px;
  }
  
  /* Conteneur des posts */
  #facebook-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espacement entre les posts */
    justify-content: center;
  }
  
  /* Carte du post */
  .post-card {
    width: calc(45% - 10px); /* Deux posts par ligne, en tenant compte du gap */
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* Date */
  .post-date {
    text-align: left;
  }
  
  /* Conteneur principal des images */
  .image-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Une seule image (affichage en grand) */
  .first-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* Grille des images (si plusieurs) */
  .grid-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    grid-template-rows: repeat(2, 1fr); /* 2 lignes */
    gap: 5px;
    width: 100%;
  }
  
  /* Miniatures */
  .grid-item {
    position: relative;
    width: 100%;
    height: 150px; /* Hauteur fixe */
    overflow: hidden;
  }
  
  .thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  
  /* Overlay sur la 4e image */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }
  
  .overlay span {
    color: white;
    font-size: 20px;
    font-weight: bold;
  }
  
  
  /* Texte + bouton "Afficher plus" */
  .message-container {
    flex: 1;
    padding: 20px;
  
  }
  
  .message-container p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    text-align: left;
    display: block;
  }
  
  .toggle-button {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
  }
  
  .toggle-button:hover {
    text-decoration: underline;
  }
  
  
  
  
  
  /* Lightbox Styles */
.lightbox-overlay {
    display: none !important; /* Cachée par défaut */
    position: fixed; /* ← ça manquait aussi pour sortir du flux */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay.show {
    display: flex !important;
}


.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Pour que les flèches restent fixes */
}

.lightbox-image {
    max-width: 70% !important;
    max-height: 100vh;
    margin-right: 20px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.lightbox-message-container {
    max-width: 100%;
}

.lightbox-message {
    flex: 1;
    padding: 20px;
    font-size: 16px;
    color: #fff;  /* Texte en blanc */
}

/* Close button styles */
.close {
    position: absolute;
    top: 20px; /* Ajuste pour qu'il soit bien visible */
    right: 20px; /* Aligné à droite */
    background: transparent;
    border: none;
    color: white;
    font-size: 70px;
    cursor: pointer;
    z-index: 100; /* Assurez-vous qu'il est bien au-dessus de tout */
    padding: 5px 10px;
    border-radius: 5px;
}

/* Style des boutons de navigation avec flèches */
.nav-button {
    font-size: 40px; /* Taille des flèches */
    background-color: transparent;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
}




/* Positionnement spécifique des flèches */
#prev-button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

#next-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}


/* Optionnel : Effet de survol sur l'image */
.lightbox-image:hover {
    opacity: 0.8;
}



  
  /* Ajustement pour petits écrans */
  @media (max-width: 768px) {
  
 
    
    .lightbox-content {
        flex-direction: column;
        padding: 0 !important;
    }

    .lightbox-image {
        margin-right: 0 !important;
    }

    .lightbox-message{
        margin: 0 auto;
    }
  
      
  
  }
  