
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

body {
  margin: 0;
  background: #f0f2f5; /* fond gris clair façon Facebook */
  color: #1c1e21; /* texte sombre */
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
   font-family: 'Poppins', sans-serif
}


  header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  header h1 {
    font-size: 1.2rem;
    color: #60A5FA;
    margin: 0;
  }
  nav a {
    color:#F9FAFB; 
    margin-right:15px;
    text-decoration: none;
  }
  main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  h2 {
    margin-top: 30px;
    color: #0e71df;
  }

  /* --- Formulaire Card --- */
  .card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    max-width: 800px; 
    margin:auto;
  }

  .card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #797777;
  }
  .card input, 
  .card textarea {
    width: 99%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid gray;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background-color: #f9f9f9;
  }
  .card input[type="file"] {
    background: #ffffff;
    color: black;
  }
  .card button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #1E40AF;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
  }
  .card button:hover {
    background: rgba(10, 25, 47, 1);
  }

input[type="file"]::file-selector-button {
  background: #1E40AF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

input[type="file"]::file-selector-button:hover {
  background: rgba(10, 25, 47, 1);
}



.quotes-container, .videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start; /* <-- ça empêche les cellules de s'étirer */
  margin-bottom: 30px;
}
  .quote-card, .video-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    transition: 0.2s;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .quote-card p {
    margin: 0;
    font-style: italic;
  }
  .quote-card span {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #292a2b;
  }
  .video-card iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    border: none;
  }

  /* white space for card */
  /* ✅ Gestion des sauts de ligne */
.quote-card p,
.quote-card span,
.comments-list div {
  white-space: pre-line;
  word-wrap: break-word; /* éviter les débordements */  
    font-size: 16px;
}


.quote-card span { 
    font-size: 16px;
}

/* ✅ Champ textarea du formulaire de post */
.card textarea#quoteText {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #f9f9f9;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card textarea#quoteText:focus {
  border-color: #2563eb;
  background: #fff;
  outline: none;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.3);
}

/* ✅ Champ commentaire (textarea + bouton) */
.comment-input-row textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-input-row textarea:focus {
  border-color: #2563eb;
  background: #fff;
  outline: none;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
}

.comment-input-row button {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.comment-input-row button:hover {
  background: #1e40af;
  transform: scale(1.05);
}

/* ✅ Amélioration visuelle des commentaires */
.comments-list div {
  margin: 8px 0;
  padding: 10px 12px;
  background: #d3d3d3 !important;
  border-radius: 10px;
  border: 1px solid #d3d3d3;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #111827;
}

/* ✅ Avatars dans les commentaires */
.comments-list img {
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid #ddd;
}


  
/* --- Notifications 🔔 (centrées sous le bouton) --- */
.notif-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2000;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  color: #000;
  z-index: 3000;
}

/* Bouton "Mark all as read" */
#markAllReadBtn {
  display: block;
  width: 90%;
  margin: 5px auto 8px auto;
  padding: 6px 10px;
  font-size: 0.8rem;
  background-color: #f3f4f6;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
#markAllReadBtn:hover {
  background-color: #e5e7eb;
  color: #000;
}

/* Séparateur visuel sous le bouton */
#markAllReadBtn::after {
  content: "";
  display: block;
  margin-top: 8px;
  border-bottom: 1px solid #ddd;
}


/* --- Messages 💬 (alignés à gauche du bouton) --- */
.msg-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2000;
  background-color: #000 :;
}

.msg-dropdown {
  display: none;
  position: absolute;
  top: 120%;   /* un peu sous le bouton */
  left: -50px;     /* commence pile au bord gauche */
  transform: none; /* supprime tout centrage hérité */
  background: #fff;
  min-width: 250px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
  color: #000;
  z-index: 3000;
}

  /* --- Actions (Like / Share / Delete) --- */
  .post-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }

  .post-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: bold;
  }

  .btn-like {
    background: #2563eb;
    color: #fff;
  }
  .btn-share {
    background: #16a34a;
    color: #fff;
  }
  .btn-delete {
    background: #dc2626;
    color: #fff;
  }
  .post-actions button:hover {
    opacity: 0.9;
    transform: scale(1.05);
  }

  /* --- Commentaires --- */
  .comments-wrapper {
    margin-top: 12px;
  }

  .comments-list div {
    margin: 6px 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .comment-input-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }

  .comment-input-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background: #fff; /* ✅ fond blanc */
    color: #000;      /* ✅ texte noir */
  }

  .comment-input-row button {
    background: #2563eb;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .comment-input-row button:hover {
    background: #1e40af;
  }

  /* --- Toggle comments --- */
  .btn-toggle-comments {
    margin: 6px 0;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    background: #16a34a; /* ✅ vert */
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
  }

  .btn-toggle-comments:hover {
    opacity: 0.9;
  }

    /* Responsive : sur mobile, main devient 100% large */
@media (max-width: 600px) {
  .car {
    max-width: 100%;
  }

  }