/* PFlow CRM, espace Contenu : Mon feed, Cette semaine, A tourner (js/instagram-feed.js).
   Une seule DA, celle de la charte : bleu nuit, rose, cyan, Anton pour les titres, Plus Jakarta Sans pour le reste.
   Fichier a part (comme la charte) : l'habit sombre du QG ne le reecrit pas. */
@font-face { font-family: "Anton"; font-weight: 400; font-display: swap; src: url("/fonts/anton-400.woff2") format("woff2"); }

:root { --fd-nuit: #0a1236; --fd-nuit2: #121c4f; --fd-nuit3: #1b2766; --fd-rose: #ff4fb5; --fd-bleu: #2aabff; --fd-cyan: #74ddfb; --fd-creme: #f3eee6; --fd-trait: rgba(255, 255, 255, 0.12); }

.fd-aide { margin: 6px 0 14px; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.fd-h { margin: 22px 0 10px; font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; color: #fff; }

/* ---- Mon feed : la largeur d'un vrai profil ---- */
.fd-feed { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.fd-profil { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: var(--fd-nuit2); border: 1px solid var(--fd-trait); }
.fd-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--fd-rose), var(--fd-bleu), var(--fd-cyan), var(--fd-rose)); }
.fd-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; background: var(--fd-nuit); padding: 10px; box-sizing: border-box; }
.fd-profil-t { display: grid; gap: 3px; min-width: 0; color: #fff; }
.fd-profil-t > b { font-size: 1.05rem; }
.fd-profil-t span { font-size: .84rem; color: rgba(255, 255, 255, .75); }
.fd-compte b { color: #fff; }
.fd-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 12px; overflow: hidden; }
.fd-case { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; background: var(--fd-nuit3); cursor: pointer; overflow: hidden; display: block; }
.fd-case img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-case.avenir img { filter: saturate(.85) brightness(.82); }
.fd-case-ico { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.fd-case-ico svg { width: 100%; height: 100%; }
.fd-case-quand { position: absolute; left: 6px; bottom: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(10, 18, 54, .88); color: #fff; font: 700 .68rem/1.1 "Plus Jakarta Sans", sans-serif; }
.fd-case-pt { position: absolute; left: 8px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--fd-rose); box-shadow: 0 0 0 3px rgba(255, 79, 181, .3); }
.fd-vide-v { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; text-align: center; color: rgba(255, 255, 255, .6); font: 700 .78rem/1.3 "Plus Jakarta Sans", sans-serif; background: repeating-linear-gradient(135deg, var(--fd-nuit2) 0 10px, var(--fd-nuit3) 10px 20px); }

/* ---- Cette semaine ---- */
.fd-bandeau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding: 14px 16px; border-radius: 16px; background: var(--fd-rose); color: var(--fd-nuit); margin-bottom: 14px; }
.fd-bandeau b { font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
.fd-bandeau span { font-weight: 700; font-size: .86rem; }
.fd-ronds { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.fd-rond { flex-shrink: 0; display: grid; justify-items: center; gap: 4px; width: 78px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.fd-rond-c { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--fd-rose), var(--fd-bleu), var(--fd-cyan), var(--fd-rose)); }
.fd-rond.vu .fd-rond-c { background: rgba(255, 255, 255, .25); }
.fd-rond-c img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--fd-nuit); box-sizing: border-box; display: block; }
.fd-rond-t { font-weight: 800; font-size: .78rem; }
.fd-rond-n { font-size: .68rem; color: rgba(255, 255, 255, .6); }
.fd-jour { margin-top: 18px; }
.fd-jour h3 { margin: 0 0 10px; font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.fd-moi { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(116, 221, 251, .6); background: rgba(116, 221, 251, .08); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.fd-moi span { font-size: .8rem; color: var(--fd-cyan); font-weight: 700; }
.fd-cartes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fd-carte { display: flex; gap: 12px; align-items: stretch; padding: 10px; border-radius: 16px; border: 1px solid var(--fd-trait); background: var(--fd-nuit2); color: #fff; cursor: pointer; text-align: left; font: inherit; min-height: 44px; }
.fd-carte:hover { border-color: rgba(255, 79, 181, .55); }
.fd-carte-v { position: relative; width: 84px; flex-shrink: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--fd-nuit3); }
.fd-carte-v img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-carte-c { display: grid; align-content: center; gap: 6px; min-width: 0; }
.fd-carte-c b { font-size: .95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-carte-type { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--fd-cyan); }
.fd-puce { justify-self: start; display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: rgba(255, 255, 255, .12); color: #fff; }
.fd-puce.avalider { background: var(--fd-rose); color: var(--fd-nuit); }
.fd-puce.ok { background: rgba(42, 171, 255, .2); color: var(--fd-cyan); }
.fd-puce.publie { background: var(--fd-creme); color: var(--fd-nuit); }
.fd-puce.stop { background: rgba(255, 77, 94, .2); color: #ff8a95; }

/* ---- L'apercu dans un telephone ---- */
.fd-ov { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 9, 28, .82); backdrop-filter: blur(6px); overflow-y: auto; }
.fd-ap { position: relative; display: flex; gap: 28px; align-items: flex-start; max-width: 860px; width: 100%; margin: auto; }
.fd-x { position: absolute; top: -6px; right: -6px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.fd-tel { flex-shrink: 0; width: 330px; padding: 12px; border-radius: 48px; background: #05070f; border: 2px solid #2b2e3a; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.fd-tel-e { border-radius: 38px; overflow: hidden; background: #000; color: #fff; min-height: 560px; display: flex; flex-direction: column; }
.fd-charge { align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); }
.fd-ig-tete { display: flex; align-items: center; gap: 8px; padding: 34px 12px 8px; font-size: .8rem; }
.fd-ig-tete img { width: 28px; height: 28px; border-radius: 50%; background: var(--fd-nuit); padding: 4px; box-sizing: border-box; object-fit: contain; }
.fd-ig-tete span { margin-left: auto; color: rgba(255, 255, 255, .55); font-size: .72rem; }
.fd-ig-media { position: relative; aspect-ratio: 4 / 5; background: #111; }
.fd-ig-media.reel { aspect-ratio: 9 / 16; }
.fd-ig-media img, .fd-ig-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-fl { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--fd-nuit); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.fd-fl:disabled { display: none; }
.fd-fl.g { left: 8px; } .fd-fl.d { right: 8px; }
.fd-num { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: .72rem; font-weight: 700; }
.fd-points { display: flex; justify-content: center; gap: 4px; padding: 8px 0 0; }
.fd-points i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.fd-points i.on { background: var(--fd-bleu); }
.fd-ig-act { display: flex; gap: 14px; padding: 10px 12px 4px; }
.fd-ig-act svg { width: 22px; height: 22px; color: #fff; display: block; }
.fd-ig-save { margin-left: auto; }
.fd-ig-legende { margin: 4px 12px 14px; font-size: .78rem; line-height: 1.45; color: rgba(255, 255, 255, .92); max-height: 9.6em; overflow: hidden; }
.fd-ig-tags { color: #8ab4ff; }
.fd-cote { flex: 1; min-width: 0; display: grid; gap: 12px; align-content: start; color: #fff; padding-top: 10px; }
.fd-cote h3 { margin: 0; font-family: "Anton", sans-serif; font-weight: 400; font-size: 1.7rem; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.fd-gestes { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-gestes .btn { min-height: 44px; }
.fd-refus { color: #ff8a95 !important; }
.fd-mode { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--fd-nuit2); border: 1px solid var(--fd-trait); }
.fd-mode p { margin: 0; font-weight: 800; }
.fd-mode textarea, .fd-mode input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--fd-trait); background: var(--fd-nuit); color: #fff; font: inherit; }
.fd-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-past { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 700 .84rem "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.fd-past.on { background: var(--fd-rose); border-color: var(--fd-rose); color: var(--fd-nuit); }
.fd-pourquoi { border-radius: 14px; background: rgba(255, 255, 255, .05); padding: 10px 14px; }
.fd-pourquoi summary { cursor: pointer; font-weight: 800; color: var(--fd-cyan); min-height: 28px; }
.fd-pourquoi dl { margin: 10px 0 0; display: grid; gap: 8px; }
.fd-pourquoi dt { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fd-pourquoi dd { margin: 2px 0 0; font-size: .88rem; line-height: 1.4; }
.fd-lien { justify-self: start; border: 0; background: none; color: rgba(255, 255, 255, .55); text-decoration: underline; font: inherit; font-size: .8rem; cursor: pointer; padding: 6px 0; }

/* ---- Les stories en plein ecran ---- */
.fd-ov-story { padding: 0; }
.fd-story { position: relative; height: min(100%, 900px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; border-radius: 18px; overflow: hidden; }
.fd-story > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-barres { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.fd-barres i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.fd-barres i.vu, .fd-barres i.on { background: #fff; }
.fd-story .fd-x { top: 22px; right: 10px; }
.fd-zone { position: absolute; top: 60px; bottom: 150px; width: 40%; border: 0; background: transparent; cursor: pointer; z-index: 2; }
.fd-zone.g { left: 0; } .fd-zone.d { right: 0; }
.fd-story-bas { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: 8px; padding: 40px 14px 16px; background: linear-gradient(0deg, rgba(5, 9, 28, .95) 40%, rgba(5, 9, 28, 0)); color: #fff; }
.fd-story-bas .fd-aide { margin: 0; }

@media (max-width: 720px) {
  .fd-ap { flex-direction: column; align-items: center; gap: 16px; }
  .fd-tel { width: min(330px, 100%); box-sizing: border-box; }
  .fd-x { top: 0; right: 0; }
  .fd-cote { width: 100%; order: -1; padding-top: 34px; }   /* sur iPhone : le titre et les 4 gestes d'abord, le telephone dessous */
  .fd-cartes { grid-template-columns: 1fr; }
  .fd-ov-story .fd-story { height: 100%; border-radius: 0; }
}

/* ---- 30/10 : Ta vidéo à poster (A tourner) ---- */
.fd-mv { display: grid; gap: 10px; margin-bottom: 12px; padding: 16px 18px; border-radius: 16px; background: var(--fd-nuit2); border: 1px solid var(--fd-trait); }
.fd-mv .fd-gestes { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-mv .fd-aide { margin: 0; }
.fd-mv summary { cursor: pointer; color: #fff; }
.fd-mv-l { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.fd-mv-l textarea, .fd-mv-l input, .fd-mv-l select, .fd-mv-perso textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 500; }
.fd-mv-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fd-mv-perso summary { font-size: .82rem; color: var(--fd-cyan); }
.fd-mv-perso textarea { margin-top: 8px; }
.fd-mv-leg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--fd-nuit3); color: #fff; font: 500 .88rem/1.45 "Plus Jakarta Sans", sans-serif; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
@media (max-width: 520px) { .fd-mv-2 { grid-template-columns: 1fr; } }

/* ---- 30/10 : la story à sticker à poster (A tourner) ---- */
.fd-st-corps { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.fd-st-img { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; display: block; }
.fd-st-img img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.fd-st-etapes { display: grid; gap: 8px; align-content: start; }
.fd-st-etapes ol { margin: 0; padding-left: 18px; font-size: .84rem; color: rgba(255, 255, 255, .85); display: grid; gap: 4px; }
.fd-st-t { margin: 6px 0 0; font-size: .78rem; font-weight: 700; color: var(--fd-cyan); text-transform: uppercase; letter-spacing: .04em; }
.fd-st-copie { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--fd-nuit3); font-size: .88rem; font-weight: 700; color: #fff; }
.fd-st-grand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fd-story.fd-st-grand { aspect-ratio: auto; height: auto; max-height: 100%; background: transparent; overflow: visible; justify-content: center; }
.fd-story.fd-st-grand > img { width: auto; height: auto; max-height: 82vh; max-width: 100%; object-fit: contain; border-radius: 14px; -webkit-touch-callout: default; }
.fd-st-indice { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .8); text-align: center; }
@media (max-width: 520px) { .fd-st-corps { grid-template-columns: 1fr; } .fd-st-img { max-width: 220px; margin: 0 auto; } }
.fd-st-copie em { font-style: normal; font-weight: 600; font-size: .75rem; color: var(--fd-cyan); }
/* 03/11 : le reel a poster avec son son tendance */
.fd-rs-v { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 16px; background: #000; display: block; }

/* 04/11 : la story plein écran : l'image seule, le libellé et les gestes en dessous (ils recouvraient le visuel) */
.fd-story.fd-story-v2 { aspect-ratio: auto; height: auto; max-height: 100%; width: auto; max-width: 100%; background: transparent; overflow: visible; border-radius: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.fd-story-img { position: relative; height: min(68vh, 740px); aspect-ratio: 9 / 16; max-width: 100%; margin: 0 auto; background: #000; border-radius: 18px; overflow: hidden; }
.fd-story-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-story-v2 .fd-zone { bottom: 0; }
.fd-story-v2 .fd-story-bas { position: static; background: rgba(11, 18, 48, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 14px; max-width: min(100%, 420px); width: 100%; margin: 0 auto; box-sizing: border-box; }
.fd-refus-p p small { font-weight: 500; opacity: .7; margin-left: 6px; }
.fd-refus-p textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) {
  .fd-ov-story .fd-story.fd-story-v2 { height: auto; }
  .fd-story-img { height: min(62dvh, 640px); }
}

/* 04/11 : la musique d'un reel motion design (aplats, pas de degrade) */
.fd-musique { margin: 14px 0; padding: 14px; border-radius: 14px; background: #F3EEE6; color: #0A1236; }
.fd-mus-t { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 0 0 4px; }
.fd-mus-n { margin: 0 0 6px; }
.fd-mus-x { margin: 0 0 8px; font-size: 13px; opacity: .8; }
.fd-mus-ap { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid rgba(10,18,54,.12); font-size: 13px; }
.fd-mus-ap video { width: 100%; max-height: 220px; border-radius: 10px; background: #0A1236; }
/* 07/11 : les boutons du panneau Musique dans la DA (le fond du panneau est crème) */
.fd-musique .fd-mus-b { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: #0A1236; color: #FFFFFF; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.fd-musique .fd-mus-b:hover, .fd-musique .fd-mus-b:focus-visible { background: #FF4FB5; color: #0A1236; outline: none; }
.fd-musique .fd-mus-b2 { margin-top: 10px; background: transparent; color: #0A1236; box-shadow: inset 0 0 0 2px #0A1236; }
.fd-musique .fd-mus-b2:hover, .fd-musique .fd-mus-b2:focus-visible { background: #0A1236; color: #FFFFFF; }
.fd-musique .fd-mus-b[disabled] { opacity: .5; cursor: default; }
.fd-mus-choisi { padding: 10px 12px; border-radius: 12px; background: #FFFFFF; box-shadow: inset 0 0 0 2px #FF4FB5; }
.fd-mus-pastille { display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; background: #FF4FB5; color: #0A1236; font-weight: 800; font-size: 12px; }
