/* fil.css — accueil d'Assimey en fil d'actualité (publications des boutiques), animé.
   Se charge après accueil.css (mêmes couleurs : --primary, --dark, --light, --border…). */

.fil-page { background: var(--light); padding: 18px 0 40px; }
html[data-theme="dark"] .fil-page { background: #0b121b; }

/* ------------------------------------------------ bandeau d'accueil compact */
.fil-hero { background: linear-gradient(120deg, #14253A 0%, #1d3a5c 55%, #20476b 100%); color: #fff; position: relative; overflow: hidden; }
.fil-hero::before, .fil-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(138, 205, 0, .16); filter: blur(2px); animation: filFlotte 9s ease-in-out infinite; }
.fil-hero::before { width: 320px; height: 320px; right: -80px; top: -120px; }
.fil-hero::after { width: 200px; height: 200px; left: 38%; bottom: -120px; animation-delay: -4s; background: rgba(166, 229, 51, .1); }
@keyframes filFlotte { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20px, 16px) scale(1.06); } }
.fil-hero .container { position: relative; z-index: 1; padding-top: 34px; padding-bottom: 26px; }
.fil-hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.fil-hero h1 span { color: var(--primary); }
.fil-hero p { color: #cbd5e1; max-width: 620px; font-size: 16px; margin-bottom: 18px; }
.fil-recherche { display: flex; max-width: 620px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.fil-recherche input { flex: 1; min-width: 0; border: 0; height: 54px; padding: 0 16px; font: 500 15px var(--font-family); color: #182333; }
.fil-recherche input:focus { outline: none; }
.fil-recherche button { border: 0; background: var(--primary); color: var(--dark); font: 800 15px var(--font-family); padding: 0 22px; cursor: pointer; }
.fil-chiffres { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.fil-chiffres div { display: flex; flex-direction: column; }
.fil-chiffres b { font-size: 24px; font-weight: 900; color: var(--primary); }
.fil-chiffres span { font-size: 12.5px; color: #cbd5e1; }

/* ------------------------------------------------ « stories » des boutiques */
.fil-stories { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding: 16px 2px 6px; }
.fil-stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; animation: filEntree .5s both; }
.story-cercle { width: 70px; height: 70px; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, #8ACD00, #A6E533, #14253A, #8ACD00); animation: filTourne 6s linear infinite; }
.story-cercle span { display: flex; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--background); overflow: hidden; background: var(--dark); color: var(--primary); align-items: center; justify-content: center; font-weight: 900; font-size: 22px; animation: filTourne 6s linear infinite reverse; }
.story-cercle img { width: 100%; height: 100%; object-fit: cover; }
.story small { font-size: 11.5px; font-weight: 600; color: var(--text); max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story:hover .story-cercle { animation-duration: 1.5s; }
@keyframes filTourne { to { transform: rotate(360deg); } }

/* ------------------------------------------------ disposition en 3 colonnes */
.fil-grille { display: grid; grid-template-columns: 240px minmax(0, 620px) 300px; gap: 24px; justify-content: center; align-items: start; }
.fil-cote { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.fil-bloc { background: var(--background); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.fil-bloc h3 { font-size: 14px; color: var(--dark); margin-bottom: 8px; font-weight: 800; }
html[data-theme="dark"] .fil-bloc h3 { color: var(--text); }
.fil-cats a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text); transition: background .2s, transform .2s; }
.fil-cats a i { width: 18px; color: var(--primary-dark); }
.fil-cats a span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.fil-cats a:hover { background: var(--light); transform: translateX(3px); }
.fil-cats a.actif { background: rgba(138, 205, 0, .16); color: var(--primary-dark); }
.fil-vendre { background: linear-gradient(135deg, #14253A, #1d3a5c); color: #fff; border: 0; }
.fil-vendre h3 { color: #fff !important; font-size: 17px; }
.fil-vendre p { color: #cbd5e1; font-size: 13px; margin-bottom: 12px; }
.fil-vendre .btn { width: 100%; justify-content: center; }
.fil-boutiques a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 9px; }
.fil-boutiques a:hover { background: var(--light); }
.fil-boutiques .av { width: 40px; height: 40px; border-radius: 10px; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; flex-shrink: 0; }
.fil-boutiques .av img { width: 100%; height: 100%; object-fit: cover; }
.fil-boutiques b { display: block; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-boutiques small { color: var(--muted); font-size: 12px; }
.fil-boutiques div { min-width: 0; }

/* ------------------------------------------------ filtres du fil */
.fil-filtres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.fil-filtres::-webkit-scrollbar { display: none; }
.fil-filtres button { flex: 0 0 auto; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--background); color: var(--text); font: 600 13px var(--font-family); cursor: pointer; transition: all .2s; }
.fil-filtres button i { color: var(--primary-dark); margin-right: 6px; }
.fil-filtres button.actif { background: var(--dark); color: #fff; border-color: var(--dark); }
.fil-filtres button.actif i { color: var(--primary); }

/* ------------------------------------------------ publications */
.fil-flux { display: flex; flex-direction: column; gap: 18px; }
.fil-pub { background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(20, 37, 58, .04); transition: box-shadow .25s, transform .25s; }
.fil-pub:hover { box-shadow: 0 16px 40px rgba(20, 37, 58, .1); }
.fil-pub.cache, .fil-encart.cache { opacity: .3; transform: translateY(28px) scale(.98); }
.fil-pub.vu, .fil-encart.vu { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.fil-tete { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.fil-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 900; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary); }
.fil-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.fil-tete > div { min-width: 0; flex: 1; }
.fil-boutique { display: block; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-boutique:hover { color: var(--primary-dark); }
.fil-meta { font-size: 12px; color: var(--muted); }
.fil-visiter { font-size: 13px; font-weight: 800; color: var(--primary-dark); padding: 7px 12px; border-radius: 999px; background: rgba(138, 205, 0, .14); white-space: nowrap; }
.fil-visiter:hover { background: var(--primary); color: var(--dark); }
.fil-galerie { position: relative; background: #f1f4ee; }
html[data-theme="dark"] .fil-galerie { background: #111a26; }
.fil-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.fil-piste::-webkit-scrollbar { display: none; }
.fil-media { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; max-height: 620px; position: relative; overflow: hidden; }
.fil-media img, .fil-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fil-media img { transition: transform 6s ease; }
.fil-pub.vu .fil-media img { transform: scale(1.04); }
.fil-son { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(20, 37, 58, .7); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fil-points { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.fil-points span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: all .25s; }
.fil-points span.actif { width: 20px; border-radius: 4px; background: #fff; }
.fil-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--dark); cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.fil-fleche.g { left: 10px; } .fil-fleche.d { right: 10px; }
.fil-galerie:hover .fil-fleche { opacity: 1; }
.fil-badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--primary); color: var(--dark); font-size: 12px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.fil-badge.gris { background: #64748b; color: #fff; }
.fil-badge.nuit { background: var(--dark); color: #fff; }
.fil-corps { padding: 14px 16px 6px; }
.fil-nom { display: block; font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.3; }
.fil-nom:hover { color: var(--primary-dark); }
.fil-prix { margin-top: 4px; font-size: 19px; font-weight: 900; color: var(--primary-dark); }
.fil-prix small { font-size: 13px; color: var(--muted); font-weight: 500; }
.fil-desc { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.fil-actions { display: flex; gap: 8px; padding: 12px 16px 16px; flex-wrap: wrap; }
.fil-act { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--background); color: var(--text); font: 700 13.5px var(--font-family); cursor: pointer; transition: all .2s; }
.fil-act:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-1px); }
.fil-act.principal { background: var(--primary); border-color: var(--primary); color: var(--dark); flex: 1; justify-content: center; }
.fil-act.principal:hover { background: var(--primary-dark); color: #fff; }
.fil-encart { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: linear-gradient(120deg, #14253A, #1d3a5c); color: #fff; }
.fil-encart > i { width: 54px; height: 54px; border-radius: 14px; background: rgba(138, 205, 0, .18); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; animation: filPulse 2.4s ease-in-out infinite; }
.fil-encart div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fil-encart b { font-size: 16px; }
.fil-encart span { color: #cbd5e1; font-size: 13px; }
.fil-encart .fil-act { flex: 0 0 auto; }
@keyframes filPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes filEntree { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* squelettes pendant le chargement */
.fil-squelette { background: var(--background); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.fil-squelette .l { height: 14px; margin: 14px; border-radius: 7px; background: linear-gradient(90deg, #eef1ec 0%, #f8faf6 50%, #eef1ec 100%); background-size: 200% 100%; animation: filLueur 1.2s linear infinite; }
.fil-squelette .img { aspect-ratio: 1 / 1; background: linear-gradient(90deg, #eef1ec 0%, #f8faf6 50%, #eef1ec 100%); background-size: 200% 100%; animation: filLueur 1.2s linear infinite; }
@keyframes filLueur { to { background-position: -200% 0; } }
.fil-fin { text-align: center; color: var(--muted); padding: 20px; font-size: 14px; }
.fil-fin a { color: var(--primary-dark); font-weight: 800; }
.fil-vide { text-align: center; padding: 50px 20px; background: var(--background); border: 1px dashed var(--border); border-radius: 16px; color: var(--muted); }

@media (max-width: 1180px) { .fil-grille { grid-template-columns: minmax(0, 620px) 290px; } .fil-gauche { display: none; } }
@media (max-width: 900px) {
  .fil-grille { grid-template-columns: minmax(0, 1fr); }
  .fil-droite { position: static; order: 2; }
  .fil-hero .container { padding-top: 22px; padding-bottom: 18px; }
  .fil-hero p { font-size: 14.5px; }
}
@media (max-width: 560px) {
  .fil-page { padding-top: 8px; }
  .fil-pub { border-radius: 0; border-left: 0; border-right: 0; }
  .fil-flux { gap: 10px; margin: 0 -15px; }
  .fil-encart { margin: 0 6px; flex-wrap: wrap; }
  .fil-encart .fil-act { width: 100%; justify-content: center; }
  .fil-chiffres { gap: 18px; }
  .fil-chiffres b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .story-cercle, .story-cercle span, .fil-encart > i, .fil-hero::before, .fil-hero::after { animation: none; } .fil-pub.cache { opacity: 1; transform: none; } }

/* En-tête : jamais de libellés coupés sur deux lignes */
.nav-desktop a, .header-actions .btn { white-space: nowrap; }
@media (max-width: 1280px) { .nav-desktop ul { gap: 16px; } .nav-desktop a { font-size: 14.5px; } }
@media (max-width: 1100px) { .nav-desktop li:nth-child(4) { display: none; } }

/* Note des clients dans le fil */
.fil-avis { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #64748b; margin-top: 2px; }
.fil-avis .etoiles { color: #f59e0b; font-size: 11.5px; letter-spacing: 1px; }
