:root{--fond:#f6f3ee;--encre:#1d1d1f;--accent:#2b6cdf;--carte:#fff;--trait:rgba(0,0,0,.09);--doux:rgba(0,0,0,.55);
  --vert:#1f9d55;--rouge:#d64545;--jaune:#c98a00;--bleu:#2b6cdf;--rayon:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,sans-serif;background:var(--fond);color:var(--encre)}
a{color:inherit}
main{max-width:1100px;margin:0 auto;padding:14px 14px 80px}
h1{font-size:1.5rem;margin:.2em 0 .3em;line-height:1.2}
h2{font-size:1.1rem;margin:0 0 .3em}
h3{font-size:1rem;margin:.25em 0}
.discret{color:var(--doux);font-size:.88rem;margin:.2em 0}
/* En-tête */
.haut{position:sticky;top:0;z-index:5;background:var(--encre);color:#fff;display:flex;align-items:center;gap:10px;
  padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));flex-wrap:wrap}
.marque{font-weight:800;letter-spacing:.02em;font-size:.95rem;opacity:.9}
.comptes{display:flex;gap:6px;overflow-x:auto;flex:1;scrollbar-width:none}
.onglet-compte{display:flex;align-items:center;gap:7px;text-decoration:none;padding:6px 12px 6px 6px;border-radius:999px;
  background:rgba(255,255,255,.1);white-space:nowrap;font-weight:600;font-size:.92rem}
.onglet-compte img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}
.onglet-compte.actif{background:#fff;color:var(--encre)}
.pastille{background:var(--rouge);color:#fff;border-radius:999px;font-size:.75rem;padding:1px 7px}
.moi{font-size:.82rem;opacity:.8;white-space:nowrap}
@media (max-width:640px){.marque,.moi{display:none}.comptes{flex-basis:100%}}
/* Vues */
.vues{display:flex;gap:4px;overflow-x:auto;margin:4px 0 16px;border-bottom:1px solid var(--trait);scrollbar-width:none}
.vues a{padding:10px 12px;text-decoration:none;white-space:nowrap;color:var(--doux);font-weight:600;border-bottom:3px solid transparent}
.vues a.actif{color:var(--encre);border-color:var(--accent)}
.vues b{background:var(--accent);color:#fff;border-radius:999px;font-size:.75rem;padding:1px 7px}
.flash{background:#fff;border-left:4px solid var(--accent);padding:10px 12px;border-radius:10px;margin:0 0 12px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
/* Groupes et cartes */
.groupe{margin:0 0 26px}
.compte-nb{color:var(--doux);font-weight:500}
.grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:10px}
.carte{background:var(--carte);border-radius:var(--rayon);overflow:hidden;display:flex;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.vignette{flex:0 0 112px;position:relative;background:color-mix(in srgb,var(--accent) 12%,#fff);display:flex;align-items:center;justify-content:center}
.vignette img{width:100%;height:100%;object-fit:cover;display:block;min-height:140px}
.vignette span{font-size:.8rem;color:var(--doux);text-align:center;padding:6px}
.vignette .nb{position:absolute;bottom:6px;left:6px;font-style:normal;font-size:.7rem;background:rgba(0,0,0,.65);color:#fff;border-radius:6px;padding:1px 6px}
.infos{padding:10px 12px;flex:1;min-width:0;display:flex;flex-direction:column}
.infos h3 a{text-decoration:none}
.hook{margin:.2em 0;font-size:.9rem;color:#333}
.ligne-statut{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.statut{font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:999px;text-transform:uppercase;letter-spacing:.03em}
.statut.jaune{background:#fff3cd;color:#8a6100}.statut.vert{background:#dcf5e5;color:#13703a}
.statut.rouge{background:#fde2e2;color:#a12a2a}.statut.bleu{background:#e0ebff;color:#1f4fa8}.statut.gris{background:#ececec;color:#555}
.travail{font-size:.85rem;color:var(--bleu);display:flex;align-items:center;gap:6px;margin:.3em 0}
.roue{width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;display:inline-block;animation:tour 1s linear infinite}
@keyframes tour{to{transform:rotate(360deg)}}
/* Boutons */
.boutons{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.boutons form{margin:0}
button,.bouton{font:inherit;font-weight:600;font-size:.92rem;border:1px solid var(--trait);background:#fff;color:var(--encre);
  border-radius:10px;padding:9px 14px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:42px}
button:disabled{opacity:.6}
.principal{background:var(--encre);color:#fff;border-color:var(--encre)}
.oui{background:var(--vert);color:#fff;border-color:var(--vert)}
.non{color:var(--rouge)}
.confirmer{background:var(--rouge)!important;color:#fff!important}
.gros{margin:14px 0}.gros button{font-size:1rem;padding:12px 18px}
/* Formulaires */
label{display:block;font-weight:600;font-size:.9rem;margin:12px 0 0}
input,textarea,select{display:block;width:100%;font:inherit;font-weight:400;margin-top:5px;padding:10px 12px;border:1px solid var(--trait);border-radius:10px;background:#fff;color:#111}
input[type=file]{padding:8px;background:#fafafa}
textarea{resize:vertical}
.deux{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:520px){.deux{grid-template-columns:1fr}}
.proposer{background:#fff;border-radius:var(--rayon);padding:16px;max-width:680px}
.choix-genre{display:flex;gap:8px;margin-bottom:6px}
.choix-genre button{flex:1}
.choix-genre button.actif{background:var(--accent);color:#fff;border-color:var(--accent)}
.connexion{max-width:360px;margin:12vh auto;background:#fff;padding:24px;border-radius:var(--rayon);box-shadow:0 2px 10px rgba(0,0,0,.06)}
.connexion button{width:100%;margin-top:16px;justify-content:center}
.ligne-form{display:flex;gap:8px;margin-top:10px}.ligne-form input{margin:0}
/* Détail */
.fil{margin:0 0 6px}.fil a{text-decoration:none;color:var(--doux);font-weight:600}
.detail{max-width:760px}
.slides{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px -14px;padding:0 14px 6px}
.slides a{flex:0 0 min(82%,420px);scroll-snap-align:start}
.slides img{width:100%;border-radius:10px;display:block;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.apercu{width:100%;border-radius:10px;margin:10px 0}
.video{width:100%;max-height:78vh;background:#000;border-radius:12px;margin:12px 0}
.encadre{background:#fff;border-radius:var(--rayon);padding:14px;margin:14px 0}
.encadre.rouge{border:2px solid var(--rouge)}
.encadre.doux{background:color-mix(in srgb,var(--accent) 7%,#fff)}
.encadre button{margin-top:10px}
.essais{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:8px 0}
.essais form{margin:0}
.essai{flex-direction:column;padding:4px;width:100%;height:auto}
.essai img{width:100%;border-radius:8px}
.essai span{font-size:.8rem;padding:4px 0}
.texte-note{background:#fff;border-radius:var(--rayon);padding:4px 16px;margin:14px 0;overflow-wrap:anywhere}
.texte-note h2{margin-top:1em}
.pre{white-space:pre-wrap}
.historique{margin:14px 0;color:var(--doux);font-size:.88rem}
.historique summary{cursor:pointer;font-weight:600}
.vide-tout{text-align:center;color:var(--doux);padding:40px 0;font-size:1.05rem}
/* correctifs mobile */
html,body{overflow-x:hidden}
.comptes,.vues,.infos,.grille>*{min-width:0}
.haut{max-width:100vw}
.infos h3,.hook{overflow-wrap:anywhere}
.vignette span{text-decoration:none}
a.vignette{text-decoration:none}
@media (max-width:520px){.grille{grid-template-columns:1fr}.vignette{flex-basis:96px}}
/* calendrier, messages, réglages */
.erreur{color:var(--rouge);font-size:.88rem;margin:.3em 0}
label.case{display:flex;gap:8px;align-items:flex-start;font-weight:500}
label.case input{width:auto;margin:3px 0 0}
.cal-tete{display:flex;align-items:center;gap:10px;justify-content:space-between;max-width:420px}
.cal-tete h2{margin:0}
.cal-grille{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin:10px 0}
.cal-jour-nom{font-size:.75rem;color:var(--doux);text-align:center;font-weight:700}
.cal-case{background:#fff;border-radius:8px;min-height:92px;padding:4px;display:flex;flex-direction:column;gap:3px;overflow:hidden}
.cal-case.hors{opacity:.45}
.cal-case.auj{outline:2px solid var(--accent)}
.cal-num{font-size:.75rem;font-weight:700;color:var(--doux)}
.cal-item{display:flex;gap:4px;align-items:center;text-decoration:none;font-size:.72rem;line-height:1.15;border-radius:6px;padding:2px;background:#f2f2f2}
.cal-item img{width:26px;height:32px;object-fit:cover;border-radius:4px;flex:none}
.cal-item span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cal-item.vert{background:#dcf5e5}.cal-item.rouge{background:#fde2e2}.cal-item.bleu{background:#e0ebff}
@media (max-width:640px){.cal-item span{display:none}.cal-case{min-height:64px}.cal-item img{width:100%;height:auto;aspect-ratio:4/5}}
.legende-cal .statut{margin-right:4px}
.ligne-tiktok{background:#fff;border-radius:10px;padding:10px 12px;margin:8px 0}
.ligne-tiktok .ligne-form input{flex:1}
.dm{background:#fff;border-radius:var(--rayon);padding:14px;margin:0 0 12px;max-width:680px}
.dm blockquote{margin:8px 0;padding:8px 12px;background:#f3f3f3;border-radius:10px;white-space:pre-wrap}
.dm input{margin-top:8px}
.reglages{max-width:680px}
/* ── Barre latérale (v2) ───────────────────────────────────────────── */
:root{--cote:272px;--cote-fond:#0f1726}
.cote{position:fixed;inset:0 auto 0 0;width:var(--cote);background:linear-gradient(180deg,var(--cote-fond),color-mix(in srgb,var(--encre) 55%,#0b1220));
  color:#e8ecf4;display:flex;flex-direction:column;padding:18px 14px calc(14px + env(safe-area-inset-bottom));overflow-y:auto;z-index:20;
  box-shadow:1px 0 0 rgba(255,255,255,.04),8px 0 30px rgba(0,0,0,.08)}
main.avec-cote{margin-left:var(--cote);max-width:none;padding:22px 28px 80px}
main.avec-cote>*{max-width:1180px}
.marque{display:flex;align-items:center;gap:10px;padding:2px 6px 18px;opacity:1}
.marque b{display:block;font-size:1rem;letter-spacing:.01em}
.marque small{display:block;font-size:.72rem;color:rgba(232,236,244,.55)}
.marque-logo{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-weight:900;font-size:1.1rem;
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%,#fff));color:#fff;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 40%,transparent)}
.cote-titre{font-size:.68rem;text-transform:uppercase;letter-spacing:.12em;color:rgba(232,236,244,.45);margin:14px 8px 6px;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cote-comptes,.cote-vues{display:flex;flex-direction:column;gap:3px}
.cote-compte{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;text-decoration:none;position:relative;transition:background .15s}
.cote-compte img{width:38px;height:38px;border-radius:50%;object-fit:cover;background:#fff;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.cote-compte:hover{background:rgba(255,255,255,.06)}
.cote-compte.actif{background:rgba(255,255,255,.1)}
.cote-compte.actif img{box-shadow:0 0 0 2px var(--acc)}
.cote-compte.actif::before{content:"";position:absolute;left:-14px;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:var(--acc)}
.cc-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.cc-txt b{font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cote .cc-txt small,.cote .cc-txt a{font-size:.74rem;color:rgba(232,236,244,.55);text-decoration:none}
.cote .cc-txt a:hover{color:#fff}
.cote .pastille{font-style:normal;background:#ff5a5f;color:#fff;border-radius:999px;font-size:.7rem;font-weight:700;padding:2px 7px;min-width:20px;text-align:center}
.cote-vues a{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:10px;text-decoration:none;color:rgba(232,236,244,.78);font-weight:500;font-size:.92rem;transition:background .15s,color .15s}
.cote-vues svg,.burger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cote-vues a:hover{background:rgba(255,255,255,.06);color:#fff}
.cote-vues a.actif{background:var(--accent);color:#fff;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 35%,transparent)}
.cote-vues span{flex:1}
.compteur{font-style:normal;font-size:.72rem;font-weight:700;background:rgba(255,255,255,.14);border-radius:999px;padding:1px 8px}
.cote-vues a.actif .compteur{background:rgba(255,255,255,.28)}
.cote-moi{margin-top:auto;display:flex;align-items:center;gap:10px;padding:14px 8px 4px;border-top:1px solid rgba(255,255,255,.08)}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:rgba(255,255,255,.12);flex:none}
.tete-page{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 16px}
.tete-page h1{margin:0;font-size:1.6rem;letter-spacing:-.01em}
.barre-mobile,.voile{display:none}
@media (max-width:900px){
  .cote{transform:translateX(-100%);transition:transform .22s ease}
  body.menu-ouvert .cote{transform:none}
  .voile{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:15}
  body.menu-ouvert .voile{display:block}
  main.avec-cote{margin-left:0;padding:14px 14px 80px}
  .barre-mobile{display:flex;position:sticky;top:0;z-index:10;align-items:center;gap:10px;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));
    background:var(--cote-fond);color:#fff}
  .barre-mobile img{width:30px;height:30px;border-radius:50%;background:#fff;object-fit:cover}
  .barre-mobile b{flex:1;font-size:.95rem}
  .barre-mobile .pastille{background:#ff5a5f;color:#fff;border-radius:999px;font-size:.72rem;font-weight:700;padding:2px 8px}
  .burger{background:transparent;border:0;color:#fff;padding:6px;min-height:0}
  .tete-page h1{font-size:1.3rem}
}
/* application installée (barre d'état transparente) */
.cote{padding-top:max(18px,calc(env(safe-area-inset-top) + 8px))}
.connexion{margin-top:max(12vh,env(safe-area-inset-top))}
@media (display-mode:standalone){body{overscroll-behavior-y:none}}
.cloche{margin-left:auto;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:rgba(232,236,244,.8)}
.cloche svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cloche:hover,.cloche.actif{background:rgba(255,255,255,.1);color:#fff}
/* analyse & concurrence */
.petit{font-size:.8rem}
.tuiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0 0 14px}
.tuile{background:#fff;border-radius:var(--rayon);padding:14px 16px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.tuile small{display:block;color:var(--doux);font-size:.8rem}
.tuile b{display:block;font-size:1.7rem;letter-spacing:-.02em;margin:2px 0}
.tuile em,.conc em{font-style:normal;font-size:.78rem;color:var(--doux)}
em.plus{color:var(--vert)} em.moins{color:var(--rouge)}
.deux-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:0 14px}
.barres{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.barre-ligne{display:grid;grid-template-columns:minmax(80px,32%) 1fr auto;gap:8px;align-items:center;font-size:.86rem}
.barre-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.barre-piste{position:relative;height:16px}
.barre{position:absolute;left:0;top:0;bottom:0;background:var(--accent);border-radius:0 4px 4px 0;min-width:2px}
.barre-ligne:hover .barre{filter:brightness(.9)}
.barre-repere{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--encre);opacity:.55}
.barre-val{font-variant-numeric:tabular-nums;font-weight:600;min-width:52px;text-align:right}
.barre-val small{color:var(--doux);font-weight:400}
.courbe{width:100%;height:160px;overflow:visible}
.courbe polyline{fill:none;stroke:var(--accent);stroke-width:2}
.courbe circle{fill:var(--accent);stroke:#fff;stroke-width:2}
.courbe .axe{stroke:rgba(0,0,0,.12);stroke-width:1}
.table-defile{overflow-x:auto}
.tableau{width:100%;border-collapse:collapse;font-size:.88rem}
.tableau th{text-align:left;color:var(--doux);font-weight:600;font-size:.78rem;padding:6px 8px;border-bottom:1px solid var(--trait)}
.tableau td{padding:8px;border-bottom:1px solid rgba(0,0,0,.05)}
.tableau .n{text-align:right;font-variant-numeric:tabular-nums}
.score{font-weight:700}.score.haut{color:var(--vert)}.score.bas{color:var(--rouge)}
.sous-onglets{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px}
.sous-onglets a{padding:8px 14px;border-radius:999px;background:#fff;text-decoration:none;font-weight:600;font-size:.9rem;color:var(--doux)}
.sous-onglets a.actif{background:var(--encre);color:#fff}
.filtres{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.filtres select{width:auto;margin:0}
.grille-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.post-conc{background:#fff;border-radius:var(--rayon);overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);display:flex;flex-direction:column}
.post-vignette{position:relative;display:block;aspect-ratio:4/5;background:color-mix(in srgb,var(--accent) 10%,#fff);text-decoration:none}
.post-vignette img{width:100%;height:100%;object-fit:cover;display:block}
.post-vignette span{position:absolute;inset:0;display:grid;place-items:center;color:var(--doux);font-size:.85rem}
.post-vignette .nb{position:absolute;bottom:8px;left:8px;font-style:normal;font-size:.7rem;background:rgba(0,0,0,.65);color:#fff;border-radius:6px;padding:1px 6px}
.score-badge{position:absolute;top:8px;right:8px;font-style:normal;font-weight:800;font-size:.85rem;background:#fff;color:var(--encre);border-radius:999px;padding:3px 9px;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.score-badge.haut{background:var(--accent);color:#fff}
.post-infos{padding:10px 12px;display:flex;flex-direction:column;gap:2px;flex:1}
.chiffres{margin:0;font-size:.82rem;font-variant-numeric:tabular-nums}
.legende-conc{margin:4px 0;font-size:.82rem;color:#444;overflow-wrap:anywhere}
.inspirer{margin-top:auto;padding-top:6px}
.inspirer summary{cursor:pointer;font-weight:600;font-size:.88rem;color:var(--accent)}
.inspirer input{margin:6px 0}
.liste-conc{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.conc{background:#fff;border-radius:var(--rayon);padding:14px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.conc-tete{display:flex;align-items:center;gap:10px}
.conc-tete img,.avatar-vide{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.avatar-vide{display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 15%,#fff);font-weight:800;color:var(--encre)}
.conc-tete .cc-txt a{text-decoration:none}
.conc-tete .cc-txt small{color:var(--doux);font-size:.78rem}
.petit-bouton{min-height:32px;padding:4px 10px}
.conc-chiffres{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0 6px}
.conc-chiffres b{display:block;font-size:1.05rem;font-variant-numeric:tabular-nums}
.conc-chiffres small{color:var(--doux);font-size:.7rem;line-height:1.2;display:block}
.pourquoi{font-size:.85rem;margin:6px 0;color:#333}
.lancer-veille{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.lancer-veille>div{flex:1;min-width:240px}
.texte-note.sans-fond{padding:0;margin:0}
.vide-analyse{max-width:720px}

.conc-tete .cc-txt b a{color:var(--encre);font-size:.95rem}
.credit{margin-top:8px;max-width:520px}
.credit-piste{height:8px;border-radius:999px;background:rgba(0,0,0,.08);overflow:hidden}
.credit-piste span{display:block;height:100%;background:var(--accent);border-radius:999px}
.credit-piste span.plein{background:var(--rouge)}
