/* LBN Connect, application Web (30 novembre 2026). Palette officielle : marine #091F38, sarcelle #087F83,
   turquoise #10BFA5, menthe #54F0D1, fond clair #F3F6FA. Thèmes clair et sombre (préférence du système ou choix). */
:root {
  --marine: #091F38; --marine2: #0C2A49; --sarcelle: #087F83; --turquoise: #10BFA5; --menthe: #54F0D1;
  --fond: #F3F6FA; --surface: #FFFFFF; --surface2: #EEF3F8; --bord: #DCE5EE; --texte: #0F2236; --texte2: #4A5E73;
  --vert: #15803D; --ambre: #B45309; --rouge: #DC2626; --violet: #7C3AED; --rayon: 16px; --ombre: 0 6px 18px rgba(9,31,56,.07);
}
:root[data-theme="sombre"] { --fond: #08131F; --surface: #0F2034; --surface2: #15293F; --bord: #22384F; --texte: #EAF3F8; --texte2: #A9BCCD; --ombre: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]) { --fond: #08131F; --surface: #0F2034; --surface2: #15293F; --bord: #22384F; --texte: #EAF3F8; --texte2: #A9BCCD; --ombre: none; } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte); font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 15px; }
a { color: var(--sarcelle); }
button, input, select, textarea { font: inherit; color: inherit; }
.noscript { padding: 24px; }
svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; flex: none; }
input[type=date], input[type=time] { min-height: 40px; border: 1px solid var(--bord); border-radius: 10px; padding: 0 8px; background: var(--surface); color: var(--texte); }
:root[data-theme="sombre"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]) { color-scheme: dark; } }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Connexion */
.ecran-connexion { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(900px 500px at 80% 10%, rgba(16,191,165,.3), transparent 60%), linear-gradient(135deg, #091F38, #0A3D55); }
.carte-connexion { width: min(100%, 460px); background: var(--surface); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: grid; gap: 14px; }
.carte-connexion img { width: 100%; max-width: 320px; margin: 0 auto 6px; display: block; }
.carte-connexion h1 { margin: 0; font-size: 1.35rem; text-align: center; color: var(--texte); }
.carte-connexion p { margin: 0; color: var(--texte2); text-align: center; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: .92rem; color: var(--texte2); }
.champ input, .champ textarea, .champ select { width: 100%; min-height: 46px; border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.champ textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.erreur { background: #FDECEE; color: #B42318; border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.info { background: #E6F7F3; color: #0B6B62; border-radius: 12px; padding: 10px 12px; font-size: .92rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; font-weight: 700; text-decoration: none; color: var(--texte); }
.btn:hover { border-color: var(--turquoise); }
.btn:focus-visible, a:focus-visible, .nav a:focus-visible { outline: 3px solid var(--menthe); outline-offset: 2px; }
.btn.plein { background: linear-gradient(135deg, var(--turquoise), var(--sarcelle)); border-color: transparent; color: #fff; }
.btn.ia { background: linear-gradient(135deg, #EEE9FF, #F5F0FF); color: #5B21B6; border-color: #DDD3FB; }
.btn.danger { color: var(--rouge); }
.btn.petit { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }

/* Cadre */
.cadre { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.lateral { background: linear-gradient(180deg, #091F38 0%, #0A2D44 100%); color: #D6E4F0; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lateral .marque img { width: 100%; max-width: 230px; display: block; }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; color: #D6E4F0; text-decoration: none; padding: 11px 12px; border-radius: 12px; font-weight: 600; }
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.actif { background: linear-gradient(135deg, var(--sarcelle), #0B9C93); color: #fff; }
.aide { margin-top: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px; display: grid; gap: 8px; font-size: .9rem; }
.aide a { color: var(--menthe); }
.principal { min-width: 0; display: flex; flex-direction: column; }
.barre { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 5; }
.recherche { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 12px; min-height: 42px; background: var(--surface2); }
.recherche input { border: 0; background: transparent; flex: 1; min-height: 40px; outline: none; }
.selecteur { border: 1px solid var(--bord); border-radius: 12px; min-height: 42px; padding: 0 10px; background: var(--surface); font-weight: 700; max-width: 240px; }
.barre .symbole { display: none; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2F6BFF, #1745D1); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.ident { line-height: 1.2; }
.ident strong { display: block; }
.ident small { color: var(--texte2); }
.bandeau-demo { background: repeating-linear-gradient(135deg, #FFF4DC, #FFF4DC 14px, #FFEBC2 14px, #FFEBC2 28px); color: #7A4A00; font-weight: 800; text-align: center; padding: 8px 16px; font-size: .9rem; border-bottom: 1px solid #F2C46D; }
.vue { padding: 22px 24px 40px; display: grid; gap: 18px; }
.pied { border-top: 1px solid var(--bord); padding: 16px 24px; color: var(--texte2); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; background: var(--surface); }
.pied a { color: var(--texte2); }
.pied strong { color: var(--texte); }

/* Composants */
.banniere { border-radius: 20px; padding: 26px 28px; color: #fff; background: radial-gradient(600px 300px at 85% 30%, rgba(84,240,209,.35), transparent 60%), linear-gradient(120deg, #091F38 0%, #0A4E5A 70%, #0E8C84 100%); display: grid; gap: 6px; }
.banniere h1 { margin: 0; font-size: 1.8rem; }
.banniere p { margin: 0; color: #D6E4F0; font-size: 1.05rem; }
.banniere .slogan { color: var(--menthe); font-weight: 800; font-style: italic; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 200px; min-height: 52px; font-size: 1.02rem; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--ombre); }
.kpi .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.kpi .ico svg { width: 24px; height: 24px; }
.kpi b { font-size: 1.7rem; display: block; line-height: 1.1; }
.kpi span { color: var(--texte2); font-size: .9rem; }
.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); display: grid; gap: 10px; min-width: 0; }
.carte h2 { margin: 0; font-size: 1.12rem; display: flex; align-items: center; gap: 8px; }
.carte h2 svg { width: 22px; height: 22px; color: var(--sarcelle); }
.carte h2 .lien { margin-left: auto; font-size: .88rem; font-weight: 600; }
.liste { display: grid; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bord); min-width: 0; }
.ligne:last-child { border-bottom: 0; }
.ligne .corps { flex: 1; min-width: 0; }
.ligne .corps strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .corps small { color: var(--texte2); }
.date { width: 50px; text-align: center; border-radius: 10px; background: #E3F6F2; color: var(--sarcelle); padding: 6px 0; flex: none; font-weight: 800; line-height: 1.1; }
.date small { display: block; font-size: .72rem; }
.vignette { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface2); flex: none; }
.pastille { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface2); color: var(--texte2); }
.pastille.connecte, .pastille.publie, .pastille.partiellement_publie, .pastille.actif { background: #DFF7EA; color: var(--vert); }
.pastille.programme, .pastille.approuve { background: #E3EEFF; color: #1D4ED8; }
.pastille.en_attente_approbation { background: #FFF4DC; color: var(--ambre); }
.pastille.connecte_limite, .pastille.verification_en_cours { background: #FFF4DC; color: var(--ambre); }
.pastille.erreur, .pastille.reconnexion_necessaire, .pastille.autorisation_expiree, .pastille.echec, .pastille.expire, .pastille.revoque { background: #FDECEE; color: var(--rouge); }
.reseau { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-weight: 900; font-size: .85rem; flex: none; }
.vide { color: var(--texte2); padding: 10px 0; }
.ecosysteme { border-radius: 20px; padding: 22px; color: #fff; background: linear-gradient(120deg, #0A2D44, #0E8C84); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.ecosysteme h2 { margin: 0 0 4px; }
.ecosysteme p { margin: 0; color: #D6E4F0; }
.produits { display: flex; gap: 10px; flex-wrap: wrap; }
.produit { width: 78px; height: 78px; border-radius: 16px; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 800; font-size: .78rem; text-decoration: none; padding: 6px; line-height: 1.15; }

/* Studio */
.etapes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.etape { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--bord); font-weight: 700; color: var(--texte2); }
.etape.faite { background: var(--sarcelle); color: #fff; border-color: transparent; }
.etape b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); font-size: .82rem; }
.etape:not(.faite) b { background: var(--surface2); }
.studio { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.depot { border: 2px dashed var(--bord); border-radius: 14px; padding: 22px; text-align: center; color: var(--texte2); cursor: pointer; }
.depot:hover { border-color: var(--turquoise); }
.medias { display: flex; gap: 8px; flex-wrap: wrap; }
.medias img, .medias video { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; }
.canal { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--bord); border-radius: 12px; cursor: pointer; }
.canal input { width: 20px; height: 20px; accent-color: var(--sarcelle); }
.apercu { border: 1px solid var(--bord); border-radius: 14px; padding: 14px; background: var(--surface); display: grid; gap: 10px; }
.apercu .tete { display: flex; gap: 10px; align-items: center; }
.apercu .tete .avatar { width: 38px; height: 38px; font-size: .85rem; }
.apercu img { width: 100%; border-radius: 10px; max-height: 320px; object-fit: cover; }
.apercu p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; }
.onglets button { border: 1px solid var(--bord); background: var(--surface); border-radius: 10px; min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer; }
.onglets button.actif { background: var(--sarcelle); color: #fff; border-color: transparent; }
.publier-bloc { display: grid; gap: 10px; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Calendrier */
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendrier .jour-nom { text-align: center; font-weight: 700; color: var(--texte2); font-size: .85rem; }
.calendrier .case { min-height: 96px; border: 1px solid var(--bord); border-radius: 10px; padding: 6px; background: var(--surface); font-size: .82rem; display: grid; align-content: start; gap: 4px; }
.calendrier .case.hors { opacity: .45; }
.calendrier .case.aujourdhui { border-color: var(--turquoise); box-shadow: 0 0 0 2px var(--menthe) inset; }
.calendrier .evt { background: #E3F6F2; color: #0B6B62; border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau th, .tableau td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { color: var(--texte2); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.defile { overflow-x: auto; }
.chargement { padding: 30px; text-align: center; color: var(--texte2); }

/* Navigation inférieure (téléphones) */
.basnav { display: none; }
@media (max-width: 900px) {
  .cadre { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .barre { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
  .recherche { display: none; }
  .barre .symbole { display: block; width: 38px; height: 38px; }
  .ident small { display: none; }
  .selecteur { max-width: 46vw; font-size: .9rem; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { min-height: 64px; font-size: .92rem; flex-direction: column; gap: 4px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 10px; gap: 10px; }
  .kpi .ico { width: 40px; height: 40px; border-radius: 12px; }
  .kpi b { font-size: 1.35rem; }
  .kpi span { font-size: .8rem; }
  .vue { padding: 16px 14px 100px; }
  .banniere h1 { font-size: 1.4rem; }
  .basnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
  .basnav a { display: grid; place-items: center; gap: 2px; padding: 8px 0; color: var(--texte2); text-decoration: none; font-size: .74rem; font-weight: 700; min-height: 58px; }
  .basnav a svg { width: 24px; height: 24px; }
  .basnav a.actif { color: var(--sarcelle); }
  .basnav a.creer svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--turquoise), var(--sarcelle)); color: #fff; margin-top: -18px; box-shadow: 0 6px 16px rgba(8,127,131,.4); }
  .pied { padding-bottom: 90px; }
  .calendrier .case { min-height: 64px; }
  .ligne { flex-wrap: wrap; }
  .ligne .corps { flex: 1 1 150px; }
  .ligne .btn.petit { flex: 1 1 auto; }
}

/* ===== Modules (30 novembre 2026, lot 2) ===== */
.titre-vue { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.titre-vue h1 { margin: 0; font-size: 1.55rem; color: var(--texte); }
.titre-vue p { margin: 4px 0 0; color: var(--texte2); }
.sous-carte { background: var(--surface2); border: 1px solid var(--bord); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.sous-carte h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.carte h3 { margin: 6px 0 0; font-size: 1rem; }
.nav a.admin { margin-top: 10px; border: 1px dashed rgba(84,240,209,.45); }
.ligne .reseaux { display: inline-flex; gap: 4px; flex: none; }
.reseau.plus { background: var(--surface2); color: var(--texte2); font-size: .75rem; }
.actions-ligne { padding: 0 0 10px; gap: 6px; }
.pastille-couleur { width: 12px; height: 34px; border-radius: 6px; flex: none; }
.pastille.active, .pastille.terminee { background: #DFF7EA; color: var(--vert); }
.pastille.en_approbation, .pastille.en_pause { background: #FFF4DC; color: var(--ambre); }
.pastille.archivee, .pastille.annule { background: var(--surface2); color: var(--texte2); }
.media-mini { position: relative; margin: 0; }
.media-mini img, .media-mini video { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; display: block; }
.media-mini button { position: absolute; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(9,31,56,.8); color: #fff; cursor: pointer; font-weight: 800; line-height: 1; }
.media-mini .retirer { right: 4px; } .media-mini .gauche { left: 4px; }
.grille-medias { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.grille-medias.grande { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tuile-media { background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; overflow: hidden; padding: 0; display: grid; text-align: left; cursor: pointer; color: inherit; box-shadow: var(--ombre); }
.tuile-media img, .tuile-media video, .tuile-media .doc { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface2); display: grid; place-items: center; font-weight: 900; color: var(--texte2); }
.tuile-media > span { padding: 6px 8px; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile-corps { padding: 10px; display: grid; gap: 6px; min-width: 0; }
.tuile-corps strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuile-corps small { color: var(--texte2); }
.tuile-corps select { min-height: 36px; border: 1px solid var(--bord); border-radius: 10px; background: var(--surface); padding: 0 6px; max-width: 130px; }
.graphique { width: 100%; height: 150px; display: block; }
.graphique-legende { display: flex; justify-content: space-around; font-size: .75rem; color: var(--texte2); gap: 2px; }
.note-budget { display: flex; gap: 8px; align-items: center; background: #E6F7F3; color: #0B6B62; border-radius: 12px; padding: 10px 12px; margin: 0; font-weight: 600; }
.grille-campagnes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); align-items: start; }
.campagne h2 { font-size: 1.15rem; }
.campagne p { margin: 0; color: var(--texte2); }
dl.fiche { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
dl.fiche dt { color: var(--texte2); font-weight: 600; } dl.fiche dd { margin: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.progression { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; }
.progression span { display: block; height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--sarcelle)); }
.formulaire { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.formulaire .large { grid-column: 1 / -1; }
fieldset.champ { border: 1px solid var(--bord); border-radius: 12px; padding: 10px 12px; }
fieldset.champ legend { font-weight: 600; color: var(--texte2); font-size: .92rem; padding: 0 4px; }
.champ select, .rangee select { min-height: 44px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 10px; background: var(--surface); }
.champ input[type=color] { padding: 4px; height: 46px; }
.vide-illustre { text-align: center; justify-items: center; padding: 34px 18px; }
.vide-illustre svg { width: 46px; height: 46px; color: var(--sarcelle); }
.vide-illustre h2 { justify-content: center; }
.lien-copie { width: 100%; margin-top: 6px; min-height: 40px; border: 1px solid var(--bord); border-radius: 10px; padding: 0 10px; font-family: ui-monospace, monospace; font-size: .82rem; background: var(--surface); }
#lim.depasse, small.depasse { color: var(--rouge); font-weight: 800; }
.tableau tr.revoque td { opacity: .55; }
.tableau select { min-height: 36px; border: 1px solid var(--bord); border-radius: 10px; background: var(--surface); }
.tableau details summary { cursor: pointer; color: var(--sarcelle); font-size: .85rem; margin-top: 4px; }
.apercu video { width: 100%; border-radius: 10px; max-height: 320px; }
.apercu-instagram .tete { border-bottom: 1px solid var(--bord); padding-bottom: 8px; }
.apercu-x p, .apercu-threads p { font-size: .98rem; }
.apercu-linkedin, .apercu-linkedin_pages { border-top: 4px solid #0A66C2; }
.apercu-facebook { border-top: 4px solid #1877F2; } .apercu-instagram { border-top: 4px solid #E1306C; } .apercu-tiktok { border-top: 4px solid #111; }
a.kpi { text-decoration: none; color: inherit; }
@media (max-width: 900px) {
  .ident { display: none; }
  .titre-vue h1 { font-size: 1.3rem; }
  .ligne .reseaux .reseau { width: 24px; height: 24px; font-size: .72rem; }
}
@media print {
  .lateral, .barre, .basnav, .pied, .bandeau-demo, button, .btn { display: none !important; }
  .cadre { display: block; } .vue { padding: 0; }
}
.kpi, .kpi > div { min-width: 0; }
.kpi b { overflow-wrap: anywhere; }
@media (max-width: 900px) { a.kpi b { font-size: .92rem !important; hyphens: auto; } .grille, .studio, .grille-campagnes { grid-template-columns: minmax(0, 1fr); } }

/* Recette */
.aide .signaler { display: flex; gap: 8px; align-items: center; color: #fff; font-weight: 800; text-decoration: none; background: rgba(255,255,255,.1); border-radius: 10px; padding: 9px 10px; }
.anomalie { border-bottom: 1px solid var(--bord); padding: 12px 0; display: grid; gap: 6px; }
.anomalie p { margin: 0; color: var(--texte2); white-space: pre-wrap; }
.anomalie .medias img { width: 110px; height: 80px; }
.anomalie select, .petit-champ { min-height: 36px; border: 1px solid var(--bord); border-radius: 10px; background: var(--surface); padding: 0 8px; }
.pastille.an-nouvelle { background: #E3EEFF; color: #1D4ED8; } .pastille.an-en_cours { background: #FFF4DC; color: var(--ambre); } .pastille.an-corrigee { background: #EDE7FF; color: #5B21B6; }
.pastille.an-validee { background: #DFF7EA; color: var(--vert); } .pastille.prio-haute { background: #FFF4DC; color: var(--ambre); } .pastille.prio-bloquante { background: #FDECEE; color: var(--rouge); }

.carte h2 .btn.lien { margin-left: auto; }
details > summary.btn { display: inline-flex; list-style: none; }

/* Centre d'aide */
.grille-aide { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.tutoriel summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.tutoriel summary .ico { width: 38px; height: 38px; border-radius: 12px; background: #087F8322; color: var(--sarcelle); display: grid; place-items: center; flex: none; }
.tutoriel ol { margin: 4px 0; padding-left: 22px; display: grid; gap: 6px; color: var(--texte); line-height: 1.45; }
.aide { gap: 6px !important; }

/* Logos officiels des réseaux et mise en page plus dense (30 novembre 2026, lot 3) */
.reseau svg { width: 62%; height: 62%; }
.reseau svg[viewBox="0 0 512 512"] { width: 62%; height: 62%; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.grille { align-items: stretch; }
.grille > .carte { align-content: start; }
@media (min-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vue { max-width: 1500px; width: 100%; margin: 0 auto; }
  .grille-campagnes { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
}
.cadre { background: var(--fond); }
.lateral { min-height: 100vh; }

.ligne.pub { align-items: flex-start; }
.ligne.pub .corps strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.ligne .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 5px; }
.ligne .meta .reseau { width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; }
.ligne .meta small { color: var(--texte2); }
.vignette.vide-v { display: grid; place-items: center; color: var(--texte2); }
.vignette.vide-v svg { width: 22px; height: 22px; }

.reseau svg path, .reseau svg circle, .reseau svg rect { fill: #fff; }

/* Notifications */
.barre > div:last-child { position: relative; }
.cloche { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--texte); }
.cloche svg { width: 22px; height: 22px; }
.cloche b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--rouge); color: #fff; font-size: .72rem; display: grid; place-items: center; padding: 0 5px; }
.panneau-notifs { position: absolute; right: 0; top: 52px; width: min(380px, 92vw); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 18px 40px rgba(9,31,56,.22); padding: 12px; display: grid; gap: 4px; z-index: 20; }
.panneau-notifs a { display: grid; gap: 4px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--texte); border-bottom: 1px solid var(--bord); }
.panneau-notifs a:hover { background: var(--surface2); }
.panneau-notifs small { color: var(--texte2); }
.panneau-notifs .pastille { justify-self: start; }

/* Sécurité du compte */
.qr { background: #fff; padding: 10px; border-radius: 12px; width: 212px; }
.qr svg { width: 192px; height: 192px; display: block; }
pre.codes { background: var(--surface2); border-radius: 12px; padding: 12px; font-size: 1rem; letter-spacing: .05em; columns: 2; margin: 0; }

/* Marques et réseaux */
.filtres select { min-height: 42px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 10px; background: var(--surface); }
.marque .tableau td { vertical-align: middle; }
.petit-champ.large { width: min(100%, 320px); margin-top: 4px; }
.visuel-contenu { width: 100%; border-radius: 10px; aspect-ratio: 1200 / 630; object-fit: cover; }
.grille-campagnes textarea { width: 100%; border: 1px solid var(--bord); border-radius: 12px; padding: 10px; background: var(--surface); line-height: 1.45; resize: vertical; }

.reseau svg [fill="none"] { fill: none; stroke: #fff; }
.reseau svg { width: 62%; height: 62%; }

/* ---------------------------------------------------------------- Publications : liste, fiche détaillée, aperçus (1er décembre 2026) */
.cliquable, .pub-carte, .evt[data-fiche] { cursor: pointer; }
.ligne.cliquable { border-radius: 12px; padding-inline: 8px; margin-inline: -8px; transition: background .15s; }
.ligne.cliquable:hover, .ligne.cliquable:focus-visible, .pub-carte:hover, .pub-carte:focus-visible { background: var(--surface2); outline: none; }
.ligne.cliquable:focus-visible, .pub-carte:focus-visible { box-shadow: 0 0 0 2px var(--turquoise) inset; }
.pub-carte { display: flex; gap: 14px; align-items: flex-start; padding: 12px 8px; margin-inline: -8px; border-bottom: 1px solid var(--bord); border-radius: 12px; min-width: 0; }
.pub-carte:last-child { border-bottom: 0; }
.pub-carte .corps { flex: 1; min-width: 0; }
.pub-carte .corps strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.pub-carte .extrait { margin: 4px 0 0; color: var(--texte2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pub-carte .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.pub-carte .meta small { color: var(--texte2); }
.pub-carte .meta .reseau { width: 22px; height: 22px; border-radius: 6px; font-size: .7rem; }
.vignette.grande { width: 84px; height: 84px; border-radius: 12px; font-size: 1.4rem; }
.pub-actions { display: flex; gap: 6px; align-items: center; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 280px; }
.menu-plus { position: relative; }
.menu-plus summary { list-style: none; cursor: pointer; min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--bord); border-radius: 10px; font-size: 1.2rem; background: var(--surface); }
.menu-plus summary::-webkit-details-marker { display: none; }
.menu-plus > div { position: absolute; right: 0; top: 46px; z-index: 30; background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; box-shadow: 0 10px 30px rgba(9,31,56,.18); min-width: 210px; padding: 6px; display: grid; }
.menu-plus > div button { background: none; border: 0; text-align: left; padding: 11px 12px; border-radius: 8px; color: var(--texte); font: inherit; cursor: pointer; }
.menu-plus > div button:hover { background: var(--surface2); }
.filtres { flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filtres .bascule { display: inline-flex; align-items: center; gap: 6px; color: var(--texte2); font-size: .92rem; }
.filtres input[type=date], #cal-statut, #cal-reseau { min-height: 42px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 10px; background: var(--surface); color: var(--texte); }
.pastille.archive { background: var(--surface2); color: var(--texte2); }
.pastille.grande { font-size: .95rem; padding: 7px 14px; }
.btn.danger { color: var(--rouge); border-color: color-mix(in srgb, var(--rouge) 40%, var(--bord)); }
.calendrier .evt { border: 0; font: inherit; font-size: .8rem; text-align: left; width: 100%; display: flex; align-items: center; gap: 4px; min-height: 26px; }
.calendrier .evt .evt-res { display: inline-flex; gap: 2px; flex: none; }
.calendrier .evt .evt-res .reseau { width: 16px; height: 16px; border-radius: 4px; font-size: .6rem; }
.calendrier .evt.st-echec { background: #FDECEE; color: var(--rouge); } .calendrier .evt.st-annule, .calendrier .evt.st-archive { background: var(--surface2); color: var(--texte2); text-decoration: line-through; }
.calendrier .evt.st-programme { background: #E3EEFF; color: #1D4ED8; } .calendrier .evt.st-brouillon { background: var(--surface2); color: var(--texte); }
.calendrier .evt[draggable=true] { cursor: grab; }
.calendrier .case.survol { border-color: var(--turquoise); background: color-mix(in srgb, var(--turquoise) 12%, var(--surface)); }
.fiche { display: grid; gap: 14px; min-width: 0; }
.f-entete { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.f-titre { flex: 1; min-width: 200px; }
.f-titre h1 { margin: 2px 0 0; font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
.f-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.f-note { font-size: .88rem; margin: 0; padding: 0; }
.f-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1000px) { .f-grille { grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); } .f-droite { position: sticky; top: 12px; } }
.f-gauche, .f-droite { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; min-width: 0; display: grid; gap: 14px; }
.f-droite h3, .f-bloc h3 { margin: 0 0 8px; font-size: 1rem; }
.f-droite select { flex: 1; min-width: 150px; min-height: 42px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 10px; background: var(--surface); color: var(--texte); }
.f-bloc { background: var(--surface2); border-radius: 14px; padding: 14px; min-width: 0; }
.f-texte { white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.f-texte a, .ap-texte a { color: var(--sarcelle); }
.motclic { color: var(--sarcelle); font-weight: 600; }
.f-mots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.f-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.f-media { position: relative; padding: 0; border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #000; cursor: zoom-in; }
.f-media img, .f-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-lecture { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.8rem; background: rgba(0,0,0,.25); }
.f-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; margin: 0; }
.f-infos dt { color: var(--texte2); font-size: .8rem; } .f-infos dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.f-cible { background: var(--surface); border: 1px solid var(--bord); border-radius: 12px; padding: 12px; margin-bottom: 8px; display: grid; gap: 8px; }
.f-cible-tete { display: flex; align-items: center; gap: 10px; } .f-cible-tete > div { flex: 1; min-width: 0; }
.f-adapte { margin: 0; white-space: pre-wrap; }
.f-diag { background: #FDECEE; color: #7F1D1D; border-radius: 10px; padding: 12px; } .f-diag p { margin: 6px 0; } .f-diag ul { margin: 0 0 8px; padding-left: 20px; } .f-diag small { opacity: .85; overflow-wrap: anywhere; }
:root[data-theme="sombre"] .f-diag { background: #3B1418; color: #FECACA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]) .f-diag { background: #3B1418; color: #FECACA; } }
.f-chrono { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--bord); display: grid; gap: 12px; }
.f-chrono li { position: relative; } .f-chrono li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--turquoise); } .f-chrono li.ko::before { background: var(--rouge); }
.f-version { background: var(--surface); border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; } .f-version summary { cursor: pointer; font-weight: 600; } .f-version .f-texte { margin: 8px 0; }
.f-reprog input { min-height: 44px; border: 1px solid var(--bord); border-radius: 12px; padding: 0 10px; background: var(--surface); color: var(--texte); }
/* Aperçus par réseau : carte claire, comme sur le réseau, quel que soit le thème de LBN Connect */
.ap-cadre { display: grid; justify-items: center; }
.ap-cadre.mobile .ap { width: min(100%, 360px); border-radius: 26px; border: 8px solid #1b2733; }
.ap { width: 100%; background: #fff; color: #1c1e21; border-radius: 12px; border: 1px solid #dcdfe4; padding: 12px; display: grid; gap: 10px; min-width: 0; font-size: .95rem; }
.ap-tete { display: flex; gap: 10px; align-items: center; min-width: 0; } .ap-tete strong { overflow-wrap: anywhere; }
.ap-avatar { width: 40px; height: 40px; border-radius: 50%; background: #0C2A49; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; object-fit: cover; }
.ap-date { color: #65676b; } .ap-titre { display: block; }
.ap-texte { margin: 0; white-space: pre-wrap; line-height: 1.45; overflow-wrap: anywhere; }
.ap-media { position: relative; border-radius: 8px; overflow: hidden; background: #000; }
.ap-media img, .ap-media video, .ap-media iframe { width: 100%; display: block; max-height: 460px; object-fit: cover; border: 0; }
.ap-media.carre { aspect-ratio: 1; } .ap-media.carre img, .ap-media.carre video { height: 100%; max-height: none; }
.ap-media.large { aspect-ratio: 16 / 9; } .ap-media.large img, .ap-media.large video, .ap-media.large iframe { height: 100%; max-height: none; }
.ap-media.vertical { aspect-ratio: 9 / 16; max-height: 520px; margin-inline: auto; } .ap-media.vertical img, .ap-media.vertical video { height: 100%; max-height: none; }
.ap-media.vide { display: grid; place-items: center; color: #cbd5e1; padding: 16px; text-align: center; font-size: .9rem; }
.ap-compteur { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .78rem; }
.ap-barre { display: flex; justify-content: space-around; gap: 8px; color: #65676b; border-top: 1px solid #e4e6eb; padding-top: 8px; font-size: .88rem; }
.ap-fil { display: flex; gap: 10px; } .ap-col { flex: 1; min-width: 0; display: grid; gap: 8px; }
.ap-instagram { padding: 0; gap: 0; } .ap-instagram > * { padding-inline: 12px; } .ap-instagram .ap-tete { padding-block: 10px; } .ap-instagram .ap-media { border-radius: 0; padding: 0; } .ap-instagram .ap-barre { border: 0; justify-content: flex-start; gap: 16px; font-size: 1.2rem; padding-top: 10px; } .ap-instagram .ap-date { padding-bottom: 12px; }
.ap-x, .ap-threads { border-radius: 16px; } .ap-x .ap-media, .ap-threads .ap-media { border-radius: 14px; } .ap-x .ap-barre, .ap-threads .ap-barre { border: 0; justify-content: space-between; }
.ap-linkedin_pages { border-radius: 8px; } .ap-linkedin_pages .ap-avatar, .ap-google_business .ap-avatar { border-radius: 6px; }
.ap-tiktok { background: #000; color: #fff; padding: 0; position: relative; } .ap-tiktok .ap-legende { padding: 12px; } .ap-tiktok .ap-legende p { margin: 4px 0 0; white-space: pre-wrap; } .ap-tiktok .ap-texte a, .ap-tiktok a { color: #7dd3fc; }
.ap-bouton { justify-self: start; border: 1px solid #1a73e8; color: #1a73e8; border-radius: 6px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgba(4,10,18,.94); display: grid; grid-template-rows: 1fr auto; }
.visionneuse .v-corps { display: grid; place-items: center; padding: 56px 12px 8px; min-height: 0; }
.visionneuse img, .visionneuse video { max-width: 100%; max-height: calc(100dvh - 110px); border-radius: 8px; }
.visionneuse .v-pied { color: #fff; text-align: center; padding: 10px; }
.visionneuse .v-fermer, .visionneuse .v-nav { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.visionneuse .v-fermer { top: 12px; right: 12px; } .visionneuse .v-nav.prec { left: 12px; top: 50%; } .visionneuse .v-nav.suiv { right: 12px; top: 50%; }
@media (max-width: 760px) {
  .pub-carte { flex-wrap: wrap; } .pub-carte .corps { flex: 1 1 160px; } .pub-actions { max-width: none; width: 100%; justify-content: flex-start; } .pub-actions .btn { flex: 1 1 auto; }
  .vignette.grande { width: 64px; height: 64px; }
  .f-actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; } .f-gauche, .f-droite { padding: 12px; }
  .calendrier .evt { font-size: .68rem; padding: 2px 3px; } .calendrier .evt .evt-res { display: none; }
}

/* Messages : bleu-turquoise = information, vert = réussite, orange = avertissement, rouge = erreur réelle (1er décembre 2026) */
.info { background: #E3F3F6; color: #0B4F5C; border: 1px solid #B9E1E6; }
.succes { background: #DFF7EA; color: #14532D; border-radius: 12px; padding: 10px 12px; font-size: .92rem; border: 1px solid #A7E3BF; }
.avertissement { background: #FFF4DC; color: #7A4A00; border-radius: 12px; padding: 10px 12px; font-size: .92rem; border: 1px solid #F5D592; }
.erreur { border: 1px solid #F5C2C7; }
:root[data-theme="sombre"] .info { background: #0E3440; color: #BDEBF2; border-color: #1C5363; }
:root[data-theme="sombre"] .erreur { background: #3B1418; color: #FECACA; border-color: #5E1F25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="clair"]) .info { background: #0E3440; color: #BDEBF2; border-color: #1C5363; } :root:not([data-theme="clair"]) .erreur { background: #3B1418; color: #FECACA; border-color: #5E1F25; } }
.info.avec-icone { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.info.avec-icone svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.bouclier { width: 76px; height: 76px; border-radius: 50%; background: #E3F3F6; color: var(--sarcelle); display: grid; place-items: center; margin: 2px auto 0; }
.bouclier svg { width: 38px; height: 38px; }
.carte-connexion .etape-connexion { font-size: .9rem; margin-top: -6px; }
.carte-connexion .code-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; min-height: 58px; }
.carte-connexion .code-otp::placeholder { letter-spacing: .5em; opacity: .35; }
.carte-connexion .lien-simple { background: none; border: 0; color: var(--sarcelle); font-weight: 700; }
.carte-connexion .aide-connexion { font-size: .9rem; }

/* Comptes connectés par marque (1er décembre 2026) */
.cm-filtre { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.cm-totaux { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.cm-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; vertical-align: middle; margin-right: .5rem; }
.cm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .8rem; }
.cm-reseau { border: 1px solid var(--bord, #dfe3ea); border-radius: 12px; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.cm-entete, .cm-compte { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.cm-entete .pastille { flex: none; max-width: 100%; white-space: normal; }
.cm-entete .corps, .cm-compte .corps { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.cm-compte { border-top: 1px dashed var(--bord, #dfe3ea); padding-top: .5rem; flex-wrap: wrap; }
.cm-compte img, .cm-image { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface2, #eef1f6); flex: none; }
.cm-actions { display: flex; flex-wrap: wrap; gap: .3rem; width: 100%; }
.cm-erreur { color: var(--rouge, #b42318); }
.pastille.cm-operationnel { background: #DFF7EA; color: var(--vert); }
.pastille.cm-cree_non_connecte, .pastille.cm-en_verification, .pastille.cm-permissions_insuffisantes { background: #FFF4DC; color: var(--ambre); }
.pastille.cm-autorisation_requise, .pastille.cm-connexion_expiree { background: #FDECEE; color: var(--rouge); }
.pastille.cm-api_indisponible, .pastille.cm-creation_bloquee { background: #EDE7FF; color: #5B3FD1; }
.pastille.cm-a_creer { background: var(--surface2, #eef1f6); color: var(--texte2, #5b6475); }
@media (max-width: 600px) { .cm-grille { grid-template-columns: 1fr; } }
.autres-marques { border: 1px solid var(--bord, #dfe3ea); border-radius: 10px; padding: .4rem .6rem; margin: .4rem 0; }
.autres-marques legend { font-weight: 700; padding: 0 .3rem; display: flex; align-items: center; }
