/* =============================================================================
   Marketing Lab DataStudio - Bespoke Design System
   Matches the exact premium brand aesthetics of rapports.marketing-lab.immo
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Raleway:wght@700;800&family=Anton&display=swap');

:root {
  --purple: #30247E;
  --purple-dark: #1E1554;
  --purple-soft: #EEEDFE;
  --purple-light: #AFA9EC;
  --indigo: #30247E;
  --pink: #DD52A9;
  --pink-soft: #FBEAF4;
  --pink-light: #F4C0D1;
  --pink-tint: #FBE9F3;
  --ink: #191818;
  --text: #2e2d2d;
  --text-muted: #767470;
  --muted: #767470;
  --line: #E8E6EF;
  --surface: #FFFFFF;
  --cream: #FFFFF9;
  --panel: #FAF9FD;
  --bg: #FFFFF9;
  --white: #FFFFFF;
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --info: #3B82F6;
  --info-bg: #EFF6FF;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(48, 36, 126, 0.05);
  --shadow: 0 10px 25px rgba(48, 36, 126, 0.08);
  --shadow-lg: 0 20px 40px rgba(48, 36, 126, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", sans-serif;
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   ZERO-DEPENDENCY SVG ICON SYSTEM (SECURE & VECTORIZED)
   ============================================================================= */
.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: -0.2em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.icon-sm { width: 0.95em; height: 0.95em; vertical-align: -0.15em; }
.icon-md { width: 1.25em; height: 1.25em; }
.icon-lg { width: 1.5em; height: 1.5em; vertical-align: -0.25em; }

.icon-purple { color: var(--purple); }
.icon-pink { color: var(--pink); }
.icon-success { color: var(--success); }
.icon-muted { color: var(--text-muted); }

/* =============================================================================
   DECORATIVE ORBS & HATCHED TEXTURES (SIGNATURE MARKETING LAB)
   ============================================================================= */
.deco {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}
.deco-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at 35% 35%, var(--purple) 0%, transparent 70%);
  top: -160px;
  left: -160px;
}
.deco-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 60% 40%, var(--pink) 0%, transparent 70%);
  top: -70px;
  left: 150px;
}
.deco-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 40% 60%, var(--pink) 0%, transparent 70%);
  bottom: -140px;
  right: -120px;
}
.hatch {
  position: fixed;
  width: 120px;
  height: 150px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background: repeating-linear-gradient(45deg, var(--purple-light) 0 3px, transparent 3px 9px);
}
.hatch-1 {
  bottom: 60px;
  left: -30px;
}
.hatch-2 {
  top: 180px;
  right: -30px;
  background: repeating-linear-gradient(45deg, var(--pink-light) 0 3px, transparent 3px 9px);
}

/* =============================================================================
   HEADER & NAVBAR
   ============================================================================= */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--purple);
}

.brand-logo {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--purple);
}

.brand-logo .lab {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  color: var(--pink);
}

.brand-logo .dot {
  color: var(--pink);
}

.brand-badge {
  background: var(--purple-soft);
  color: var(--purple);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.select-control {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.select-control:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn.btn-primary, .btn.primary {
  background: var(--purple);
  color: var(--white);
}
.btn.btn-primary:hover, .btn.primary:hover {
  box-shadow: 0 6px 18px rgba(48, 36, 126, 0.28);
}
.btn.btn-secondary, .btn.secondary {
  background: var(--pink);
  color: var(--white);
}
.btn.btn-secondary:hover, .btn.secondary:hover {
  box-shadow: 0 6px 18px rgba(221, 82, 169, 0.3);
}
.btn.btn-outline, .btn.outline {
  background: var(--white);
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn.btn-outline:hover, .btn.outline:hover {
  background: var(--purple-soft);
  box-shadow: 0 6px 18px rgba(48, 36, 126, 0.15);
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* =============================================================================
   LAYOUT CONTAINER
   ============================================================================= */
.container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 3.5rem;
}

/* =============================================================================
   REPORT HEADER BANNER & CLIENT BADGE
   ============================================================================= */
.report-header-banner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.report-header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.client-badge {
  background: var(--purple);
  color: var(--white);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.banner-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0.8rem 0 0.4rem;
  line-height: 1.2;
}

.banner-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--pink);
  margin-top: 10px;
  border-radius: 2px;
}

.campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple);
  margin: 1rem 0 0.5rem;
}

.campaign-pill span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.badge {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.3px;
}

.badge-live { background: var(--success-bg); color: var(--success); }
.badge-db { background: var(--purple-soft); color: var(--purple); }

/* =============================================================================
   SECTION TITLES
   ============================================================================= */
.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.2rem 0 1.2rem;
}

.section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.3px;
  text-transform: none;
}

.section-title-wrapper::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-num {
  background: var(--purple);
  color: var(--white);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

/* =============================================================================
   KPI CARDS WITH BORDER ACCENTS & MICRO-ANIMATIONS
   ============================================================================= */
.kpi-grid, .kpi-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}

.kpi-card, .kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.kpi-card:hover, .kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.kpi-card::before, .kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.kpi-card.purple-accent::before, .kpi.sms::before { background: var(--purple); }
.kpi-card.pink-accent::before, .kpi.rcs::before { background: var(--pink); }
.kpi-card.green-accent::before { background: var(--success); }
.kpi-card.total-accent::before, .kpi.total::before { background: linear-gradient(var(--purple), var(--pink)); }

.kpi-label, .kpi .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.kpi-value, .kpi .value {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.kpi-subtext, .kpi .sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* =============================================================================
   METRICS COMPARATIVE TRACKS (PROGRESS BARS)
   ============================================================================= */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.metric-box h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 14px;
  text-transform: none;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.metric-row .chan { color: var(--text-muted); }
.metric-row .val { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }

.track {
  height: 7px;
  background: var(--purple-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.fill.p { background: var(--purple); }
.fill.r { background: var(--pink); }
.fill.g { background: var(--success); }

.delta-tag {
  font-size: 0.78rem;
  color: var(--pink);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* =============================================================================
   SECTION 2: FUNNEL (PARCOURS DES CONTACTS)
   ============================================================================= */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.fstep {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fbar {
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.05rem;
  min-width: 90px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fstep .cap {
  font-size: 0.88rem;
  color: var(--text);
}

.fstep .cap b {
  color: var(--ink);
  font-weight: 800;
}

.fnote {
  margin-top: 14px;
  background: var(--purple-soft);
  border-left: 4px solid var(--purple);
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
}

.fnote b {
  color: var(--purple);
  font-weight: 800;
}

/* =============================================================================
   SECTION 3: REPARTITION DES ISSUES D'APPEL & CANAUX (DONUT & LEGEND)
   ============================================================================= */
.split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.split-donut-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.lrow .sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}

.lrow .nm {
  color: var(--ink);
  font-weight: 700;
}

.lrow .vn {
  margin-left: auto;
  font-weight: 800;
  color: var(--purple);
  font-size: 0.95rem;
}

.lrow .pc {
  color: var(--text-muted);
  width: 48px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
}

/* =============================================================================
   DONUT CHARTS & CIRCULAR VISUALIZATIONS
   ============================================================================= */
.donuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 1.5rem;
}

.donut-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.donut-box {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center .n {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.donut-center .l {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* =============================================================================
   TABLES (DATASTUDIO PRECISE ALIGNMENT)
   ============================================================================= */
.table-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.table-header-box {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
}

.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.datatable th {
  background: var(--cream);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}

.datatable td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.datatable tbody tr:hover {
  background-color: var(--purple-soft);
}

.status-pill {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

.status-abouti { background: #DCFCE7; color: #15803D; }
.status-repondeur { background: #FEF3C7; color: #B45309; }
.status-nontente { background: #F3F4F6; color: #4B5563; }
.status-injoignable { background: #FEE2E2; color: #B91C1C; }

/* =============================================================================
   ACCORDION DRAWERS & AI RECOMMENDATIONS
   ============================================================================= */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.reco {
  background: var(--purple-soft);
  border-radius: 12px;
  padding: 18px 20px;
}

.reco:nth-child(even) {
  background: var(--pink-soft);
}

.reco .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--white);
  background: var(--purple);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}

.reco:nth-child(even) .tag {
  background: var(--pink);
}

.reco p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

/* =============================================================================
   MONTHLY REPORT MODULES (TOP COMMERCIAUX PODIUM & EN BREF Q&A)
   ============================================================================= */
.topcom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.tc-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tc-card .rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.tc-card .tc-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 6px;
}

.tc-card .tc-stats {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tc-card .tc-stats b {
  color: var(--success);
  font-weight: 800;
}

.tc-card .tc-pct {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--purple);
  margin-top: 4px;
}

.table-bref td.q {
  color: var(--pink);
  font-weight: 800;
  width: 240px;
  vertical-align: top;
}

.table-bref td.a {
  color: var(--ink);
  line-height: 1.55;
}

/* =============================================================================
   SECTION 7: DETAIL DES CONTACTS PAR PROGRAMME (ACCORDION DRAWERS)
   ============================================================================= */
.prog {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.prog:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-sm);
}

.prog > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--purple);
  user-select: none;
  transition: background 0.15s ease;
}

.prog > summary:hover {
  background: var(--purple-soft);
}

.prog > summary::-webkit-details-marker {
  display: none;
}

.prog > summary .chev {
  margin-left: auto;
  color: var(--pink);
  transition: transform 0.2s ease;
  font-size: 11px;
}

.prog[open] > summary .chev {
  transform: rotate(90deg);
}

.prog > summary .cnt {
  font-size: 0.75rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--pink);
  padding: 2px 10px;
  border-radius: 20px;
}

.prog > summary .cons {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.plist {
  padding: 4px 18px 14px;
  background: var(--white);
}

.pc-row {
  display: grid;
  grid-template-columns: 200px 90px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.pc-row:last-child {
  border-bottom: 0;
}

.pc-who b {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 800;
}

.pc-who span {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
  display: block;
  margin-top: 2px;
}

.pc-when {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pc-when b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.pc-note {
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.45;
}

.badge-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 4px;
  color: #FFFFFF;
  white-space: nowrap;
}

/* =============================================================================
   POINTS FORTS & POINTS D'ATTENTION (EXACT LEGACY MANUAL REPORT DESIGN)
   ============================================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card.good {
  border-top: 4px solid var(--s-abouti);
}

.card.warn {
  border-top: 4px solid var(--pink);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 900;
  font-family: 'Be Vietnam Pro', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card.good h3 {
  color: var(--s-abouti);
}

.card.warn h3 {
  color: var(--pink);
}

.card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  line-height: 1.55;
}

.card li:last-child {
  border-bottom: 0;
}

.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.card.good li::before {
  background: var(--s-abouti);
}

.card.warn li::before {
  background: var(--pink);
}

.card li b {
  color: var(--ink);
  font-weight: 800;
}

.synth-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.synth-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.synth-box p b {
  color: var(--purple);
  font-weight: 800;
}

.synth-box .highlight {
  background: var(--pink-soft);
  border-left: 4px solid var(--pink);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
}

.stop-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.stop-note b {
  color: var(--ink);
  font-weight: 700;
}

/* =============================================================================
   AUTHENTICATION MODAL & OVERLAY (CLEAN BRANDED CANVAS)
   ============================================================================= */
.auth-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-modal {
  background: var(--white);
  border: 1px solid rgba(232, 230, 239, 0.85);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(48, 36, 126, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.6);
  width: 100%;
  max-width: 440px;
  padding: 42px 36px 36px;
  position: relative;
  overflow: hidden;
  animation: authRise 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--purple-soft);
}

.auth-alert {
  background: #FEE2E2;
  color: #B91C1C;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: none;
  border: 1px solid #F87171;
  line-height: 1.4;
}

/* =============================================================================
   FLOATING DOWNLOAD ACTION BUTTON (BOTTOM RIGHT)
   ============================================================================= */
.btn-floating-download {
  position: fixed;
  bottom: 30px;
  right: 32px;
  z-index: 990;
  background: linear-gradient(135deg, var(--pink) 0%, #C83890 100%);
  color: #FFFFFF !important;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(221, 82, 169, 0.42), 0 4px 12px rgba(48, 36, 126, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-floating-download:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 36px rgba(221, 82, 169, 0.52), 0 6px 16px rgba(48, 36, 126, 0.22);
  background: linear-gradient(135deg, #E65FB4 0%, var(--pink) 100%);
}

.btn-floating-download:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-floating-download .icon {
  width: 1.25em;
  height: 1.25em;
}

/* =============================================================================
   PREMIUM CENTERED FOOTER
   ============================================================================= */
.footer-wrapper {
  margin-top: 60px;
  padding: 36px 20px 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(244, 240, 250, 0.5) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-tagline {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.3px;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  margin: 4px 0;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-meta span.dot-sep {
  color: var(--purple-light);
  font-weight: bold;
}

@media print {
  .navbar, .select-control, .btn, .btn-floating-download, .auth-overlay, #narrative-manager-actions, #btn-suggest-campaigns { display: none !important; }
  body { background: white !important; }
  .report-header-banner { border: 1px solid #ccc !important; }
}

