/* Page Agences — harmonisation typographique et espacements */

/* ------------------------------------------------------------------
 * En-têtes de section (kicker, h2, intro)
 * ---------------------------------------------------------------- */
.agency-section-header {
  max-width: 52rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.agency-section-header .agency-section-kicker {
  margin-bottom: 1rem;
}

.agency-section-title,
.agency-opportunity-section .heatmap-title,
.agency-process-section .heatmap-title,
.agency-workspace-section .product-title,
.agency-capabilities-section .product-title,
.agency-services-section .sources-title,
.agency-fit-section .product-title,
.agency-faq-section .sources-title {
  margin: 0 0 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #17233c;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}

.agency-section-intro,
.agency-opportunity-section .heatmap-sub,
.agency-process-section .heatmap-sub,
.agency-services-section .sources-sub {
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(23, 35, 60, 0.55);
  line-height: 1.65;
  max-width: 42rem;
  text-align: center;
  white-space: normal;
}

/* ------------------------------------------------------------------
 * Kickers
 * ---------------------------------------------------------------- */
.agency-kicker,
.agency-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
  color: #4c9783;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.agency-kicker::before,
.agency-section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.agency-section-kicker_light {
  color: #a9e1d2;
}

/* ------------------------------------------------------------------
 * Corps de texte commun (p, strong, span)
 * ---------------------------------------------------------------- */
.agency-page p  {
  margin: 0 auto 2rem;
}

.agency-page h3 {
  margin: 0 0 0.7rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #17233c;
}

.agency-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #687386;
}

/* ------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------- */
.agency-hero {
  overflow: hidden;
}

.agency-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.25rem;
  color: #526078;
  font-size: 0.82rem;
  font-weight: 650;
}

.agency-hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.agency-hero-proof span::before {
  content: "✓";
  color: #4c9783;
  font-weight: 900;
}

.agency-hero-visual {
  min-height: 520px;
}

.agency-hero-panel {
  padding: 1rem;
}

/* ------------------------------------------------------------------
 * Cartes valeur — pas de hover sur la zone visuelle
 * ---------------------------------------------------------------- */
.agency-value-grid {
  align-items: stretch;
}

.agency-value-card {
  height: 100%;
}

.agency-value-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #e5e7eb;
}

.agency-value-card .card-visual.agency-icon-visual {
  height: auto;
  min-height: 15rem;
  padding: 2rem;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  background: #f3f4f6;
  transition: none;
}

.agency-value-card:hover .card-visual.agency-icon-visual {
  background: #f3f4f6;
}

.agency-icon-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.agency-feature-icon,
.agency-process-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #356f61;
  background: #eaf5f2;
  flex-shrink: 0;
  line-height: 11px;
}

.agency-feature-icon svg,
.agency-process-icon svg {
  width: 23px;
  height: 23px;
}

.agency-icon-visual strong {
  display: block;
  margin-top: 1.25rem;
  color: #17233c;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.agency-icon-visual p {
  margin-top: 0.7rem;
  color: #687386;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.agency-value-card .card-text {
  padding: 1.5rem;
  gap: 0.5rem;
}

.agency-value-card .card-label {
  font-size: 1rem;
  font-weight: 600;
  color: #17233c;
}

.agency-value-card .card-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(23, 35, 60, 0.6);
}

/* ------------------------------------------------------------------
 * Process
 * ---------------------------------------------------------------- */
.agency-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.agency-process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20.5rem;
  padding: 1.65rem;
  border: 1px solid #e2e7e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(23, 35, 60, 0.045);
}

.agency-process-card::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -17px;
  z-index: 2;
  width: 32px;
  height: 1px;
  background: #cbd8d4;
}

.agency-process-card:last-child::after {
  display: none;
}

.agency-step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #cbd4d8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.agency-process-card h3 {
  margin-top: 1.35rem;
}

.agency-process-card .agency-body {
  flex: 1;
}

.agency-process-output {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #edf0f1;
  color: #4c9783;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------
 * Dashboard / portefeuille
 * ---------------------------------------------------------------- */
.agency-dashboard-heading,
.agency-portfolio-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.agency-dashboard-heading {
  padding: 0.55rem 0.2rem 0.85rem;
}

.agency-dashboard-heading > div,
.agency-portfolio-topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.agency-dashboard-heading strong,
.agency-portfolio-topbar strong {
  color: #17233c;
  font-size: 1rem;
}

.agency-dashboard-eyebrow {
  color: #8a94a6;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-dashboard-period {
  padding: 0.42rem 0.6rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #687386;
  background: #fff;
  font-size: 0.66rem;
}

.agency-client-list {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8ecef;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}

.agency-client-row {
  display: grid;
  grid-template-columns: 34px minmax(105px, 1fr) 58px 72px;
  align-items: center;
  gap: 0.62rem;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid #edf0f2;
}

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

.agency-client-avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  color: #fff;
  background: #17233c;
  font-size: 0.75rem;
  font-weight: 800;
}

.agency-client-row:nth-child(2) .agency-client-avatar,
.agency-portfolio-table tbody tr:nth-child(2) .agency-client-avatar {
  background: #4c9783;
}

.agency-client-row:nth-child(3) .agency-client-avatar,
.agency-portfolio-table tbody tr:nth-child(3) .agency-client-avatar {
  background: #7a6b9d;
}

.agency-portfolio-table tbody tr:nth-child(4) .agency-client-avatar {
  background: #bb744f;
}

.agency-client-name,
.agency-client-score {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.agency-client-name strong {
  overflow: hidden;
  color: #202b40;
  font-size: 0.73rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agency-client-name small,
.agency-client-score small {
  margin-top: 0.15rem;
  color: #929bad;
  font-size: 0.58rem;
}

.agency-client-score {
  text-align: right;
}

.agency-client-score strong {
  color: #17233c;
  font-size: 0.78rem;
}

.agency-client-score small {
  color: #4c9783;
}

.agency-client-status {
  justify-self: end;
  padding: 0.33rem 0.42rem;
  border-radius: 999px;
  font-size: 0.53rem;
  font-weight: 760;
  white-space: nowrap;
}

.agency-client-status_up {
  color: #26705d;
  background: #e7f5f0;
}

.agency-client-status_watch {
  color: #8a641b;
  background: #fff5d9;
}

.agency-client-status_alert {
  color: #a44b4b;
  background: #fdeaea;
}

.agency-dashboard-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.agency-dashboard-footer > div {
  padding: 0.65rem;
  border-radius: 10px;
  background: #f7f9fa;
}

.agency-dashboard-footer strong {
  display: block;
  color: #17233c;
  font-size: 0.9rem;
}

.agency-dashboard-footer span {
  display: block;
  margin-top: 0.12rem;
  color: #7d8799;
  font-size: 0.54rem;
  line-height: 1.3;
}

.agency-floating-card {
  min-width: 190px;
}

.agency-workspace-section .agency-section-header {
  margin-bottom: 2.5rem;
}

.agency-portfolio-card {
  margin-top: 0;
  padding: 0;
  overflow: hidden;
}

.agency-portfolio-topbar {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid #e7ebed;
  background: #fff;
}

.agency-portfolio-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6f788a;
  font-size: 0.7rem;
}

.agency-portfolio-actions span {
  padding: 0.46rem 0.62rem;
  border: 1px solid #e2e6e8;
  border-radius: 8px;
  background: #fff;
}

.agency-portfolio-actions .agency-portfolio-action_primary {
  color: #fff;
  border-color: #4c9783;
  background: #4c9783;
}

.agency-portfolio-table td {
  vertical-align: middle;
}

.agency-table-client {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 170px;
}

.agency-table-client > span:last-child {
  display: flex;
  flex-direction: column;
}

.agency-table-client strong {
  color: #17233c;
  font-size: 0.8rem;
}

.agency-table-client small {
  margin-top: 0.12rem;
  color: #929bad;
  font-size: 0.66rem;
}

.agency-delta {
  display: inline-flex;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  color: #6b7280;
  background: #f1f3f5;
  font-size: 0.66rem;
  font-weight: 700;
}

.agency-delta_up {
  color: #26705d;
  background: #e7f5f0;
}

.agency-delta_down {
  color: #a44b4b;
  background: #fdeaea;
}

.agency-task {
  display: inline-flex;
  padding: 0.35rem 0.5rem;
  border-radius: 7px;
  color: #356f61;
  background: #eaf5f2;
  font-size: 0.66rem;
  font-weight: 700;
}

.agency-task_alert {
  color: #a44b4b;
  background: #fdeaea;
}

.agency-workspace-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.agency-workspace-benefits > div {
  padding: 1rem 1.15rem;
  border-left: 2px solid #4c9783;
  background: rgba(255, 255, 255, 0.62);
}

.agency-workspace-benefits strong {
  display: block;
  color: #17233c;
  font-size: 0.9375rem;
  font-weight: 600;
}

.agency-workspace-benefits span {
  display: block;
  margin-top: 0.35rem;
  color: #727c8e;
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------------
 * Capacités
 * ---------------------------------------------------------------- */
.agency-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.agency-capability-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border: 1px solid #e3e7e9;
  border-radius: 15px;
  background: #fff;
}

.agency-capability-card h3 {
  margin-top: 1.1rem;
}

/* ------------------------------------------------------------------
 * Services
 * ---------------------------------------------------------------- */
.agency-services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.agency-service-card {
  position: relative;
  overflow: hidden;
}

.agency-service-number {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  color: #e4e9e8;
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 850;
}

.agency-service-card .sources-card-header {
  position: relative;
  padding: 1.25rem 1.5rem 1rem;
  padding-right: 4rem;
}

.agency-service-card .sources-card-body {
  padding: 0 1.5rem 1.5rem;
}

.agency-service-card .sources-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #17233c;
}

.agency-service-card .sources-card-body .agency-body {
  margin-bottom: 1rem;
}

.agency-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agency-check-list li {
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  color: #356f61;
  background: #eaf5f2;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------
 * Partenaire
 * ---------------------------------------------------------------- */
.agency-partner-section {
  background: #17233c;
}

.agency-partner-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.agency-partner-copy .agency-section-header {
  margin: 0 0 1.7rem;
  max-width: none;
  text-align: left;
}

.agency-partner-copy .agency-section-kicker {
  justify-content: flex-start;
}

.agency-partner-copy .agency-body {
  max-width: 32.5rem;
  margin: 0 0 1.7rem;
  color: #c2cad7;
  font-size: 1rem;
  line-height: 1.7;
}

.agency-partner-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: left;
}

.agency-partner-cta {
  display: inline-flex;
}

.agency-partner-support {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.agency-support-item {
  display: flex;
  gap: 0.8rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.agency-support-check {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  color: #17233c;
  background: #a9e1d2;
  font-size: 0.75rem;
  font-weight: 900;
}

.agency-support-item strong {
  display: block;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.agency-support-item .agency-body {
  margin-top: 0.35rem;
  color: #b7c1d0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
 * Fit
 * ---------------------------------------------------------------- */
.agency-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.agency-fit-grid article {
  padding: 1.35rem;
  border-top: 2px solid #4c9783;
  background: #f7f9f8;
}

.agency-fit-grid strong {
  display: block;
  color: #17233c;
  font-size: 0.9375rem;
  font-weight: 600;
}

.agency-fit-grid .agency-body {
  margin-top: 0.55rem;
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------
 * FAQ
 * ---------------------------------------------------------------- */
.agency-faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid #dfe4e6;
}

.agency-faq-item {
  border-bottom: 1px solid #dfe4e6;
}

.agency-faq-item summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  color: #17233c;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.agency-faq-item summary::-webkit-details-marker {
  display: none;
}

.agency-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 1.05rem;
  right: 0.35rem;
  color: #4c9783;
  font-size: 1.55rem;
  font-weight: 400;
}

.agency-faq-item[open] summary::after {
  content: "−";
}

.agency-faq-item > div {
  padding: 0 3rem 1.35rem 0;
}

.agency-faq-item .agency-body {
  max-width: 50rem;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------
 * CTA final
 * ---------------------------------------------------------------- */
.agency-final-cta .agency-section-kicker {
  justify-content: center;
}

.agency-final-cta .cta-final-title {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.agency-final-cta .cta-final-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(23, 35, 60, 0.55);
}

/* ------------------------------------------------------------------
 * Sections — padding homogène
 * ---------------------------------------------------------------- */
.agency-opportunity-section,
.agency-capabilities-section,
.agency-fit-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.agency-process-section,
.agency-workspace-section,
.agency-services-section,
.agency-faq-section {
  padding-bottom: 6rem;
}

.agency-capabilities-section .product-title,
.agency-fit-section .product-title,
.agency-workspace-section .product-title {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1050px) {
  .agency-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-process-card::after {
    display: none;
  }

  .agency-capabilities-grid,
  .agency-fit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agency-partner-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 760px) {
  .agency-section-header {
    margin-bottom: 2.5rem;
  }

  .agency-hero-visual {
    min-height: 440px;
    transform: scale(0.94);
    transform-origin: top center;
  }

  .agency-client-row {
    grid-template-columns: 30px minmax(88px, 1fr) 48px;
  }

  .agency-client-status {
    display: none;
  }

  .agency-dashboard-footer {
    grid-template-columns: 1fr;
  }

  .agency-dashboard-footer > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .agency-dashboard-footer span {
    margin: 0;
  }

  .agency-process-grid,
  .agency-capabilities-grid,
  .agency-services-grid,
  .agency-fit-grid,
  .agency-workspace-benefits,
  .agency-partner-support {
    grid-template-columns: 1fr;
  }

  .agency-portfolio-topbar {
    align-items: flex-start;
  }

  .agency-portfolio-actions span:not(.agency-portfolio-action_primary) {
    display: none;
  }

  .agency-partner-title {
    font-size: 2rem;
  }

  .agency-partner-copy .agency-section-header,
  .agency-partner-copy .agency-partner-title {
    text-align: left;
  }
}
