/* Identité visuelle EPICU — palette extraite du kit Elementor de epicu.fr.
   Thème clair par défaut sur toutes les pages. */
:root {
  --epicu-orange: #E84920;  /* accent officiel = orange FOOD de la charte */
  --epicu-orange-d: #c93a14;
  --epicu-creme: #F8F4E4;
  --epicu-encre: #2B2B2B;
  --epicu-gris: #E4E2D8;
  --epicu-gris-clair: #FBFAF4;
  --epicu-blanc: #FFFFFF;
  --muted: #7a766b;
  --line: #E7E4D8;

  /* Couleurs officielles des univers — Charte graphique EPICU 2026 */
  --univers-food: #E84920;
  --univers-shop: #6D2239;
  --univers-travel: #94A424;
  --univers-fun: #E4253F;
  --univers-beauty: #5575B8;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;

  --radius: 16px;
  --sidebar-w: 236px;
  --shadow: 0 1px 3px rgba(43,43,43,0.05), 0 6px 20px rgba(43,43,43,0.05);
  --shadow-lg: 0 18px 50px rgba(43,43,43,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--epicu-encre); background: var(--epicu-creme); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { text-transform: uppercase; }   /* charte : titre principal MAJUSCULE, secondaires minuscule */
a { color: var(--epicu-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.center { text-align: center; }
.num { text-align: right; }
.up { color: #7d8d1f; font-size: 0.9rem; }
.alert { color: var(--univers-fun); }

.icon { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.15em; flex: none; }

/* --- Boutons ------------------------------------------------------------- */
.btn { display: inline-block; background: var(--epicu-orange); color: #fff; border: none; border-radius: 999px;
  padding: 0.72rem 1.5rem; font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; cursor: pointer;
  transition: transform .15s, box-shadow .15s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(0.96); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232,73,32,0.28); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-outline { background: transparent; border: 2px solid var(--epicu-orange); color: var(--epicu-orange); padding: calc(0.95rem - 2px) calc(2rem - 2px); }
.btn-outline:hover { background: rgba(232,73,32,0.08); box-shadow: none; }
.btn-dark { background: var(--epicu-encre); color: var(--epicu-creme); }
.btn-dark:hover { background: #1c1c1c; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--epicu-encre); }
.btn-ghost:hover { background: var(--epicu-gris-clair); box-shadow: none; }

/* --- Reveal au scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ======================================================================== */
/*  PUBLIC (thème clair)                                                     */
/* ======================================================================== */
.public-body { background: var(--epicu-creme); color: var(--epicu-encre); }
.pub-nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2.5rem; background: rgba(248,244,228,0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pub-brand img { height: 28px; display: block; }
.pub-links { display: flex; align-items: center; gap: 1.6rem; }
.pub-links a { color: var(--epicu-encre); font-weight: 600; font-size: 0.9rem; }
.pub-links a:hover { color: var(--epicu-orange); text-decoration: none; }

/* Hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem;
  align-items: center; max-width: 1200px; margin: 0 auto; padding: 4.5rem 2rem 3.5rem; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--epicu-orange); background: rgba(232,73,32,0.08); border: 1px solid rgba(232,73,32,0.25); border-radius: 999px; padding: 0.4rem 1rem; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.94; margin-bottom: 1rem; }
.hero h1 .hl { color: var(--epicu-orange); }
.hero-sub { font-size: 1.12rem; color: #5c584e; max-width: 540px; margin: 0 0 2rem; line-height: 1.6; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.hero-univers { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.35rem 0.95rem; border-radius: 999px; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; color: #fff; }
.chip.food { background: var(--univers-food); } .chip.shop { background: var(--univers-shop); }
.chip.travel { background: var(--univers-travel); } .chip.fun { background: var(--univers-fun); } .chip.beauty { background: var(--univers-beauty); }
.hero-glow { position: absolute; top: -20%; right: -10%; width: 720px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,73,32,0.16), transparent 62%); z-index: 0; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -4%; bottom: -22%; width: 420px; height: 420px;
  background: url('/static/img/brand/icone-epicu.png') no-repeat center / contain;
  opacity: 0.05; transform: rotate(-10deg); pointer-events: none; z-index: 0; }

/* Hero visual (mock produit animé) */
.hero-visual { position: relative; z-index: 2; height: 340px; }
.mock { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.mock-main { top: 30px; left: 6%; right: 12%; padding: 1.2rem 1.3rem; }
.mock-head { font-size: 0.8rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--epicu-orange); }
.mock-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 96px; }
.mock-bars span { flex: 1; background: linear-gradient(180deg, #f26f4a, var(--epicu-orange)); border-radius: 5px 5px 0 0; height: 0; animation: growBar 1s cubic-bezier(.4,0,.2,1) forwards; }
.mock-bars span:nth-child(1){animation-delay:.1s} .mock-bars span:nth-child(2){animation-delay:.2s}
.mock-bars span:nth-child(3){animation-delay:.3s} .mock-bars span:nth-child(4){animation-delay:.4s}
.mock-bars span:nth-child(5){animation-delay:.5s} .mock-bars span:nth-child(6){animation-delay:.6s}
@keyframes growBar { to { height: var(--h); } }
.mock-foot { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); }
.mock-foot b { color: #7d8d1f; font-size: 1rem; }
.mock-roi { bottom: 8px; left: 0; padding: 1rem 1.3rem; text-align: center; }
.mock-roi-num { font-family: var(--font-display); font-size: 1.8rem; color: var(--epicu-orange); line-height: 1; }
.mock-roi-lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.mock-univers { top: 0; right: 0; padding: 0.7rem; display: flex; gap: 0.35rem; }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 5s ease-in-out infinite 0.4s; }
.float-c { animation: floaty 7s ease-in-out infinite 0.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Compteurs */
.counters { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1040px; margin: 0 auto; padding: 0 2rem;
  transform: translateY(-1rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.counter { text-align: center; padding: 1.4rem 1rem; }
.counter + .counter { border-left: 1px solid var(--line); }
.counter .num { display: block; text-align: center; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.7rem); color: var(--epicu-orange); line-height: 1; }
.counter .cap { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.4rem; display: block; }

/* Sections */
.section { padding: 5rem 2rem; max-width: 1150px; margin: 0 auto; }
.section.alt { background: #fff; max-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.kicker { color: var(--epicu-orange); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0.5rem 0; }
.section-head p { color: #5c584e; font-size: 1.05rem; line-height: 1.6; }

/* Univers cards */
.univers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; }
.u-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.4rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.u-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: currentColor; }
.u-card.food { color: var(--univers-food); } .u-card.shop { color: var(--univers-shop); }
.u-card.travel { color: var(--univers-travel); } .u-card.fun { color: var(--univers-fun); } .u-card.beauty { color: var(--univers-beauty); }
.u-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.u-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: currentColor; margin-bottom: 1rem; }
.u-icon .icon { width: 22px; height: 22px; color: #fff; }
.u-card h3 { color: var(--epicu-encre); margin-bottom: 0.35rem; font-size: 1.5rem; }
.u-card p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.1rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.f-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(232,73,32,0.1); color: var(--epicu-orange); margin-bottom: 1.1rem; }
.f-ico .icon { width: 24px; height: 24px; }
.feature h3 { color: var(--epicu-encre); font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.55; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.tl-item { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; box-shadow: var(--shadow); transition: transform .2s; }
.tl-item:hover { transform: translateY(-3px); }
.tl-item.done { border-top-color: var(--epicu-orange); }
.tl-n { font-family: var(--font-display); font-size: 1.6rem; color: #cfccbf; }
.tl-item.done .tl-n { color: var(--epicu-orange); }
.tl-item b { display: block; color: var(--epicu-encre); margin: 0.5rem 0 0.35rem; font-size: 1.02rem; }
.tl-item p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.tl-tag { display: inline-block; margin-left: 0.6rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--epicu-orange); vertical-align: 0.25em; }
.tl-tag.util { color: var(--univers-travel); } .tl-tag.later { color: var(--muted); }
.tl-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tl-status { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6d7a19; background: #f1f4dc; border-radius: 999px; padding: 0.14rem 0.55rem; white-space: nowrap; }
.tl-status .icon { width: 12px; height: 12px; }
.counter .num { font-variant-numeric: tabular-nums; }

/* CTA band */
.cta-band { text-align: center; padding: 5rem 2rem; background: linear-gradient(120deg, var(--epicu-orange), var(--epicu-orange-d)); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 1.5rem; }

/* Footer */
.pub-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2.5rem; background: #fff; border-top: 1px solid var(--line); }
.foot-logo { height: 26px; margin-bottom: 0.5rem; }
.pub-foot p { color: var(--muted); font-size: 0.85rem; margin: 0; }
.foot-mini { font-family: var(--font-display); letter-spacing: 0.05em; }

/* Auth */
.auth { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 74px); padding: 2rem; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2.5rem; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-logo { max-width: 180px; display: block; margin: 0 auto 1.25rem; }
.auth-card h1 { text-align: center; font-size: 1.8rem; }
.auth-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-form label { font-size: 0.8rem; font-weight: 700; margin-top: 0.6rem; }
.auth-form input, .auth-form select { padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem; background: #fff; }
.auth-form .btn { margin-top: 1.25rem; width: 100%; }
.seg { display: flex; gap: 0.5rem; }
.seg-opt { flex: 1; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.6rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 0.9rem; transition: all .15s; }
.seg-opt input:checked + span { border-color: var(--epicu-orange); background: rgba(232,73,32,0.08); color: var(--epicu-orange); }

/* ======================================================================== */
/*  APP SHELL (thème clair)                                                  */
/* ======================================================================== */
.topbar { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 0.7rem 1.5rem;
  background: var(--epicu-encre); position: sticky; top: 0; z-index: 100; }
.topbar img.logo { height: 28px; display: block; }
.burger { display: none; background: none; border: none; color: var(--epicu-creme); cursor: pointer; }
.topbar-user { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.topbar-user .who { color: var(--epicu-creme); font-size: 0.85rem; font-weight: 600; display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.topbar-user .who small { color: rgba(248, 244, 228, 0.6); font-weight: 400; }
.topbar .btn-ghost { color: var(--epicu-creme); border-color: rgba(248, 244, 228, 0.35); }
.topbar .btn-ghost:hover { background: rgba(248, 244, 228, 0.1); }

.shell { display: flex; min-height: calc(100vh - 50px); }
.sidebar { width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: #fff; border-right: 1px solid var(--line);
  padding: 1.25rem 0.75rem; display: flex; flex-direction: column; justify-content: space-between;
  position: sticky; top: 50px; align-self: flex-start; height: calc(100vh - 50px); overflow-y: auto; }
.sidebar nav { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.62rem 0.9rem; border-radius: 10px; color: var(--epicu-encre); font-weight: 600; font-size: 0.88rem; transition: background .15s; }
.sidebar nav a .icon { width: 18px; height: 18px; color: #9a968b; transition: color .15s; }
.sidebar nav a:hover { background: var(--epicu-gris-clair); text-decoration: none; }
.sidebar nav a:hover .icon { color: var(--epicu-orange); }
.sidebar nav a.active { background: var(--epicu-orange); color: #fff; box-shadow: 0 6px 16px rgba(232,73,32,0.28); }
.sidebar nav a.active .icon { color: #fff; }
.burger .icon { width: 24px; height: 24px; }
.sidebar-foot { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.68rem; color: #c3bfb2; text-transform: uppercase; padding: 1rem 0.9rem 0; }
.side-icon { width: 18px; height: 18px; opacity: 0.45; }

main { flex: 1; min-width: 0; padding: 2rem; }

.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: 2rem; margin-bottom: 0.15em; }
.subtitle { color: var(--muted); margin: 0; font-weight: 500; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: #fff; border-radius: var(--radius); padding: 1.1rem 1.25rem; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-size: 1.85rem; margin-top: 0.2rem; }
.stat .value small { font-size: 1rem; color: var(--muted); }
.stat .value.alert { color: var(--univers-fun); }
.stat.accent { border-top: 4px solid var(--epicu-orange); }

/* Comparatives entre périodes */
.delta { display: inline-block; margin-top: 0.3rem; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.14rem 0.55rem; white-space: nowrap; }
.delta.up { background: #f1f4dc; color: #6d7a19; }
.delta.down { background: #fbe7ea; color: #b81c33; }
.delta.neutral { background: var(--epicu-gris-clair); color: var(--muted); border: 1px solid var(--line); }
.atteinte { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.14rem 0.6rem; }
.atteinte.ok { background: #f1f4dc; color: #6d7a19; }
.atteinte.warn { background: #fdeee7; color: #c25012; }
.atteinte.ko { background: #fbe7ea; color: #b81c33; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.card-title { font-size: 1rem; margin-bottom: 0.9rem; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.link { font-weight: 600; font-size: 0.85rem; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.data th, table.data td { padding: 0.62rem 0.85rem; text-align: left; font-size: 0.88rem; }
table.data thead th { background: var(--epicu-encre); color: #fff; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:nth-child(even) { background: var(--epicu-gris-clair); }
table.data tbody tr:hover { background: rgba(232,73,32,0.05); }
table.data.compact th, table.data.compact td { padding: 0.4rem 0.6rem; }
table.data.compact { border: none; }
.conv-pill { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #f1f4dc; color: #7d8d1f; font-weight: 700; font-size: 0.78rem; }

/* Badges univers */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.badge.food { background: var(--univers-food); } .badge.shop { background: var(--univers-shop); }
.badge.travel { background: var(--univers-travel); } .badge.fun { background: var(--univers-fun); } .badge.beauty { background: var(--univers-beauty); }

/* Statuts */
.statut { display: inline-block; padding: 0.12rem 0.55rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.s-prospect { background: #efede3; color: #6b675c; } .s-contacte { background: #e8edf8; color: #405e9e; }
.s-relance { background: #fdeee7; color: #c25012; } .s-signe { background: #f1f4dc; color: #6d7a19; } .s-perdu { background: #fbe7ea; color: #b81c33; }
.s-camp-planifiee { background: #efede3; color: #6b675c; } .s-camp-tournee { background: #e8edf8; color: #405e9e; }
.s-camp-montage { background: #fdeee7; color: #c25012; } .s-camp-publiee { background: #f1f4dc; color: #6d7a19; }
.s-ville-active { background: #f1f4dc; color: #6d7a19; } .s-ville-en_cours { background: #fdeee7; color: #c25012; } .s-ville-inactive { background: #fbe7ea; color: #b81c33; }

/* Score */
.score { display: inline-block; min-width: 2.2rem; text-align: center; padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 700; font-size: 0.8rem; }
.score-fort { background: #f1f4dc; color: #6d7a19; } .score-moyen { background: #fdeee7; color: #c25012; } .score-faible { background: #f1f1f1; color: #888; }

/* Selects & inputs (habillage global) */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a766b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 13px;
  padding-right: 2.2rem !important; cursor: pointer;
}
select:hover, .filters input:hover { border-color: #c9c4b2 !important; }
select:focus, .filters input:focus, .std-form input:focus, .std-form textarea:focus,
.auth-form input:focus, .chat-form input:focus {
  outline: none; border-color: var(--epicu-orange) !important;
  box-shadow: 0 0 0 3px rgba(232, 73, 32, 0.13);
}

/* Select habillé (remplace le menu natif, non stylable) */
.nice-select { position: relative; display: inline-block; min-width: 175px; }
.nice-select select { display: none !important; }
.ns-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%;
  padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--epicu-encre);
  cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.ns-toggle:hover { border-color: #c9c4b2; }
.nice-select.open .ns-toggle { border-color: var(--epicu-orange); box-shadow: 0 0 0 3px rgba(232, 73, 32, 0.13); }
.ns-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; flex: none; }
.nice-select.open .ns-chev { transform: rotate(180deg); }
.ns-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 0.35rem; max-height: 264px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.nice-select.open .ns-menu { opacity: 1; transform: none; pointer-events: auto; }
.ns-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; width: 100%;
  padding: 0.52rem 0.7rem; border: none; background: none; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.85rem; color: var(--epicu-encre);
  cursor: pointer; text-align: left; white-space: nowrap; transition: background .12s;
}
.ns-item:hover { background: var(--epicu-gris-clair); }
.ns-item.sel { background: rgba(232, 73, 32, 0.08); color: var(--epicu-orange); font-weight: 700; }
.ns-item .icon { width: 13px; height: 13px; flex: none; }
.std-form .nice-select, .auth-form .nice-select { width: 100%; display: block; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.25rem; }
.filters input, .filters select { padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-body); font-size: 0.85rem; background-color: #fff; transition: border-color .15s, box-shadow .15s; }
.filters input[type=text] { min-width: 240px; }

/* Filtre en pilules (univers) */
.pill-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 0.82rem; font-weight: 700; color: var(--epicu-encre);
  transition: all .15s;
}
.pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c9c4b2; }
.pill.p-food::before { background: var(--univers-food); }
.pill.p-shop::before { background: var(--univers-shop); }
.pill.p-travel::before { background: var(--univers-travel); }
.pill.p-fun::before { background: var(--univers-fun); }
.pill.p-beauty::before { background: var(--univers-beauty); }
.pill:hover { border-color: var(--epicu-encre); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.pill.on { background: var(--epicu-encre); border-color: var(--epicu-encre); color: #fff; }
.pill.on.p-food { background: var(--univers-food); border-color: var(--univers-food); }
.pill.on.p-shop { background: var(--univers-shop); border-color: var(--univers-shop); }
.pill.on.p-travel { background: var(--univers-travel); border-color: var(--univers-travel); }
.pill.on.p-fun { background: var(--univers-fun); border-color: var(--univers-fun); }
.pill.on.p-beauty { background: var(--univers-beauty); border-color: var(--univers-beauty); }
.pill.on::before { background: #fff; }

/* Progress */
.progress { background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 999px; height: 16px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #f26f4a, var(--epicu-orange)); border-radius: 999px; transition: width 1s cubic-bezier(.4,0,.2,1); }

/* ======================================================================== */
/*  CHARTS                                                                   */
/* ======================================================================== */
.chart { width: 100%; }
.chart-empty { color: var(--muted); text-align: center; padding: 2rem 0; font-size: 0.9rem; }

/* Tooltip */
.c-tip { position: absolute; z-index: 200; background: var(--epicu-encre); color: #fff; padding: 0.32rem 0.6rem;
  border-radius: 7px; font-size: 0.76rem; font-weight: 600; pointer-events: none; opacity: 0;
  transition: opacity .12s; white-space: nowrap; box-shadow: var(--shadow-lg); }
.c-tip.on { opacity: 1; }

/* Bars */
.c-bars { display: flex; align-items: flex-end; gap: 0.5rem; }
.c-bar { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; cursor: pointer; }
.c-bar-track { width: 100%; height: 172px; display: flex; align-items: flex-end; justify-content: center; padding-top: 1.3rem; }
.c-bar-fill { width: 62%; max-width: 46px; height: 0; border-radius: 7px 7px 0 0; position: relative;
  transition: height .8s cubic-bezier(.4,0,.2,1), filter .15s, transform .15s; }
.c-bar:hover .c-bar-fill { filter: brightness(1.15) saturate(1.1); transform: scaleX(1.12); }
.c-bar:hover .c-bar-lbl { color: var(--epicu-encre); font-weight: 700; }
.c-bar-val { position: absolute; top: -1.15rem; left: 50%; transform: translateX(-50%); font-size: 0.66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.c-bar-lbl { margin-top: 0.45rem; font-size: 0.72rem; text-transform: capitalize; color: var(--muted); text-align: center; }

/* Stacked bars (empilées par ville) */
.c-stacked-plot { position: relative; padding-top: 1.4rem; }
.c-st-grid { position: absolute; inset: 1.4rem 0 1.5rem 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; z-index: 0; }
.c-st-grid span { display: block; height: 1px; background: var(--line); opacity: 0.7; }
.c-stacked { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 0.7rem; height: 240px; }
.c-st-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.c-st-stack { position: relative; width: 80%; max-width: 58px; height: 0; display: flex; flex-direction: column;
  border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 0 3px 10px rgba(43,43,43,0.1);
  transition: height .8s cubic-bezier(.34,1.1,.5,1); }
.c-st-seg { min-height: 0; transition: opacity .2s, filter .15s; cursor: pointer; }
.c-st-seg + .c-st-seg { border-top: 2px solid var(--epicu-blanc); }
.c-st-seg:hover { filter: brightness(1.15); }
.c-st-seg.dim { opacity: 0.22; }
.c-st-total { font-size: 0.72rem; font-weight: 800; color: var(--epicu-encre); margin-bottom: 0.3rem; white-space: nowrap; }
.c-st-lbl { margin-top: 0.5rem; font-size: 0.74rem; font-weight: 600; text-transform: capitalize; color: var(--muted); }
.c-st-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 1.2rem; justify-content: center; }
.c-st-leg { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: #55524a; cursor: pointer; padding: 0.2rem 0.5rem; border-radius: 999px; transition: background .15s; }
.c-st-leg:hover { background: var(--epicu-gris-clair); color: var(--epicu-encre); }
.c-st-leg.off { opacity: 0.45; text-decoration: line-through; }
.c-st-leg.off .c-st-dot { filter: grayscale(1); }
.c-st-dot { width: 11px; height: 11px; border-radius: 4px; }
.auth-hint { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }

/* Onglets */
.tabs { display: flex; gap: 0.3rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  padding: 0.6rem 1rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .15s; }
.tab:hover { color: var(--epicu-encre); }
.tab.active { color: var(--epicu-orange); border-bottom-color: var(--epicu-orange); }

/* Config IA (repliable) */
.ia-config { display: none; }
.ia-config.open { display: block; }
.ia-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1rem; }
.ia-config-grid .fld { display: flex; flex-direction: column; gap: 0.3rem; }
.ia-config-grid label { font-size: 0.8rem; font-weight: 600; }
.ia-config-grid input, .ia-config-grid select { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 0.88rem; background: #fff; }

/* Détail de campagne : aperçu du post */
.camp-layout { align-items: start; }
.post-card { padding: 0; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: #fff; font-size: 1.1rem; flex: none; }
.post-avatar.food { background: var(--univers-food); } .post-avatar.shop { background: var(--univers-shop); }
.post-avatar.travel { background: var(--univers-travel); } .post-avatar.fun { background: var(--univers-fun); } .post-avatar.beauty { background: var(--univers-beauty); }
.plat-badge { margin-left: auto; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: 0.16rem 0.6rem; color: #fff; }
.plat-badge.instagram { background: #c13584; } .plat-badge.tiktok { background: #010101; }
.post-media { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.post-media.food { background: var(--univers-food); } .post-media.shop { background: var(--univers-shop); }
.post-media.travel { background: var(--univers-travel); } .post-media.fun { background: var(--univers-fun); } .post-media.beauty { background: var(--univers-beauty); }
.post-e { width: 44%; opacity: 0.9; filter: brightness(0) invert(1); }
.post-duree { position: absolute; top: 0.6rem; right: 0.6rem; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 6px; padding: 0.1rem 0.45rem; }
.post-actions { display: flex; gap: 1.1rem; padding: 0.7rem 1rem 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--epicu-encre); }
.post-actions span { display: inline-flex; align-items: center; gap: 0.3rem; }
.post-actions .icon { width: 16px; height: 16px; }
.post-actions .post-save { margin-left: auto; color: var(--muted); }
.post-legende { padding: 0.2rem 1rem 1rem; font-size: 0.88rem; line-height: 1.5; margin: 0; }
.post-tags { color: var(--univers-travel); font-weight: 600; }

/* Sélecteur de mois (réseau) */
.month-nav { display: flex; align-items: center; gap: 0.5rem; }
.month-nav select { padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 0.85rem; background: #fff; cursor: pointer; }
#iaClient { margin-bottom: 1rem; }

/* Campagne en préparation */
.prep-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.5rem; }
.prep-step { padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--epicu-gris-clair); border: 1px solid var(--line); color: var(--muted); }
.prep-step.done { background: #f1f4dc; border-color: #dbe3a8; color: #6d7a19; }
.prep-step.current { background: rgba(232,73,32,0.1); border-color: var(--epicu-orange); color: var(--epicu-orange); }

/* Analyse de sentiment */
.senti-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--epicu-gris-clair); }
.senti-seg { transition: width .8s cubic-bezier(.4,0,.2,1); }
.senti-seg.pos { background: #7d8d1f; } .senti-seg.neu { background: #c9c4b2; } .senti-seg.neg { background: #E4253F; }
.senti-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.7rem 0; font-size: 0.82rem; color: var(--muted); }
.senti-legend b.pos { color: #6d7a19; } .senti-legend b.neu { color: #8a8578; } .senti-legend b.neg { color: #b81c33; }

/* Commentaires */
.comments { display: flex; flex-direction: column; gap: 1rem; }
.comment { display: flex; gap: 0.75rem; }
.com-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.com-avatar.s-positif { background: #7d8d1f; } .com-avatar.s-neutre { background: #9a968b; } .com-avatar.s-negatif { background: #E4253F; }
.com-body { flex: 1; min-width: 0; }
.com-top { display: flex; align-items: center; gap: 0.5rem; }
.com-likes { display: inline-flex; align-items: center; gap: 0.2rem; }
.com-likes .icon { width: 12px; height: 12px; }
.senti-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: 0.1rem 0.5rem; }
.senti-tag.s-positif { background: #f1f4dc; color: #6d7a19; } .senti-tag.s-neutre { background: #efede3; color: #6b675c; } .senti-tag.s-negatif { background: #fbe7ea; color: #b81c33; }
.com-text { margin: 0.25rem 0 0.5rem; font-size: 0.9rem; }
.com-ia { background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.com-ia-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--epicu-orange); }
.com-ia-text { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; font-family: var(--font-body); font-size: 0.85rem; margin: 0.4rem 0; resize: vertical; }
.com-ia-text:focus { outline: none; border-color: var(--epicu-orange); box-shadow: 0 0 0 3px rgba(232,73,32,0.13); }
.com-ia-actions { display: flex; gap: 0.5rem; }

/* Notifications toast */
.toast-box { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.5rem; max-width: 340px; }
.toast { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem 0.7rem 0.9rem; border-radius: 12px; font-size: 0.88rem; font-weight: 600; color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.toast.in { opacity: 1; transform: none; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.9); flex: none; }
.toast.t-ok { background: #2f8a4e; }
.toast.t-err { background: #c02440; }
.toast.t-info { background: var(--epicu-encre); }
@media (max-width: 560px) { .toast-box { left: 1rem; right: 1rem; max-width: none; } }

/* Badge de menu (alertes) */
.nav-badge { margin-left: auto; background: var(--epicu-orange); color: #fff; font-size: 0.68rem; font-weight: 800; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 0.35rem; display: inline-flex; align-items: center; justify-content: center; }
.sidebar nav a.active .nav-badge { background: #fff; color: var(--epicu-orange); }

/* Carte des clients */
.gmap { width: 100%; height: 560px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.carte-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-bottom: 1rem; }
.food-bg { background: var(--univers-food); } .shop-bg { background: var(--univers-shop); }
.travel-bg { background: var(--univers-travel); } .fun-bg { background: var(--univers-fun); } .beauty-bg { background: var(--univers-beauty); }
.carte-wrap { position: relative; max-width: 520px; margin: 0 auto; aspect-ratio: 100 / 105; }
.carte-france { width: 100%; height: 100%; display: block; }
.carte-france polygon { fill: #eef0e2; stroke: #cdd3ad; stroke-width: 0.6; }
.carte-ville { position: absolute; transform: translate(-50%, -50%); font-size: 0.66rem; font-weight: 700; color: var(--epicu-encre); background: rgba(255,255,255,0.75); border-radius: 4px; padding: 0 0.2rem; pointer-events: none; white-space: nowrap; }
.carte-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); cursor: pointer; transition: transform .12s; }
.carte-dot:hover { transform: translate(-50%, -50%) scale(1.6); z-index: 5; }
.carte-note { text-align: center; margin-top: 1rem; }
/* Info-bulle Google Maps (fiche commerce) */
.map-pop { font-family: var(--font-body); min-width: 170px; padding: 0.1rem 0.2rem 0.2rem; }
.map-pop-badge { display: inline-block; color: #fff; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; border-radius: 999px; padding: 0.1rem 0.5rem; margin-bottom: 0.4rem; }
.map-pop-nom { font-family: var(--font-display); font-size: 1.05rem; color: var(--epicu-encre); line-height: 1.1; }
.map-pop-line { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }
.map-pop-btn { display: inline-block; margin-top: 0.6rem; background: var(--epicu-orange); color: #fff; font-size: 0.8rem; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 0.4rem 0.9rem; }
.map-pop-btn:hover { text-decoration: none; filter: brightness(0.95); }

/* Communications — layout commun */
.wa-layout, .mail-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1rem; height: calc(100vh - 300px); min-height: 500px; }
.wa-list, .mail-list { display: flex; flex-direction: column; gap: 0.3rem; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.5rem; box-shadow: var(--shadow); }
.wa-list-head, .mail-list-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.6rem 0.7rem; font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.wa-list-head .icon { width: 16px; height: 16px; color: var(--epicu-orange); }
.mail-count { margin-left: auto; background: var(--epicu-gris-clair); border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.72rem; color: var(--epicu-encre); }

/* Avatars colorés (contacts) */
.av { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; flex: none; }
.av-0 { background: #2f6f4f; } .av-1 { background: #5575B8; } .av-2 { background: #E84920; }
.av-3 { background: #6D2239; } .av-4 { background: #94A424; } .av-5 { background: #c25012; }
.av-6 { background: #405e9e; } .av-7 { background: #2f6f4f; } .av-8 { background: #E4253F; }

/* Liste : conversation / mail */
.wa-conv, .mail-row { display: flex; align-items: center; gap: 0.7rem; text-align: left; background: none; border: none; border-radius: 11px; padding: 0.55rem 0.6rem; cursor: pointer; font-family: var(--font-body); transition: background .15s; }
.wa-conv:hover, .mail-row:hover { background: var(--epicu-gris-clair); }
.wa-conv.active, .mail-row.active { background: rgba(232,73,32,0.08); }
.wa-conv-body, .mail-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.wa-conv-top, .mail-row-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.wa-conv-top strong, .mail-row-top strong { font-size: 0.92rem; }
.wa-conv-time { font-size: 0.7rem; color: var(--muted); flex: none; }
.wa-conv-sub { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.wa-conv-last { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-unread { background: #25d366; color: #fff; font-size: 0.68rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.3rem; flex: none; }

/* Panneau de droite */
.wa-chat, .mail-view { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.wa-thread, .mail-open { display: none; height: 100%; }
.wa-thread.active, .mail-open.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wa-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); flex: none; background: var(--epicu-gris-clair); }
.wa-head .av { width: 38px; height: 38px; font-size: 0.95rem; }
.wa-head-txt { display: flex; flex-direction: column; line-height: 1.2; }
.wa-head .dossier-chip { margin-left: auto; }

/* Fil de messages */
.wa-msgs { flex: 0 1 auto; max-height: 50%; min-height: 0; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem;
  background-color: #e5ddcb;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 16px 16px; }
.wa-msg { max-width: 74%; padding: 0.5rem 0.7rem; border-radius: 10px; font-size: 0.88rem; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,0.12); }
.wa-msg p { margin: 0; line-height: 1.4; }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-msg.in::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top-color: #fff; border-right: 0; }
.wa-msg.out { align-self: flex-end; background: #d6f5c8; border-top-right-radius: 2px; }
.wa-msg.out::before { content: ""; position: absolute; top: 0; right: -6px; border: 7px solid transparent; border-top-color: #d6f5c8; border-left: 0; }
.wa-meta { display: flex; align-items: center; justify-content: flex-end; gap: 0.2rem; font-size: 0.62rem; color: rgba(43,43,43,0.45); margin-top: 0.1rem; }
.wa-ticks { display: inline-flex; color: #53bdeb; }
.wa-ticks .icon { width: 11px; height: 11px; margin-left: -6px; }
.wa-ticks .icon:first-child { margin-left: 0; }

/* Compositeur (chat + mail) : occupe l'espace restant */
.ia-chip { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #6d7a19; background: #f1f4dc; border: 1px solid #dbe3a8; border-radius: 999px; padding: 0.2rem 0.6rem; }
.ia-chip .icon { width: 13px; height: 13px; }
.wa-composer, .mail-reply { flex: 1 1 auto; min-height: 0; border-top: 1px solid var(--line); background: #fff; padding: 0.9rem 1rem; display: flex; flex-direction: column; }
/* Zone « suggestion IA » : fond olive discret pour qu'elle se lise comme un bloc dédié
   (et non comme un vide blanc collé à la barre d'envoi). */
.wa-composer:not(.empty) { background: linear-gradient(180deg, #f6f8e6 0%, #fcfdf6 100%); border-top: 2px solid #dbe3a8; }
.wa-composer.empty { flex: none; align-items: center; justify-content: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.wa-composer.empty .icon { width: 16px; height: 16px; color: #7d8d1f; }
.wa-composer-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; flex: none; }
.wa-input { flex: 1 1 auto; min-height: 0; display: flex; align-items: stretch; gap: 0.6rem; }
.wa-ia-text { width: 100%; flex: 1 1 auto; min-height: 80px; border: 1px solid #cdd68f; border-radius: 14px; padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem; line-height: 1.55; resize: none; background: #fff; box-shadow: inset 0 1px 2px rgba(76,84,20,0.06); transition: border-color .15s, box-shadow .15s, background .15s; }
.wa-ia-text:focus { outline: none; border-color: var(--epicu-orange); box-shadow: 0 0 0 3px rgba(232,73,32,0.13); background: #fff; }
.wa-input .wa-send { align-self: flex-end; }
.wa-send { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--epicu-orange); color: #fff; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; transition: transform .15s, box-shadow .15s; }
.wa-send:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232,73,32,0.35); }
.wa-send .icon { width: 18px; height: 18px; }
.wa-ia-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex: none; }
.wa-ia-actions .icon { width: 14px; height: 14px; margin-right: 0.25rem; }

/* Boîte mail — spécifique */
.mail-row { position: relative; }
.mail-row.unread strong { font-weight: 800; }
.mail-row.unread { background: rgba(232,73,32,0.03); }
.mail-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; }
.mail-row.prio-haute::before { background: #E4253F; }
.mail-row.prio-moyenne::before { background: #E84920; }
.mail-row.prio-basse::before { background: #94A424; }
.mail-row-obj { font-size: 0.83rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-snip { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-new { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: var(--epicu-orange); }
.mail-open { overflow: hidden; }
.mail-open-head { padding: 1.3rem 1.5rem 0.9rem; border-bottom: 1px solid var(--line); flex: none; }
.mail-open-head h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.mail-sender { display: flex; align-items: center; gap: 0.7rem; }
.prio-tag { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; border-radius: 999px; padding: 0.12rem 0.5rem; vertical-align: 0.15em; }
.prio-tag.p-haute { background: #fbe7ea; color: #b81c33; } .prio-tag.p-moyenne { background: #fdeee7; color: #c25012; } .prio-tag.p-basse { background: #f1f4dc; color: #6d7a19; }
.mail-corps { flex: 1 1 auto; overflow-y: auto; padding: 1.2rem 1.5rem; font-size: 0.94rem; line-height: 1.65; margin: 0; }
.mail-reply { flex: none; }
.mail-reply .wa-ia-text { min-height: 120px; }
@media (max-width: 820px) { .wa-layout, .mail-layout { grid-template-columns: 1fr; height: auto; } .wa-list, .mail-list { max-height: 220px; } }

/* Studio : avancement des campagnes (stepper) */
.prod-row { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.prod-row:last-child { border-bottom: none; }
.prod-info { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.stepper { display: flex; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.step.done:not(:last-child)::after { background: #7d8d1f; }
.step-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; }
.step-dot .icon { width: 13px; height: 13px; }
.step.done .step-dot { background: #7d8d1f; border-color: #7d8d1f; }
.step.current .step-dot { border-color: var(--epicu-orange); background: var(--epicu-orange); box-shadow: 0 0 0 4px rgba(232,73,32,0.15); }
.step-lbl { margin-top: 0.4rem; font-size: 0.72rem; color: var(--muted); max-width: 90px; }
.step.current .step-lbl { color: var(--epicu-orange); font-weight: 700; }
.step.done .step-lbl { color: #55524a; }

/* Kanban prospects */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.kb-col { background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem; display: flex; flex-direction: column; }
.kb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.kb-count { font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); }
.kb-action { display: flex; gap: 0.35rem; font-size: 0.74rem; color: #55524a; background: #fff; border: 1px dashed var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; margin-bottom: 0.7rem; line-height: 1.4; }
.kb-action .icon { width: 14px; height: 14px; color: var(--epicu-orange); flex: none; margin-top: 0.05rem; }
.kb-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.kb-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.7rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kb-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--epicu-orange); }
.kb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; }
.kb-card-top strong { font-size: 0.88rem; }
.kb-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.kb-relance { display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; color: #c25012; font-weight: 600; }
.kb-more { text-align: center; padding: 0.3rem; }
.kb-empty { text-align: center; padding: 0.5rem; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kanban { grid-template-columns: 1fr; } }

/* Calendrier */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; margin-bottom: 0.35rem; }
.cal-head span { text-align: center; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; margin-bottom: 0.35rem; }
.cal-cell { min-height: 78px; background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem; display: flex; flex-direction: column; gap: 0.2rem; }
.cal-cell.empty { background: transparent; border: none; }
.cal-day { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.cal-item { font-size: 0.68rem; font-weight: 600; color: #fff; border-radius: 5px; padding: 0.12rem 0.35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cal-item:hover { text-decoration: none; filter: brightness(1.1); }
.cal-item.food { background: var(--univers-food); } .cal-item.shop { background: var(--univers-shop); }
.cal-item.travel { background: var(--univers-travel); } .cal-item.fun { background: var(--univers-fun); } .cal-item.beauty { background: var(--univers-beauty); }
.cal-item.st-planifiee { opacity: 0.6; }

/* Area / line */
.c-area-peak { text-align: right; font-size: 0.72rem; color: var(--muted); margin-bottom: 0.2rem; }
.c-area-plot { position: relative; height: 172px; }
.c-area-plot svg { width: 100%; height: 100%; display: block; }
.c-area-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--epicu-orange); transform: translate(-50%, -50%) scale(0);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .2s; cursor: pointer; pointer-events: none; }
.c-area-dot.on { transform: translate(-50%, -50%) scale(1); }
.c-area-dot.hi { transform: translate(-50%, -50%) scale(1.5); box-shadow: 0 0 0 6px rgba(232, 73, 32, 0.14); }
.c-area-guide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed rgba(43, 43, 43, 0.25);
  transform: translateX(-50%); opacity: 0; transition: opacity .15s; pointer-events: none; }
.c-area-guide.on { opacity: 1; }
.c-area-plot { cursor: crosshair; }
.c-area-x { display: flex; justify-content: space-between; margin-top: 0.45rem; }
.c-area-x span { font-size: 0.72rem; color: var(--muted); }
.c-single { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 172px; gap: 0.3rem; }
.c-single-num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.c-single-lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Donut */
.c-donut { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.c-donut-svg { width: 158px; height: 158px; flex: none; transform: rotate(0deg); }
.c-donut-total { font-family: var(--font-display); font-size: 7px; fill: var(--epicu-encre); text-anchor: middle; }
.c-donut-cap { font-size: 2.6px; fill: var(--muted); text-anchor: middle; text-transform: uppercase; letter-spacing: 0.3px; }
.c-legend { display: flex; flex-direction: column; gap: 0.35rem; min-width: 150px; }
.c-legend-row { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; cursor: pointer;
  padding: 0.22rem 0.45rem; border-radius: 8px; transition: background .15s; }
.c-legend-row:hover { background: var(--epicu-gris-clair); }
.c-legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.c-legend-lbl { flex: 1; }
.c-legend-val { font-weight: 700; }

/* Gauge */
.c-gauge-svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0.5rem auto 0; }
.c-gauge-val { font-family: var(--font-display); font-size: 20px; fill: var(--epicu-encre); text-anchor: middle; }

/* Funnel */
.c-funnel { display: flex; flex-direction: column; gap: 0.7rem; }
.c-funnel-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 0.8rem; cursor: pointer; }
.c-funnel-row:hover .c-funnel-fill { filter: brightness(1.12); }
.c-funnel-lbl { font-size: 0.85rem; font-weight: 600; }
.c-funnel-track { background: var(--epicu-gris-clair); border-radius: 8px; overflow: hidden; }
.c-funnel-fill { height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; width: 0; transition: width .9s cubic-bezier(.4,0,.2,1); }
.c-funnel-fill span { color: #fff; font-weight: 700; font-size: 0.8rem; padding-right: 0.6rem; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 0.5rem; }
.pg-info { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.pg-controls { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.pg-btn, .pg-num { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem;
  padding: 0 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 0.82rem; font-weight: 600; color: var(--epicu-encre); transition: all .15s; }
.pg-btn:hover, .pg-num:hover { border-color: var(--epicu-orange); color: var(--epicu-orange); text-decoration: none; transform: translateY(-1px); }
.pg-num.current { background: var(--epicu-orange); border-color: var(--epicu-orange); color: #fff; box-shadow: 0 4px 12px rgba(232,73,32,0.3); }
.pg-ellipsis { color: var(--muted); padding: 0 0.2rem; }

/* ROI */
.card.roi { border-top: 4px solid var(--epicu-orange); }
.roi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 0.5rem; }
.roi-grid > div { display: flex; flex-direction: column; }
.roi-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--epicu-orange); }
.roi-lbl { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }

.alerts { border-left: 4px solid var(--univers-fun); }
.dot-alert { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--univers-fun); margin-right: 0.3rem; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(227,34,62,0.5); } 50% { box-shadow: 0 0 0 6px rgba(227,34,62,0); } }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; }

/* Formulaires */
.std-form { display: flex; flex-direction: column; gap: 0.15rem; }
.std-form .fld { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.7rem; }
.std-form label { font-size: 0.8rem; font-weight: 600; }
.std-form input, .std-form select, .std-form textarea { padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: 0.9rem; width: 100%; background: #fff; }
.std-form .btn { margin-top: 0.75rem; }
.hidden-fld { display: none; }
.fld-err { color: var(--univers-fun); font-size: 0.78rem; }
.form-error { color: var(--univers-fun); margin-bottom: 0.75rem; }
.ai-filled { border-color: var(--epicu-orange) !important; background: rgba(232,73,32,0.05); animation: flash .5s ease; }
@keyframes flash { from { background: rgba(232,73,32,0.22); } to { background: rgba(232,73,32,0.05); } }

/* Capture */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; margin-bottom: 1rem; transition: border-color .2s, background .2s; }
.dropzone.has-file { border-color: var(--epicu-orange); background: rgba(232,73,32,0.04); }
.dz-ico { display: inline-flex; margin-bottom: 0.5rem; color: #b0aca0; }
.dz-ico .icon { width: 40px; height: 40px; }
.dropzone.has-file .dz-ico { color: var(--epicu-orange); }
.card.capture .btn-ghost { width: 100%; }

/* Assistant chat */
.chat-card { display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 0.75rem; min-height: 300px; max-height: 440px; overflow-y: auto; padding: 0.5rem; margin-bottom: 1rem; }
.msg { display: flex; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap; }
.msg.bot .bubble { background: var(--epicu-gris-clair); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.user .bubble { background: var(--epicu-orange); color: #fff; border-top-right-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b7b3a7; animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; } .bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.sugg { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.82rem; font-family: var(--font-body); cursor: pointer; transition: all .15s; }
.sugg:hover { border-color: var(--epicu-orange); color: var(--epicu-orange); transform: translateY(-1px); }
.chat-form { display: flex; gap: 0.6rem; }
.chat-form input { flex: 1; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-size: 0.9rem; }

/* Académie */
.onboarding .ob-head { display: flex; justify-content: space-between; align-items: baseline; }
.ob-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 0.75rem; }
.ob-step { padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--epicu-gris-clair); border: 1px solid var(--line); color: var(--muted); font-family: var(--font-body); cursor: pointer; transition: all .15s; }
.ob-step:hover { border-color: var(--epicu-orange); color: var(--epicu-orange); transform: translateY(-1px); }
.ob-step.done { background: #f1f4dc; border-color: #dbe3a8; color: #6d7a19; }
.ob-step.done::before { content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-right: 0.35em; vertical-align: -0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23227a3b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain; }
.academy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.ac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.ac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ac-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: rgba(232,73,32,0.1); color: var(--epicu-orange); margin-bottom: 0.75rem; }
.ac-ico .icon { width: 22px; height: 22px; }
.ac-card h3 { font-size: 1.05rem; }
.ac-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
.ac-list li { font-size: 0.85rem; color: #55524a; display: flex; align-items: center; gap: 0.45rem; }
.ac-list li .icon { width: 15px; height: 15px; color: #b0aca0; }
.ai-hint { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ai-hint .f-ico { margin: 0; }
.ai-hint > div { flex: 1; min-width: 220px; }

/* Ressources de l'Académie */
.ac-card.res { display: block; color: inherit; text-decoration: none; }
.ac-card.res:hover { text-decoration: none; border-color: var(--epicu-orange); }
.res-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; gap: 0.5rem; }
.res-type { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 0.16rem 0.6rem; }
.t-document { background: #e8edf8; color: #405e9e; }
.t-video { background: #fbe7ea; color: #b81c33; }
.t-script { background: #fdeee7; color: #c25012; }
.t-modele { background: #efeade; color: #7a6a3f; }
.t-checklist { background: #f1f4dc; color: #6d7a19; }
.res-cat { display: inline-block; margin-top: 0.7rem; font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.top-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.top-list li { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.88rem; }
.top-list li::marker { color: var(--epicu-orange); font-weight: 700; }
.faq { display: flex; flex-direction: column; gap: 0.4rem; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: var(--epicu-gris-clair); overflow: hidden; }
.faq-item summary { padding: 0.65rem 0.9rem; font-size: 0.88rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--epicu-orange); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { background: #fff; }
.faq-item p { margin: 0; padding: 0 0.9rem 0.75rem; font-size: 0.85rem; color: #55524a; line-height: 1.55; }
.res-layout { grid-template-columns: 1.4fr 0.6fr; }
.res-content { font-size: 0.92rem; line-height: 1.65; }
.res-content p { margin: 0 0 0.9em; }
.res-file { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; color: var(--epicu-orange); }
.res-file .icon { width: 12px; height: 12px; }
.res-file-card { padding: 1rem 1.25rem; }
.res-video { width: 100%; border-radius: 10px; display: block; background: #000; }
.res-download { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.res-download .dz-ico { margin: 0; color: var(--epicu-orange); }
.res-download .dz-ico .icon { width: 30px; height: 30px; }
.res-download > div { flex: 1; min-width: 180px; }
.res-download p { margin: 0; }
.head-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-danger { color: #b81c33; border-color: #f3c3cb; }
.btn-danger:hover { background: #fbe7ea; }
/* Objectif mensuel : champ pilule + bouton de validation rond */
.obj-form { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.obj-group { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.14rem 0.14rem 0.14rem 0.75rem; transition: border-color .15s, box-shadow .15s; }
.obj-group:focus-within { border-color: var(--epicu-orange); box-shadow: 0 0 0 3px rgba(232,73,32,0.13); }
.obj-input { width: 68px; border: none; background: transparent; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 700; color: var(--epicu-encre); text-align: right; padding: 0.28rem 0.15rem;
  appearance: textfield; -moz-appearance: textfield; }
.obj-input::-webkit-outer-spin-button, .obj-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.obj-input:focus { outline: none; }
.obj-eur { font-size: 0.7rem; font-weight: 700; color: var(--muted); background: var(--epicu-gris-clair);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.24rem 0.55rem; margin-left: 0.4rem; }
.obj-save { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: none; background: var(--epicu-orange); color: #fff; cursor: pointer; flex: none;
  transition: transform .15s, background .25s, box-shadow .15s; }
.obj-save .icon { width: 14px; height: 14px; }
.obj-save:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(232,73,32,0.35); }
.obj-save:disabled { opacity: 0.55; transform: none; box-shadow: none; }
.obj-form.ok .obj-save { background: #7d8d1f; }
.obj-form.ok .obj-group { border-color: #dbe3a8; box-shadow: 0 0 0 3px rgba(47,158,87,0.14); }
.obj-form.err .obj-save { background: #b81c33; }
.obj-form.err .obj-group { border-color: #f3c3cb; box-shadow: 0 0 0 3px rgba(192,36,64,0.13); }
.obj-status { font-size: 0.74rem; font-weight: 700; opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s; }
.obj-form.ok .obj-status { color: #7d8d1f; opacity: 1; transform: none; }
.obj-form.err .obj-status { color: #b81c33; opacity: 1; transform: none; }
.fld-error { border-color: #b81c33 !important; }
@media (max-width: 900px) { .res-layout { grid-template-columns: 1fr; } }

/* Studio */
.studio-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.studio-controls .seg { flex-wrap: wrap; } .studio-controls .seg-opt { flex: none; }
.idea-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.85rem; }
.idea { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--epicu-gris-clair); border-radius: 12px; padding: 0.95rem 1.05rem; opacity: 0; animation: ideaIn .45s ease forwards; }
@keyframes ideaIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.idea.rich { flex-direction: column; gap: 0.35rem; border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.idea.rich:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.idea-n { font-family: var(--font-display); font-size: 1.3rem; color: var(--epicu-orange); line-height: 1; }
.idea-format { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--univers-travel); background: #e8edf8; border-radius: 999px; padding: 0.14rem 0.6rem; }
.idea-titre { margin: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.idea-hook { margin: 0; font-size: 0.8rem; color: var(--muted); font-style: italic; }
.idea p { margin: 0; font-size: 0.9rem; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 1rem; }
.tag { font-size: 0.78rem; font-weight: 600; color: var(--epicu-orange); background: rgba(232,73,32,0.08); border-radius: 999px; padding: 0.22rem 0.7rem; }
.moment-pill { margin-left: auto; font-size: 0.76rem; font-weight: 700; color: #6d7a19; background: #f1f4dc; border-radius: 999px; padding: 0.25rem 0.75rem; }
.card.brief { border-left: 4px solid var(--epicu-orange); }
.card.brief p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

/* Communications (assistant WhatsApp) */
.card.convo { padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; }
.convo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.convo-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.canal { font-weight: 700; color: #1fa855; }
.convo-resume { margin: 0.45rem 0 0.65rem; font-size: 0.88rem; line-height: 1.5; }
.convo-foot { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dossier-chip, .tache-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.74rem; font-weight: 600; border-radius: 999px; padding: 0.2rem 0.65rem;
}
.dossier-chip { background: #efeade; color: #7a6a3f; }
.dossier-chip .icon, .tache-chip .icon { width: 12px; height: 12px; }
.tache-chip { background: #e8edf8; color: #405e9e; }
.card.msg-prep { padding: 1.1rem 1.25rem; margin-bottom: 0.9rem; transition: opacity .3s; }
.card.msg-prep.sent { opacity: 0.65; }
.msg-prep-pour { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.msg-prep-pour .icon { width: 14px; height: 14px; }
.msg-prep-texte { background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; font-size: 0.88rem; line-height: 1.5; margin: 0.6rem 0 0.75rem; }
.msg-prep-actions { display: flex; gap: 0.5rem; align-items: center; }
.msg-prep-actions .icon { width: 13px; height: 13px; margin-right: 0.25rem; }

/* Espace client public */
.ec-hero { text-align: center; padding: 3.5rem 2rem 1.5rem; }
.ec-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.3em 0 0.2em; }
.ec-sub { color: #5c584e; display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.ec-body { max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem 3rem; }
.ec-cta { text-align: center; background: var(--epicu-encre); color: #fff; border: none; border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); }
.ec-cta h2 { font-size: 1.4rem; color: #fff; }
.ec-cta p { color: rgba(255,255,255,0.75); margin: 0; }
.ec-cta-logo { height: 34px; width: auto; margin-bottom: 1rem; opacity: 0.95; }
.ec-cta-actions { margin: 1.25rem 0 0.5rem; }
.ec-signature { margin-top: 1.25rem !important; font-family: var(--font-display); letter-spacing: 0.04em; font-size: 0.8rem; color: rgba(255,255,255,0.55) !important; text-transform: uppercase; }

/* Espace client — hero accent par univers + partage/QR */
.ec-hero-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.btn-share { display: inline-flex; align-items: center; gap: 0.45rem; }
.btn-share .icon { width: 17px; height: 17px; }
.ec-hero-food { border-top: 5px solid var(--univers-food); }
.ec-hero-shop { border-top: 5px solid var(--univers-shop); }
.ec-hero-travel { border-top: 5px solid var(--univers-travel); }
.ec-hero-fun { border-top: 5px solid var(--univers-fun); }
.ec-hero-beauty { border-top: 5px solid var(--univers-beauty); }
.ec-qr { margin: 1.4rem auto 0; display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.ec-qr img { border-radius: 8px; }

/* Kanban — drag & drop */
.kb-hint { margin: -0.25rem 0 0.75rem; }
.kb-card { cursor: grab; }
.kb-card:active { cursor: grabbing; }
.kb-card.dragging { opacity: 0.45; box-shadow: var(--shadow-lg); border-color: var(--epicu-orange); }
.kb-col.over { border-color: var(--epicu-orange); background: rgba(232,73,32,0.06); box-shadow: inset 0 0 0 2px rgba(232,73,32,0.25); }
.kb-col.over .kb-cards { min-height: 40px; }

/* Fiche établissement — pilotage commercial */
.fiche-pilotage { margin-bottom: 1.25rem; }
.pilotage-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; margin-top: 0.5rem; }
.pilotage-row .fld { min-width: 220px; }
.pilotage-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.pilotage-row select { padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--font-body); font-size: 0.9rem; min-width: 200px; }
.pilotage-row select:focus { outline: none; border-color: var(--epicu-orange); box-shadow: 0 0 0 3px rgba(232,73,32,0.13); }

/* Administration — objectifs par KPI */
.obj-table td { vertical-align: middle; }
.obj-kpis { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.75rem; }
.obj-kpi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; font-size: 0.9rem; }
.obj-kpi-head strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--epicu-encre); }
.obj-kpi .progress { margin: 0.15rem 0 0.3rem; }
.progress-bar.bar-shop { background: linear-gradient(90deg, #a8496a, var(--univers-shop)); }
.progress-bar.bar-travel { background: linear-gradient(90deg, #b7c94f, var(--univers-travel)); }

/* Pilotage réseau — performance par univers */
.perf-head { align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.perf-sub { margin: 0.2rem 0 0; }
.perf-controls { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.perf-seg { display: inline-flex; background: var(--epicu-gris-clair); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.perf-seg-btn { border: none; background: transparent; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; color: var(--muted); padding: 0.4rem 0.95rem; border-radius: 999px; transition: all .15s; }
.perf-seg-btn:hover { color: var(--epicu-encre); }
.perf-seg-btn.on { background: var(--epicu-orange); color: #fff; box-shadow: 0 3px 9px rgba(232,73,32,0.28); }
.metric-nav { margin: 0; }
.perf-table-wrap { overflow-x: auto; }
.perf-table { min-width: 560px; }
.perf-table th.num, .perf-table td.num { font-variant-numeric: tabular-nums; }
.u-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.55rem; vertical-align: -1px; }
.perf-table tfoot .perf-total td { border-top: 2px solid var(--epicu-encre); font-weight: 700; background: var(--epicu-gris-clair); }
.perf-matrix { min-width: 640px; }
.perf-hint { margin: 0.75rem 0 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter:nth-child(1), .counter:nth-child(2), .counter:nth-child(3) { border-bottom: 1px solid var(--line); }
  .counter:nth-child(4) { border-left: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .sidebar { position: fixed; top: 50px; bottom: 0; left: 0; transform: translateX(-100%); transition: transform .25s; z-index: 90; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: translateX(0); }
  main { padding: 1.25rem; }
  .pub-nav { padding: 0.9rem 1.25rem; }
  .section { padding: 3.5rem 1.25rem; }
}
@media (max-width: 560px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .pub-links a:not(.btn) { display: none; }
}
