/* ═══════════════════════════════════════════════════
   MAQUETTE FACEBOOK — KALÉIDO SONORES
   Fichier : css/style.css
   ───────────────────────────────────────────────────
   VARIABLES GLOBALES
   → Modifie ici les couleurs, polices, tailles
═══════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Police système Facebook (ne pas changer) ── */
  --fb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ── Couleurs Facebook ── */
  --fb-blue:    #1877F2;   /* Bleu principal (boutons, liens actifs) */
  --fb-bg:      #F0F2F5;   /* Fond général de la page */
  --fb-white:   #FFFFFF;   /* Fond des cartes / nav */
  --fb-border:  #CED0D4;   /* Bordures légères */
  --fb-text:    #050505;   /* Texte principal */
  --fb-subtext: #65676B;   /* Texte secondaire (dates, sous-titres) */
  --fb-hover:   #F2F2F2;   /* Survol léger */
  --fb-hover2:  #E4E6EB;   /* Survol boutons gris */
  --fb-green:   #42B72A;   /* Vert (non utilisé ici, dispo) */

  /* ── Hauteur de la barre de navigation ── */
  --fb-nav-h: 56px;
}

/* ─────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────── */
body {
  font-family: var(--fb-font);
  background: var(--fb-bg);
  color: var(--fb-text);
  font-size: 15px;
  line-height: 1.3333;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--fb-font); }

/* ═══════════════════════════════════════════════════
   BARRE DE NAVIGATION SUPÉRIEURE
═══════════════════════════════════════════════════ */
.fb-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--fb-white);
  height: var(--fb-nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,.1), 0 .5px 0 rgba(0,0,0,.05);
  padding: 0 16px;
  gap: 8px;
}

/* Gauche : logo + barre de recherche */
.fb-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  flex: 1;
}
.fb-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.fb-logo svg { width: 40px; height: 40px; }

.fb-search {
  background: var(--fb-bg);
  border-radius: 50px;
  display: flex; align-items: center;
  padding: 8px 12px;
  gap: 8px;
  max-width: 240px;
  flex: 1;
}
.fb-search svg { color: var(--fb-subtext); flex-shrink: 0; }
.fb-search input {
  border: none; background: none;
  font-family: var(--fb-font);
  font-size: 15px;
  color: var(--fb-text);
  outline: none;
  width: 100%;
}
.fb-search input::placeholder { color: var(--fb-subtext); }

/* Centre : onglets de navigation */
.fb-nav-center {
  display: flex; align-items: center;
  flex: 1; justify-content: center;
  gap: 2px;
}
.nav-tab {
  height: 48px; min-width: 112px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  color: var(--fb-subtext);
  transition: background .1s;
  position: relative;
}
.nav-tab:hover { background: var(--fb-hover2); }
.nav-tab.active {
  border-bottom-color: var(--fb-blue);
  color: var(--fb-blue);
}
.nav-tab svg { width: 24px; height: 24px; }

/* Droite : icônes + avatar */
.fb-nav-right {
  display: flex; align-items: center;
  gap: 8px;
  min-width: 260px;
  flex: 1; justify-content: flex-end;
}
.nav-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--fb-hover2);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--fb-text);
  transition: background .1s;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--fb-border); }
.nav-icon-btn svg { width: 20px; height: 20px; }

/* Avatar utilisateur (initiales) */
.nav-avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4950D, #0A858B); /* ← Couleurs Kaléido */
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}
.nav-avatar-circle img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ═══════════════════════════════════════════════════
   PHOTO DE COUVERTURE + PROFIL
═══════════════════════════════════════════════════ */
.page-cover-wrapper {
  background: var(--fb-white);
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Photo de couverture ── */
.cover-photo {
  width: 100%;
  background: #C0C0C0;
  position: relative;
  overflow: hidden;
}
.cover-photo img {
  width: 100%; height: auto;
  display: block;
}
/* Placeholder si pas d'image */
.cover-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #90949c; font-size: 13px;
  background: linear-gradient(180deg, #b0bec5 0%, #90a4ae 100%);
}
.cover-placeholder svg { width: 48px; height: 48px; opacity: .5; }

/* ── Bande profil ── */
.profile-strip {
  padding: 0 24px;
  border-bottom: 1px solid var(--fb-border);
}
.profile-strip-top {
  display: flex; align-items: flex-end;
  gap: 16px;
  margin-top: -36px;      /* Chevauchement avatar/cover */
  padding-bottom: 16px;
}

/* ── Avatar de page ── */
.page-avatar-wrap { position: relative; flex-shrink: 0; }
.page-avatar {
  width: 168px; height: 168px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  background: #b0bec5;
  display: flex; align-items: center; justify-content: center;
}
.page-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder avatar (texte "KALÉIDO SONORES") */
.avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F4950D 0%, #7C2E10 100%); /* ← Couleurs Kaléido */
  color: white; font-size: 13px; font-weight: 700;
  text-align: center; line-height: 1.3; padding: 16px;
}

/* ── Nom + boutons d'action ── */
.profile-name-area {
  flex: 1; padding-bottom: 12px;
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 12px;
}
.page-title-block h1 {
  font-size: 28px; font-weight: 700; line-height: 1.2;
  display: flex; align-items: center; gap: 6px;
}
.blue-check { color: var(--fb-blue); display: inline-flex; align-items: center; }
.blue-check svg { width: 22px; height: 22px; }

.page-followers-line  { font-size: 15px; color: var(--fb-subtext); margin-top: 4px; }
.page-category-line   { font-size: 14px; color: var(--fb-subtext); margin-top: 2px; display: flex; align-items: center; gap: 4px; }

/* Boutons d'action profil */
.profile-actions { display: flex; gap: 8px; align-items: center; }

.btn-fb-blue {
  background: var(--fb-blue); color: white;
  border: none; border-radius: 6px;
  padding: 0 12px; height: 36px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: filter .1s;
}
.btn-fb-blue:hover { filter: brightness(1.08); }

.btn-fb-gray {
  background: var(--fb-hover2); color: var(--fb-text);
  border: none; border-radius: 6px;
  padding: 0 12px; height: 36px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: background .1s;
}
.btn-fb-gray:hover { background: var(--fb-border); }

/* ── Onglets de page ── */
.page-tabs { display: flex; margin-top: 4px; }
.page-tab {
  height: 52px; padding: 0 16px;
  display: flex; align-items: center;
  font-size: 15px; font-weight: 600; color: var(--fb-subtext);
  border-bottom: 3px solid transparent;
  cursor: pointer; transition: color .1s;
}
.page-tab:hover { background: var(--fb-hover); color: var(--fb-text); }
.page-tab.active { color: var(--fb-blue); border-bottom-color: var(--fb-blue); }

/* ═══════════════════════════════════════════════════
   MISE EN PAGE PRINCIPALE (grille 2 colonnes)
═══════════════════════════════════════════════════ */
.main-layout {
  max-width: 1080px;
  margin: 16px auto 40px;
  display: grid;
  grid-template-columns: 360px 1fr;  /* ← Largeur sidebar gauche */
  gap: 16px;
  padding: 0 16px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════
   COLONNE GAUCHE — SIDEBAR
═══════════════════════════════════════════════════ */
.left-col { display: flex; flex-direction: column; gap: 16px; }

/* Boîte générique sidebar */
.sidebar-box {
  background: var(--fb-white);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.sidebar-box h2 {
  font-size: 20px; font-weight: 700;
  color: var(--fb-text); margin-bottom: 12px;
}

/* Ligne détail (icône + texte) */
.detail-row {
  display: flex; align-items: flex-start;
  gap: 10px; margin-bottom: 12px;
  font-size: 15px; color: var(--fb-text);
}
.detail-row:last-child { margin-bottom: 0; }
.detail-row .d-icon {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  color: var(--fb-subtext);
  display: flex; align-items: center; justify-content: center;
}
.detail-row .d-icon svg { width: 20px; height: 20px; }
.detail-row a { color: var(--fb-blue); }

.section-label {
  font-size: 17px; font-weight: 600;
  color: var(--fb-text); margin-top: 4px; margin-bottom: 8px;
}

/* Grille photos 3×3 */
.photos-header-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.photos-header-row a { color: var(--fb-blue); font-size: 15px; font-weight: 600; }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.photo-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #E4E6EB;
  overflow: hidden; cursor: pointer;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-placeholder {
  width: 100%; height: 100%; background: #D8DADF;
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder svg { width: 28px; height: 28px; color: #BCC0C4; }

/* Pied de page confidentialité */
.privacy-line {
  font-size: 12px; color: var(--fb-subtext);
  margin-top: 12px; line-height: 1.5;
}
.privacy-line a { color: var(--fb-subtext); text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   COLONNE DROITE — PUBLICATIONS (FEED)
═══════════════════════════════════════════════════ */
.right-col { display: flex; flex-direction: column; gap: 16px; }

/* En-tête "Publications" */
.pub-header {
  background: var(--fb-white);
  border-radius: 8px; padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  display: flex; justify-content: space-between; align-items: center;
}
.pub-header h2 { font-size: 20px; font-weight: 700; }
.btn-filtres {
  background: var(--fb-hover2); border: none; border-radius: 6px;
  padding: 6px 12px; font-size: 15px; font-weight: 600;
  color: var(--fb-text);
  display: flex; align-items: center; gap: 6px;
}
.btn-filtres svg { width: 16px; height: 16px; }

/* ── Carte de publication ── */
.post-card {
  background: var(--fb-white);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  overflow: hidden;
}

/* En-tête du post */
.post-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 4px;
}
.post-header-left { display: flex; align-items: center; gap: 10px; }

/* Avatar circulaire dans le post */
.post-page-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F4950D, #0A858B); /* ← Couleurs Kaléido */
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.post-page-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Texte meta (nom + date) */
.post-meta-text strong {
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.post-meta-text .post-date-privacy {
  font-size: 13px; color: var(--fb-subtext);
  display: flex; align-items: center; gap: 4px;
}
.post-meta-text .post-date-privacy svg { width: 12px; height: 12px; }

/* Bouton ⋯ options */
.post-options-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--fb-subtext);
}
.post-options-btn:hover { background: var(--fb-hover2); }
.post-options-btn svg { width: 20px; height: 20px; }

/* ── Corps du post (texte) ── */
.post-body-text {
  padding: 8px 16px 12px;
  font-size: 15px; line-height: 1.5;
  color: var(--fb-text);
}

/* Texte court (tronqué) / texte long (complet) */
.post-text-short { display: block; }
.post-text-full  { display: none; }
.post-card.expanded .post-text-short { display: none; }
.post-card.expanded .post-text-full  { display: block; }

/* Liens "En voir plus" / "Voir moins" */
.see-more-link {
  color: var(--fb-subtext); font-weight: 600;
  cursor: pointer; user-select: none;
}
.see-more-link:hover { text-decoration: underline; }
.see-less-link {
  color: var(--fb-subtext); font-weight: 600;
  cursor: pointer; user-select: none; display: none;
}
.see-less-link:hover { text-decoration: underline; }
.post-card.expanded .see-less-link { display: inline; }

/* ── Images dans les posts ── */
.post-img-full {
  width: 100%; background: #E4E6EB;
  min-height: 200px; position: relative; overflow: hidden;
}
.post-img-full img { width: 100%; display: block; object-fit: cover; }

/* Placeholder image (zone grise) */
.img-placeholder {
  width: 100%; min-height: 320px;
  background: #E9EAEB;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: #BCC0C4; font-size: 13px;
}
.img-placeholder svg { width: 48px; height: 48px; }

/* Grille 2 images côte à côte */
.post-img-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.post-img-grid2 .post-img-full  { min-height: 236px; }
.post-img-grid2 .img-placeholder { min-height: 236px; }

/* ── Barre de réactions ── */
.post-reactions-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #E4E6EB;
}
.reactions-left { display: flex; align-items: center; gap: 6px; }
.reaction-pills { display: flex; }
.reaction-pill {
  width: 18px; height: 18px; border-radius: 50%;
  margin-right: -3px;
  border: 1.5px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.rp-like { background: #1877F2; }
.rp-love { background: #F33E58; }
.rp-wow  { background: #F7B125; }
.rp-care { background: #F7B125; }
.reactions-count { font-size: 15px; color: var(--fb-subtext); }
.reactions-right { font-size: 15px; color: var(--fb-subtext); }

/* ── Boutons J'aime / Commenter / Partager ── */
.post-action-bar {
  display: flex;
  border-top: 1px solid #E4E6EB;
  padding: 4px 8px;
}
.post-action-btn {
  flex: 1; height: 36px;
  border: none; background: none; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--fb-subtext);
  transition: background .1s; cursor: pointer;
}
.post-action-btn:hover { background: var(--fb-hover2); }
.post-action-btn svg { width: 20px; height: 20px; }

/* ── Zone de commentaire ── */
.comment-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 12px;
}
.comment-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #F4950D, #0A858B);
  overflow: hidden;
}
.comment-user-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.comment-field-wrap {
  flex: 1; background: var(--fb-bg);
  border-radius: 20px; padding: 8px 12px;
  font-size: 15px; color: var(--fb-subtext);
  display: flex; align-items: center;
}

/* ── Carte liée (post partenaire) ── */
.linked-card {
  margin: 0 16px 12px;
  border: 1px solid #E4E6EB;
  border-radius: 8px; overflow: hidden;
}
.linked-card-img {
  width: 100%; background: #1a2940;
  min-height: 300px; position: relative; overflow: hidden;
}
.linked-card-img img { width: 100%; display: block; object-fit: cover; }
.linked-card-img .img-placeholder {
  background: #1a2940; color: rgba(255,255,255,.3); min-height: 300px;
}
.linked-card-img .img-placeholder svg { color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════════
   TAMPON MAQUETTE (coin bas droit)
═══════════════════════════════════════════════════ */
.maquette-stamp {
  position: fixed; bottom: 16px; right: 16px;
  background: rgba(0,0,0,.75); color: white;
  font-size: 11px; padding: 5px 12px;
  border-radius: 20px; z-index: 9999;
  letter-spacing: .3px;
}
