/* Annuaire Pro public interface */
:root {
  --ap-primary: #073b71;
  --ap-primary-dark: #062d57;
  --ap-accent: #1d5bd7;
  --ap-accent-soft: #edf4ff;
  --ap-navy: #0a1b35;
  --ap-text: #172033;
  --ap-muted: #667085;
  --ap-border: #e2e8f0;
  --ap-surface: #ffffff;
  --ap-background: #f7f9fc;
  --ap-success: #1f9d55;
  --ap-warning: #f5a623;
  --ap-danger: #d93f49;
  --ap-star: #ffb800;
  --ap-radius: 12px;
  --ap-radius-lg: 18px;
  --ap-shadow: 0 14px 36px rgba(15, 40, 70, .08);
  --ap-shadow-sm: 0 6px 18px rgba(15, 40, 70, .06);
  --ap-shell: 1200px;
}

.annuaire-pro-page,
.annuaire-pro-page * {
  box-sizing: border-box;
}

body.annuaire-pro-page {
  margin: 0;
  background: var(--ap-background);
  color: var(--ap-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.annuaire-pro-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.annuaire-pro-page a {
  color: var(--ap-primary);
  text-decoration: none;
}

.annuaire-pro-page a:hover {
  color: var(--ap-accent);
}

.annuaire-pro-page .ap-icon,
.annuaire-pro-company-page .ap-icon {
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.annuaire-pro-page button,
.annuaire-pro-page input,
.annuaire-pro-page select,
.annuaire-pro-page textarea {
  font: inherit;
}

.annuaire-pro-page button,
.annuaire-pro-page input[type="submit"] {
  cursor: pointer;
}

.annuaire-pro-page :focus-visible {
  outline: 3px solid rgba(29, 91, 215, .26);
  outline-offset: 2px;
}

.ap-shell {
  width: min(calc(100% - 40px), var(--ap-shell));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ap-icon {
  flex: 0 0 auto;
}

.ap-site-header {
  position: relative;
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #edf0f4;
  box-shadow: 0 2px 12px rgba(14, 43, 74, .04);
}

.ap-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.ap-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ap-text);
}

.ap-brand:hover {
  color: var(--ap-text);
}

.ap-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ap-primary);
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(7, 59, 113, .2);
}

.ap-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ap-brand-text strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.ap-brand-text small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-header-search {
  position: relative;
  min-width: 260px;
  max-width: 360px;
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-inline: 14px;
  color: #98a2b3;
  background: #f5f7fa;
  border: 1px solid transparent;
  border-radius: 8px;
}

.ap-header-search:focus-within {
  background: #fff;
  border-color: #b7cdf5;
  box-shadow: 0 0 0 3px rgba(29, 91, 215, .08);
}

.ap-header-search input {
  width: 100%;
  min-width: 0;
  color: var(--ap-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.ap-header-search input::placeholder {
  color: #a3acba;
}

.ap-header-search .ap-search-suggestions {
  top: calc(100% + 9px);
  right: auto;
  width: min(440px, calc(100vw - 32px));
}

.ap-main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.ap-main-nav > a:not(.ap-button):not(.ap-account-link) {
  color: #243044;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ap-main-nav > a.is-active {
  color: var(--ap-primary) !important;
}

.ap-account-link {
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  color: var(--ap-text);
  background: #f8fafc;
  border: 1px solid var(--ap-border);
  border-radius: 50%;
}

.ap-mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: var(--ap-primary);
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  color: var(--ap-primary);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.ap-button:hover {
  transform: translateY(-1px);
  color: var(--ap-primary);
  border-color: #b8c8dc;
  box-shadow: var(--ap-shadow-sm);
}

.ap-button-primary {
  color: #fff !important;
  background: var(--ap-primary);
  border-color: var(--ap-primary);
  box-shadow: 0 8px 18px rgba(7, 59, 113, .18);
}

.ap-button-primary:hover {
  color: #fff !important;
  background: var(--ap-primary-dark);
  border-color: var(--ap-primary-dark);
}

.ap-button-outline {
  color: var(--ap-primary);
  background: #fff;
  border-color: #d3dae5;
}

.ap-button-light {
  color: var(--ap-primary) !important;
  background: #fff;
  border-color: #fff;
}

.ap-button-wide,
.ap-button-block {
  width: 100%;
}

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ap-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ap-home-hero {
  padding: 58px 0 44px;
  background: radial-gradient(circle at 15% 20%, rgba(217, 232, 255, .82), transparent 36%), linear-gradient(180deg, #fff 0%, #f9fbff 100%);
}

.ap-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 64px;
  align-items: center;
}

.ap-home-hero-copy h1 {
  max-width: 680px;
  margin: 15px 0 17px;
  color: #0d1930;
  font-size: clamp(38px, 4.2vw, 59px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.ap-home-hero-copy h1 span {
  color: var(--ap-accent);
}

.ap-home-hero-copy > p {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--ap-muted);
  font-size: 17px;
}

.ap-home-hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(9, 46, 85, .16);
}

.ap-home-hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.ap-hero-floating-card {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(15, 40, 70, .16);
  backdrop-filter: blur(8px);
}

.ap-hero-floating-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ap-star);
  background: #fff7d8;
  border-radius: 50%;
}

.ap-hero-floating-card div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.ap-hero-floating-card small {
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-hero-search,
.ap-directory-search {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 0;
  padding: 5px;
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 46, 78, .08);
}

.ap-search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #7c889a;
}

.ap-search-field-keyword {
  border-right: 1px solid var(--ap-border);
}

.ap-search-field input,
.ap-directory-search select {
  width: 100%;
  height: 43px;
  min-width: 0;
  color: var(--ap-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.ap-header-suggestions {
  left: 0;
  right: 0;
  width: max(100%, 360px);
  max-width: min(92vw, 520px);
}

.ap-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  max-height: 430px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  box-shadow: 0 22px 45px rgba(13, 38, 68, .18);
}

.ap-search-suggestions.is-open {
  display: block;
}

.ap-suggestion-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: var(--ap-text) !important;
  border-bottom: 1px solid #eef2f6;
}

.ap-suggestion-item:last-child {
  border-bottom: 0;
}

.ap-suggestion-item:hover,
.ap-suggestion-item.is-active {
  background: #f3f7ff;
}

.ap-suggestion-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-suggestion-item > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.ap-suggestion-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-suggestion-item small {
  color: var(--ap-muted);
}

.ap-suggestion-rating {
  color: var(--ap-star);
  font-weight: 700;
  white-space: nowrap;
}

.ap-suggestion-message {
  padding: 18px;
  color: var(--ap-muted);
  text-align: center;
}

.ap-popular-searches {
  margin-top: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-popular-searches a,
.ap-tag-cloud a,
.ap-directory-categories a {
  padding: 5px 10px;
  color: var(--ap-primary);
  background: #edf4ff;
  border-radius: 999px;
  font-weight: 600;
}

.ap-home-stats {
  padding: 26px 0 4px;
  background: #fff;
}

.ap-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ap-stat-card {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 11px;
  box-shadow: var(--ap-shadow-sm);
}

.ap-stat-card > span {
  width: 51px;
  height: 51px;
  display: grid;
  place-items: center;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 50%;
}

.ap-stat-card div {
  display: flex;
  flex-direction: column;
}

.ap-stat-card strong {
  color: #0c1b35;
  font-size: 23px;
}

.ap-stat-card small {
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-home-section {
  padding-top: 28px;
}

.ap-section-card,
.ap-profile-card,
.ap-client-panel,
.ap-auth-card,
.ap-onboarding-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  box-shadow: 0 3px 14px rgba(15, 40, 70, .035);
}

.ap-section-card {
  padding: 25px 27px;
}

.ap-section-heading,
.ap-section-title-row,
.ap-client-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.ap-section-heading h2,
.ap-section-title-row h2,
.ap-client-panel h2,
.ap-profile-card h2 {
  margin: 0;
  color: #0e1b31;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.ap-section-heading > a,
.ap-section-title-row > a,
.ap-section-title-row > span {
  font-size: 12px;
  font-weight: 700;
}

.ap-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.ap-category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 17px 11px;
  color: var(--ap-text) !important;
  text-align: center;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ap-category-card:hover {
  transform: translateY(-3px);
  border-color: #bfd0ee;
  box-shadow: var(--ap-shadow-sm);
}

.ap-category-card > span {
  color: var(--ap-accent);
}

.ap-category-card strong {
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.3;
}

.ap-category-card small {
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}

.ap-company-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 17px;
}

.ap-company-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ap-company-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow);
}

.ap-company-card-cover {
  display: block;
  height: 142px;
  overflow: hidden;
  background: #eaf0f7;
}

.ap-company-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.ap-company-card:hover .ap-company-card-cover img {
  transform: scale(1.035);
}

.ap-company-card-logo {
  position: absolute;
  top: 108px;
  left: 14px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(15, 40, 70, .15);
}

.ap-company-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-company-card-body {
  min-height: 180px;
  padding: 29px 14px 15px;
}

.ap-company-card-body h3 {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.3;
}

.ap-company-card-body h3 a {
  color: var(--ap-text);
}

.ap-verified-dot,
.ap-verified-badge-icon {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ap-accent);
  border-radius: 50%;
  font-weight: 900;
}

.ap-verified-dot {
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.ap-company-card-category,
.ap-company-card-location {
  margin: 0;
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-company-card-rating {
  margin: 8px 0 7px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.ap-company-card-rating .ap-stars,
.ap-company-rating-line .ap-stars,
.ap-latest-review .ap-stars,
.ap-review-list .ap-stars {
  color: var(--ap-star);
}

.ap-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--ap-star);
}

.ap-company-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ap-review-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
}

.ap-latest-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.ap-latest-review {
  padding: 17px;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-latest-review header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.ap-avatar,
.ap-review-avatar {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ap-primary);
  border-radius: 50%;
  font-weight: 800;
}

.ap-avatar {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.ap-latest-review header div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.ap-latest-review small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-latest-review p {
  margin: 7px 0;
  color: #4d5868;
  font-size: 12px;
}

.ap-latest-review > a {
  font-size: 11px;
  font-weight: 700;
}

.ap-business-cta {
  position: relative;
  overflow: hidden;
  padding: 27px;
  color: #fff;
  background: linear-gradient(145deg, var(--ap-primary) 0%, #0b4c8c 100%);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(7, 59, 113, .2);
}

.ap-business-cta:after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.ap-business-cta > * {
  position: relative;
  z-index: 1;
}

.ap-business-cta-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .11);
  border-radius: 12px;
}

.ap-business-cta h2 {
  margin: 17px 0 8px;
  color: #fff;
  font-size: 20px;
}

.ap-business-cta p {
  color: rgba(255, 255, 255, .79);
  font-size: 13px;
}

.ap-business-cta ul {
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}

.ap-business-cta li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-size: 12px;
}

.ap-benefits-strip {
  margin-top: 28px;
  padding: 22px 0;
  background: #f0f6ff;
  border-top: 1px solid #e0eaf7;
}

.ap-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.ap-benefits-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-benefits-grid > div > span {
  color: var(--ap-accent);
}

.ap-benefits-grid div div {
  display: flex;
  flex-direction: column;
  line-height: 1.45;
}

.ap-benefits-grid small {
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-site-footer {
  color: #dbe8f7;
  background: linear-gradient(135deg, #073b71 0%, #072d55 100%);
}

.ap-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .75fr .9fr 1.15fr;
  gap: 55px;
  padding-block: 42px 38px;
}

.ap-brand-light {
  color: #fff !important;
}

.ap-brand-light .ap-brand-mark {
  color: var(--ap-primary);
  background: #fff;
}

.ap-brand-light .ap-brand-text small {
  color: #bcd0e6;
}

.ap-footer-about p,
.ap-footer-newsletter p {
  max-width: 270px;
  color: #c2d3e6;
  font-size: 12px;
}

.ap-footer-grid h2 {
  margin: 4px 0 13px;
  color: #fff;
  font-size: 14px;
}

.ap-footer-grid > div:not(.ap-footer-about) > a {
  display: block;
  margin: 8px 0;
  color: #d5e4f4;
  font-size: 12px;
}

.ap-footer-social,
.ap-social-buttons {
  display: flex;
  gap: 8px;
}

.ap-footer-social a,
.ap-social-buttons a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.ap-footer-newsletter form > div {
  display: flex;
  padding: 3px;
  background: #fff;
  border-radius: 6px;
}

.ap-footer-newsletter input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 0;
  outline: 0;
}

.ap-footer-newsletter button {
  width: 38px;
  color: var(--ap-primary);
  background: transparent;
  border: 0;
}

.ap-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .17);
}

.ap-footer-bottom .ap-shell {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #aebfd2;
  font-size: 10px;
}

.ap-footer-bottom span:last-child {
  display: flex;
  gap: 20px;
}

.ap-footer-bottom a {
  color: #b9cadc;
}

.ap-form-feedback {
  margin: 8px 0 0;
  color: inherit;
  font-size: 12px;
}

.ap-form-feedback.is-error {
  color: var(--ap-danger);
}

.ap-form-feedback.is-success {
  color: var(--ap-success);
}

/* Directory */
.ap-directory-hero {
  padding: 45px 0 34px;
  color: #fff;
  background: linear-gradient(135deg, #073b71, #0e4f91);
}

.ap-directory-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.ap-directory-heading h1 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.ap-directory-heading p {
  margin: 0;
  color: #d9e6f4;
}

.ap-directory-search {
  grid-template-columns: 1.1fr .8fr .85fr auto;
  max-width: 1000px;
}

.ap-directory-search select {
  padding-inline: 12px;
  border-left: 1px solid var(--ap-border);
}

.ap-directory-body {
  padding: 28px 0 50px;
}

.ap-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ap-directory-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.ap-directory-categories a.is-active {
  color: #fff;
  background: var(--ap-primary);
}

.ap-directory-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-directory-sort select {
  min-height: 38px;
  padding: 7px 30px 7px 10px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 7px;
}

.ap-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.ap-pagination a,
.ap-pagination span {
  min-width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--ap-text);
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 7px;
}

.ap-pagination .current {
  color: #fff;
  background: var(--ap-primary);
  border-color: var(--ap-primary);
}

.ap-breadcrumb,
.ap-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #7d8897;
  font-size: 12px;
}

.ap-breadcrumbs {
  min-height: 58px;
}

.ap-empty-state {
  padding: 44px 20px;
  color: var(--ap-muted);
  text-align: center;
}

.ap-empty-state > span {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 50%;
}

.ap-empty-state h3 {
  margin: 0 0 6px;
  color: var(--ap-text);
}

.ap-empty-state-small {
  padding: 24px;
}

/* Authentication */
.ap-auth-section {
  min-height: calc(100vh - 76px);
  padding: 50px 0 70px;
  background: radial-gradient(circle at 10% 20%, #eaf3ff 0, transparent 34%), #f7f9fc;
}

.ap-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  gap: 70px;
  align-items: center;
  max-width: 1020px;
}

.ap-auth-visual {
  padding: 30px;
}

.ap-auth-visual img {
  margin-bottom: 26px;
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow);
}

.ap-auth-visual h1 {
  margin: 0 0 12px;
  font-size: 37px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.ap-auth-visual p {
  color: var(--ap-muted);
}

.ap-auth-visual ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.ap-auth-visual li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0;
  padding: 0;
}

body.annuaire-pro-page .ap-auth-visual li > svg.ap-icon {
  position: static !important;
  inset: auto !important;
  width: 19px !important;
  height: 19px !important;
  margin: 3px 0 0 !important;
  transform: none !important;
  justify-self: start;
  color: var(--ap-accent);
}

.ap-auth-visual li > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.45;
}

.ap-auth-visual li strong,
.ap-auth-visual li small {
  display: block;
}

.ap-auth-visual li strong {
  color: var(--ap-text);
  font-size: 13px;
}

.ap-auth-visual li small {
  color: var(--ap-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.ap-auth-card {
  padding: 28px;
}

.ap-auth-card-head {
  margin-bottom: 22px;
}

.ap-auth-card-head h2 {
  margin: 0 0 4px;
  font-size: 25px;
}

.ap-auth-card-head p,
.ap-auth-switch {
  color: var(--ap-muted);
  font-size: 13px;
}

.ap-auth-form,
.ap-profile-form,
.ap-seo-form,
.ap-modal-form,
.ap-inline-form {
  display: grid;
  gap: 15px;
}

.ap-auth-form label,
.ap-profile-form label,
.ap-seo-form label,
.ap-modal-form label,
.ap-inline-form label,
.ap-form-section label,
.ap-client-panel label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.ap-auth-form input,
.ap-auth-form select,
.ap-profile-form input,
.ap-profile-form textarea,
.ap-seo-form input,
.ap-seo-form textarea,
.ap-modal-form input,
.ap-modal-form textarea,
.ap-inline-form input,
.ap-inline-form textarea,
.ap-inline-form select,
.ap-form-section input,
.ap-form-section textarea,
.ap-form-section select,
.ap-client-panel input,
.ap-client-panel textarea,
.ap-client-panel select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ap-text);
  background: #fff;
  border: 1px solid #d4dce7;
  border-radius: 7px;
  outline: 0;
}

.ap-auth-form textarea,
.ap-profile-form textarea,
.ap-seo-form textarea,
.ap-modal-form textarea,
.ap-inline-form textarea,
.ap-form-section textarea {
  min-height: 96px;
  resize: vertical;
}

.ap-auth-form input:focus,
.ap-auth-form select:focus,
.ap-profile-form input:focus,
.ap-seo-form input:focus,
.ap-modal-form input:focus,
.ap-inline-form input:focus,
.ap-form-section input:focus,
.ap-form-section textarea:focus,
.ap-form-section select:focus,
.ap-client-panel input:focus,
.ap-client-panel textarea:focus,
.ap-client-panel select:focus {
  border-color: #8cb0ee;
  box-shadow: 0 0 0 3px rgba(29, 91, 215, .09);
}

.ap-field-grid {
  display: grid;
  gap: 15px;
}

.ap-field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ap-field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ap-field-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Registration form */
.ap-register-grid {
  grid-template-columns: minmax(0, .84fr) minmax(500px, .92fr);
  max-width: 1120px;
  gap: 58px;
}

.ap-register-card {
  padding: 30px;
}

.ap-register-form {
  gap: 16px;
}

.ap-register-form label > span:first-child,
.ap-register-phone-field > legend {
  line-height: 1.35;
}

.ap-field-optional {
  margin-left: 4px;
  color: #98a2b3;
  font-size: 10.5px;
  font-weight: 600;
}

.ap-register-contact-grid {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(0, 1.25fr);
  gap: 15px;
  align-items: start;
}

.ap-register-phone-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ap-register-phone-field > legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.ap-phone-input-group {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-width: 0;
}

.ap-auth-form .ap-phone-input-group select {
  min-width: 0;
  padding-left: 9px;
  padding-right: 6px;
  border-radius: 7px 0 0 7px;
  border-right: 0;
}

.ap-auth-form .ap-phone-input-group input {
  min-width: 0;
  border-radius: 0 7px 7px 0;
}

.ap-phone-input-group:focus-within {
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(29, 91, 215, .09);
}

.ap-phone-input-group:focus-within select,
.ap-phone-input-group:focus-within input {
  border-color: #8cb0ee;
  box-shadow: none;
}

.ap-field-help {
  display: block;
  margin-top: 6px;
  color: #7a8699;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
}

.ap-password-control {
  position: relative;
  display: block;
}

.ap-auth-form .ap-password-control input {
  padding-right: 78px;
}

.ap-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 62px;
  padding: 7px 8px;
  color: var(--ap-accent);
  background: #f4f7fb;
  border: 0;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.ap-password-toggle:hover {
  background: #eaf1ff;
}

.ap-password-strength {
  display: grid;
  gap: 6px;
  margin-top: -7px;
}

.ap-password-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.ap-password-strength-bars i {
  height: 3px;
  background: #e4e7ec;
  border-radius: 999px;
  transition: background-color .18s ease;
}

.ap-password-strength small {
  color: #7a8699;
  font-size: 10.5px;
  font-weight: 500;
}

.ap-password-strength small strong {
  color: #475467;
}

.ap-password-strength[data-strength="1"] .ap-password-strength-bars i:nth-child(-n+1) { background: #d92d20; }
.ap-password-strength[data-strength="2"] .ap-password-strength-bars i:nth-child(-n+2) { background: #dc6803; }
.ap-password-strength[data-strength="3"] .ap-password-strength-bars i:nth-child(-n+3) { background: #1570ef; }
.ap-password-strength[data-strength="4"] .ap-password-strength-bars i:nth-child(-n+4) { background: #079455; }

.ap-register-terms {
  margin-top: 1px;
}

.ap-register-submit {
  min-height: 46px;
}

.ap-register-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -4px 0 0;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.ap-register-security-note .ap-icon {
  flex: 0 0 auto;
  color: #079455;
}

.ap-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ap-check,
.ap-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  font-weight: 500 !important;
}

.ap-check input,
.ap-checkbox input {
  width: 16px !important;
  min-height: 16px !important;
  margin-top: 3px;
}

.ap-alert {
  margin-bottom: 17px;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 12px;
}

.ap-alert-error {
  color: #a92f38;
  background: #fff0f1;
  border: 1px solid #ffd3d6;
}

.ap-alert-success {
  color: #137040;
  background: #edf9f2;
  border: 1px solid #c7ecd7;
}

.ap-alert-info {
  color: #174f89;
  background: #edf5ff;
  border: 1px solid #cbe0fa;
}

/* Client dashboard */
.ap-client-area {
  padding: 28px 0 50px;
}

.ap-client-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ap-client-sidebar {
  position: sticky;
  top: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 12px;
}

.ap-client-user {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--ap-border);
}

.ap-client-user .ap-avatar {
  width: 43px;
  height: 43px;
}

.ap-client-user div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ap-client-user strong,
.ap-client-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-client-user small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-sidebar nav {
  padding: 10px;
}

.ap-client-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  color: #485468;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}

.ap-client-sidebar nav a:hover,
.ap-client-sidebar nav a.is-active {
  color: var(--ap-primary);
  background: #eef5ff;
}

.ap-client-sidebar nav a.ap-logout-link {
  margin-top: 8px;
  color: var(--ap-danger);
  border-top: 1px solid var(--ap-border);
  border-radius: 0;
}

.ap-client-main {
  min-width: 0;
}

.ap-client-main-head {
  min-height: 76px;
  margin-bottom: 19px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 12px;
}

.ap-client-main-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.ap-client-main-head p {
  margin: 3px 0 0;
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-client-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ap-client-kpis > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 11px;
  align-items: center;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 10px;
}

.ap-client-kpis > div > span {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 9px;
}

.ap-client-kpis strong {
  font-size: 21px;
  line-height: 1;
}

.ap-client-kpis small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.ap-client-panel,
.ap-onboarding-card {
  padding: 22px;
  margin-bottom: 18px;
}

.ap-onboarding-card {
  padding: 45px;
  text-align: center;
}

.ap-onboarding-card h2 {
  margin: 0 0 10px;
}

.ap-client-company-mini {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ap-client-company-mini img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid var(--ap-border);
  border-radius: 10px;
}

.ap-client-company-mini div {
  display: flex;
  flex-direction: column;
}

.ap-status-badge,
.ap-badge,
.ap-soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 10px;
  color: #38506c;
  background: #edf3fb;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

.ap-status-publish {
  color: #147442;
  background: #eaf8f0;
}

.ap-status-pending {
  color: #9b6200;
  background: #fff5dc;
}

.ap-status-ap_rejected,
.ap-status-ap_suspended {
  color: #a72d38;
  background: #fff0f1;
}

.ap-progress {
  height: 9px;
  overflow: hidden;
  background: #ecf0f5;
  border-radius: 999px;
}

.ap-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ap-accent), #4d8afb);
  border-radius: inherit;
}

.ap-client-company-form {
  display: grid;
  gap: 18px;
}

.ap-client-translation-help {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  padding: 10px 12px;
  color: #344054;
  background: #f7f9fc;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
}

.ap-client-translation-help > img,
.ap-field-language-indicator img,
.ap-translation-panel-head strong img,
.ap-translation-flag {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .12);
}

.ap-client-translation-help > div {
  display: grid;
  gap: 1px;
}

.ap-client-translation-help strong {
  font-size: 11px;
}

.ap-client-translation-help small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-translatable-field {
  min-width: 0;
}

.ap-form-section > .ap-translatable-field {
  margin-bottom: 15px;
}

.ap-translatable-field-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: start;
}

.ap-translatable-field-main > label {
  min-width: 0;
}

.ap-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.ap-field-language-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  color: #52606d;
  background: #f6f8fb;
  border: 1px solid #e1e6ee;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.ap-translation-toggle {
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin-top: 20px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  position: relative;
  color: #52606d !important;
  background: #fff !important;
  border: 1px solid #d4dce7 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  cursor: pointer;
}

.ap-translation-toggle:hover,
.ap-translation-toggle:focus-visible,
.ap-translation-toggle.is-open {
  color: var(--ap-primary) !important;
  border-color: var(--ap-primary) !important;
  outline: none;
}

.ap-translation-flag {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 18px;
  height: 12px;
  border: 2px solid #fff;
  box-sizing: content-box;
}

.ap-translation-toggle.has-translation::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: #16803a;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ap-translation-panel {
  margin-top: 9px;
  padding: 12px;
  background: #f7fbff;
  border: 1px solid #cddff3;
  border-left: 3px solid var(--ap-primary);
  border-radius: 8px;
}

.ap-translation-panel[hidden] {
  display: none !important;
}

.ap-translation-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ap-translation-panel-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #243b53;
  font-size: 11px;
}

.ap-translation-panel-head small {
  color: var(--ap-muted);
  font-size: 9px;
  text-align: right;
}

.ap-translation-panel label {
  margin: 0 !important;
}

.ap-form-section {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 11px;
}

.ap-form-section-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.ap-form-section-head > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ap-primary);
  border-radius: 50%;
  font-weight: 800;
}

.ap-form-section-head h2 {
  margin: 0;
  font-size: 18px;
}

.ap-form-section-head p {
  margin: 1px 0 0;
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-form-section > label,
.ap-form-section > .ap-field-grid {
  margin-bottom: 15px;
}

.ap-form-section em {
  color: var(--ap-danger);
  font-style: normal;
}

.ap-required-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  width: max-content;
  max-width: 100%;
}

.ap-required-label em {
  display: inline;
  flex: 0 0 auto;
  line-height: inherit;
}

.ap-input-prefix {
  display: flex;
  align-items: stretch;
}

.ap-input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--ap-muted);
  background: #f5f7fa;
  border: 1px solid #d4dce7;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  font-weight: 500;
}

.ap-input-prefix input {
  border-radius: 0 7px 7px 0 !important;
}

.ap-hours-table {
  overflow: hidden;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-hours-row {
  display: grid;
  grid-template-columns: 95px 1fr 1fr auto;
  gap: 13px;
  align-items: end;
  padding: 11px 13px;
  border-bottom: 1px solid var(--ap-border);
}

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

.ap-hours-row label span {
  color: var(--ap-muted);
  font-size: 9px;
}

.ap-hours-row input[type="time"] {
  min-height: 37px;
  padding: 7px 9px;
}

.ap-upload-card {
  padding: 13px;
  cursor: pointer;
  border: 1px dashed #b7c4d5;
  border-radius: 10px;
}

.ap-upload-preview {
  display: block;
  overflow: hidden;
  margin-bottom: 10px;
  background: #eef3f8;
  border-radius: 8px;
}

.ap-upload-preview img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ap-upload-logo img {
  object-fit: contain;
}

.ap-upload-card input {
  margin-top: 8px;
}

.ap-upload-card small,
.ap-file-field {
  color: var(--ap-muted);
  font-weight: 500;
}

.ap-existing-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.ap-existing-gallery label {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.ap-existing-gallery img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}

.ap-existing-gallery span {
  position: absolute;
  inset: auto 4px 4px 4px;
  padding: 4px;
  color: #fff;
  background: rgba(8, 24, 45, .76);
  border-radius: 4px;
  font-size: 9px;
}

.ap-client-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  box-shadow: 0 -8px 24px rgba(15, 40, 70, .08);
  backdrop-filter: blur(8px);
}

.ap-muted {
  color: var(--ap-muted);
}

.ap-seo-score-circle {
  --score: 0;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  align-content: center;
  background: conic-gradient(var(--ap-accent) calc(var(--score) * 1%), #e8edf4 0);
  border-radius: 50%;
  position: relative;
}

.ap-seo-score-circle:before {
  content: "";
  position: absolute;
  inset: 11px;
  background: #fff;
  border-radius: 50%;
}

.ap-seo-score-circle strong,
.ap-seo-score-circle span {
  position: relative;
  z-index: 1;
}

.ap-seo-score-circle strong {
  font-size: 28px;
}

.ap-seo-score-circle span {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-seo-checklist {
  display: grid;
  gap: 8px;
}

.ap-seo-checklist > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-seo-checklist > div.is-ok {
  color: var(--ap-success);
}

.ap-google-preview {
  padding: 17px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  box-shadow: 0 5px 14px rgba(15, 40, 70, .05);
}

.ap-google-preview small {
  display: block;
  margin-bottom: 4px;
  color: var(--ap-muted);
}

.ap-google-preview strong {
  display: block;
  color: #1a0dab;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}

.ap-google-preview > span {
  display: block;
  color: #146b35;
  font-size: 11px;
}

.ap-google-preview p {
  margin: 4px 0 0;
  color: #4d5156;
  font-size: 12px;
  line-height: 1.45;
}

.ap-client-message-list,
.ap-client-review-list {
  display: grid;
  gap: 12px;
}

.ap-client-message-list article,
.ap-client-review-list article {
  padding: 16px;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-client-message-list article.is-unread {
  background: #f3f7ff;
  border-left: 4px solid var(--ap-accent);
}

.ap-client-message-list header,
.ap-client-review-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ap-client-message-list header div,
.ap-client-review-list header div {
  display: flex;
  flex-direction: column;
}

.ap-client-message-list header span,
.ap-client-message-list time,
.ap-client-review-list small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-message-list footer {
  display: flex;
  gap: 15px;
}

.ap-client-message-list footer a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.ap-advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ap-advice-grid > div {
  padding: 17px;
  background: #f8fafc;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-advice-grid svg {
  color: var(--ap-accent);
}

.ap-advice-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.ap-advice-grid p {
  margin-bottom: 0;
  color: var(--ap-muted);
  font-size: 11px;
}

/* Public company page */
.ap-company-main {
  padding-bottom: 48px;
}

.ap-company-hero-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 11px;
  box-shadow: var(--ap-shadow-sm);
}

.ap-company-cover {
  height: 290px;
  overflow: hidden;
  background: #dfe7f0;
}

.ap-company-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-company-identity-row {
  position: relative;
  min-height: 192px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: 20px 34px 20px;
}

.ap-company-logo-large {
  width: 168px;
  height: 168px;
  margin-top: -88px;
  padding: 5px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d4dbe5;
  border-radius: 14px;
  box-shadow: none;
}

.ap-company-logo-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
}

.ap-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ap-title-line h1 {
  margin: 0;
  color: #101a2d;
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.ap-verified-badge-icon {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.ap-company-subtitle {
  margin: 3px 0 3px;
  color: var(--ap-muted);
  font-size: 14px;
}

.ap-company-rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.ap-company-rating-line a {
  color: var(--ap-muted);
}

.ap-company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.ap-soft-badge-green {
  color: #177342;
  background: #eaf8f0;
}

.ap-company-actions {
  display: grid;
  gap: 9px;
}

.ap-company-tabs {
  height: 59px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ap-border);
}

.ap-company-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #4b5668;
  font-size: 12px;
  font-weight: 650;
}

.ap-company-tabs a:after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2px;
  background: transparent;
}

.ap-company-tabs a:hover,
.ap-company-tabs a.is-active {
  color: var(--ap-primary);
}

.ap-company-tabs a.is-active:after {
  background: var(--ap-primary);
}

.ap-company-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.ap-company-content-column,
.ap-company-sidebar {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.ap-company-sidebar {
  position: sticky;
  top: 18px;
}

.ap-profile-card {
  padding: 24px;
  scroll-margin-top: 20px;
}

.ap-profile-card > h2 {
  margin-bottom: 15px;
}

.ap-profile-lead {
  color: #354156;
  font-size: 14px;
  font-weight: 600;
}

.ap-rich-content {
  color: #4e596b;
  font-size: 13px;
}

.ap-rich-content p:first-child {
  margin-top: 0;
}

.ap-company-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid var(--ap-border);
}

.ap-company-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 10px;
  align-items: center;
  padding: 5px 12px;
  border-right: 1px solid var(--ap-border);
}

.ap-company-facts > div:first-child {
  padding-left: 0;
}

.ap-company-facts > div:last-child {
  border-right: 0;
}

.ap-company-facts .ap-icon {
  width: 26px;
  height: 26px;
}

.ap-company-facts > div > span {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 50%;
}

.ap-company-facts strong {
  font-size: 18px;
  line-height: 1.1;
}

.ap-company-facts small {
  color: var(--ap-muted);
  font-size: 9px;
}

.ap-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.ap-service-grid article {
  padding: 15px;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-service-grid article > span {
  color: var(--ap-accent);
}

.ap-service-grid h3 {
  margin: 8px 0 5px;
  font-size: 13px;
  line-height: 1.3;
}

.ap-service-grid p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 10px;
  line-height: 1.5;
}

.ap-company-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 155px;
  gap: 13px;
}

.ap-company-gallery a {
  overflow: hidden;
  border-radius: 8px;
}

.ap-company-gallery a.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.ap-company-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.ap-company-gallery a:hover img {
  transform: scale(1.04);
}

.ap-gallery-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
  color: var(--ap-muted);
  background: #f4f7fa;
  border-radius: 8px;
}

.ap-gallery-empty img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  opacity: .78;
}

.ap-review-summary {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 20px;
  padding: 20px;
  background: #fbfcfe;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--ap-border);
}

.ap-review-score > strong {
  font-size: 45px;
  line-height: 1;
}

.ap-review-score > span {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-review-bars {
  display: grid;
  gap: 5px;
}

.ap-review-bars > div {
  display: grid;
  grid-template-columns: 34px 1fr 30px;
  gap: 8px;
  align-items: center;
  font-size: 10px;
}

.ap-review-bars i {
  height: 7px;
  overflow: hidden;
  background: #edf0f4;
  border-radius: 999px;
}

.ap-review-bars b {
  display: block;
  height: 100%;
  background: var(--ap-star);
  border-radius: inherit;
}

.ap-review-bars small {
  color: var(--ap-muted);
}

.ap-review-list {
  display: grid;
  gap: 12px;
}

.ap-review-list article {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-review-list header {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.ap-review-avatar {
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.ap-review-list header div {
  display: flex;
  flex-direction: column;
}

.ap-review-list time {
  color: var(--ap-muted);
  font-size: 9px;
}

.ap-review-list p {
  margin: 9px 0 0;
  color: #4a5566;
  font-size: 12px;
}

.ap-review-form-wrap {
  margin-top: 18px;
}

.ap-review-form-wrap summary {
  list-style: none;
  width: max-content;
}

.ap-review-form-wrap[open] summary {
  margin-bottom: 15px;
}

.ap-info-card,
.ap-map-card {
  padding: 20px;
}

.ap-info-row {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  color: #4b5668;
  writing-mode: horizontal-tb;
}

.ap-info-row > svg {
  grid-column: 1;
  grid-row: 1;
  margin-top: 2px;
  color: #63748a;
}

.ap-info-row > div {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  writing-mode: horizontal-tb;
}

.ap-info-row strong {
  display: block;
  color: #2a3547;
  font-size: 10px;
  line-height: 1.45;
  writing-mode: horizontal-tb;
}

.ap-info-row span,
.ap-info-row a {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  color: #4b5668;
  font-size: 11px;
  line-height: 1.55;
}

.ap-info-hours > div > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.ap-info-hours b {
  font-weight: 700;
}

.ap-social-buttons {
  margin-top: 6px;
}

.ap-social-buttons a {
  color: #fff;
  background: var(--ap-primary);
  border-color: var(--ap-primary);
}

.ap-map-placeholder {
  position: relative;
  overflow: hidden;
  margin-bottom: 11px;
  border-radius: 8px;
}

.ap-map-placeholder img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ap-map-placeholder > span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background: var(--ap-primary);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -60%) rotate(-45deg);
  box-shadow: 0 8px 18px rgba(15, 40, 70, .24);
}

.ap-map-placeholder > span svg {
  transform: rotate(45deg);
}

.ap-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ap-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Modal */
.ap-modal[hidden] {
  display: none;
}

.ap-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 35, .68);
  backdrop-filter: blur(3px);
}

.ap-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 27px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 30px 70px rgba(5, 18, 35, .35);
}

.ap-modal-dialog h2 {
  margin: 0 35px 5px 0;
  font-size: 23px;
}

.ap-modal-dialog > p {
  margin: 0 0 18px;
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 34px;
  height: 34px;
  color: var(--ap-text);
  background: #f2f5f8;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
}

body.ap-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .ap-header-search { display: none; }
  .ap-main-nav { gap: 17px; }
  .ap-home-hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .ap-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-company-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-company-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 13px; }
  .ap-company-facts > div:nth-child(2) { border-right: 0; }
  .ap-client-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ap-shell { width: min(calc(100% - 28px), var(--ap-shell)); }
  .ap-mobile-menu-button { display: inline-grid; place-items: center; }
  .ap-main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--ap-border);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--ap-shadow);
  }
  .ap-main-nav.is-open { display: flex; }
  .ap-main-nav > a { padding: 10px 12px; }
  .ap-main-nav .ap-account-link { width: 100%; border-radius: 7px; }
  .ap-main-nav .ap-language-picker { padding: 6px 12px; }
  .ap-main-nav .ap-language-picker-menu { position: static; margin-top: 6px; box-shadow: none; }
  .ap-home-hero-grid { grid-template-columns: 1fr; }
  .ap-home-hero-copy { order: 1; }
  .ap-home-hero-visual { order: 2; min-height: 330px; }
  .ap-home-hero-visual > img { min-height: 330px; }
  .ap-stats-grid, .ap-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-review-cta-grid { grid-template-columns: 1fr; }
  .ap-company-grid, .ap-company-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-latest-review-grid { grid-template-columns: 1fr; }
  .ap-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .ap-directory-search { grid-template-columns: 1fr 1fr; gap: 5px; }
  .ap-directory-search .ap-button { grid-column: span 2; }
  .ap-auth-grid { grid-template-columns: 1fr; gap: 30px; }
  .ap-auth-visual { display: none; }
  .ap-client-layout { grid-template-columns: 1fr; }
  .ap-client-sidebar { position: static; }
  .ap-client-sidebar nav { display: flex; overflow-x: auto; }
  .ap-client-sidebar nav a { min-width: max-content; }
  .ap-client-sidebar nav a.ap-logout-link { border-top: 0; }
  .ap-client-grid-2 { grid-template-columns: 1fr; }
  .ap-field-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-company-identity-row { grid-template-columns: 150px minmax(0, 1fr); }
  .ap-company-logo-large { width: 140px; height: 140px; }
  .ap-company-actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-company-layout { grid-template-columns: 1fr; }
  .ap-company-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-company-sidebar .ap-info-card { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body.annuaire-pro-page { font-size: 14px; }
  .ap-shell { width: min(calc(100% - 20px), var(--ap-shell)); }
  .ap-header-inner { min-height: 68px; }
  .ap-brand-mark { width: 38px; height: 38px; }
  .ap-brand-text strong { font-size: 15px; }
  .ap-home-hero { padding: 35px 0 28px; }
  .ap-home-hero-copy h1 { font-size: 36px; }
  .ap-home-hero-copy > p { font-size: 15px; }
  .ap-home-hero-visual { min-height: 260px; }
  .ap-home-hero-visual > img { min-height: 260px; }
  .ap-hero-floating-card { left: 12px; right: 12px; bottom: 12px; }
  .ap-hero-search, .ap-directory-search { grid-template-columns: 1fr; gap: 5px; }
  .ap-search-field { min-height: 45px; border: 0; border-bottom: 1px solid var(--ap-border); }
  .ap-hero-search .ap-button, .ap-directory-search .ap-button { grid-column: auto; }
  .ap-directory-search select { border: 0; border-bottom: 1px solid var(--ap-border); }
  .ap-stats-grid, .ap-benefits-grid, .ap-company-grid, .ap-company-grid-5, .ap-category-grid { grid-template-columns: 1fr; }
  .ap-stat-card { min-height: 90px; }
  .ap-category-card { min-height: 120px; }
  .ap-section-card { padding: 19px 15px; }
  .ap-section-heading { align-items: flex-end; }
  .ap-section-heading h2 { font-size: 18px; }
  .ap-section-heading > a { max-width: 110px; text-align: right; }
  .ap-company-card-cover { height: 175px; }
  .ap-company-card-logo { top: 139px; }
  .ap-footer-grid { grid-template-columns: 1fr; }
  .ap-footer-bottom .ap-shell { padding-block: 16px; flex-direction: column; align-items: flex-start; }
  .ap-footer-bottom span:last-child { flex-wrap: wrap; gap: 8px 14px; }
  .ap-directory-toolbar { align-items: flex-start; flex-direction: column; }
  .ap-auth-section { padding: 25px 0 45px; }
  .ap-auth-card { padding: 20px 16px; }
  .ap-register-card { padding: 22px 16px; }
  .ap-register-contact-grid { grid-template-columns: 1fr; }
  .ap-field-grid-2, .ap-field-grid-3, .ap-field-grid-4 { grid-template-columns: 1fr; }
  .ap-client-main-head { align-items: flex-start; flex-direction: column; }
  .ap-client-kpis { grid-template-columns: 1fr; }
  .ap-form-section { padding: 18px 14px; }
  .ap-client-translation-help { align-items: flex-start; }
  .ap-translatable-field-main { grid-template-columns: minmax(0, 1fr) 38px; }
  .ap-translation-panel-head { display: block; }
  .ap-translation-panel-head small { display: block; margin-top: 3px; text-align: left; }
  .ap-field-label-row { align-items: flex-start; }
  .ap-hours-row { grid-template-columns: 1fr 1fr; }
  .ap-hours-row > strong { grid-column: 1 / -1; }
  .ap-hours-row .ap-check { grid-column: 1 / -1; }
  .ap-existing-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-client-form-actions { flex-wrap: wrap; }
  .ap-advice-grid { grid-template-columns: 1fr; }
  .ap-company-main .ap-shell { width: 100%; }
  .ap-breadcrumbs { padding-inline: 14px; }
  .ap-company-hero-card { border-radius: 0; border-inline: 0; }
  .ap-company-cover { height: 210px; }
  .ap-company-identity-row { grid-template-columns: 95px minmax(0, 1fr); gap: 13px; padding: 15px; }
  .ap-company-logo-large { width: 95px; height: 95px; margin-top: -45px; }
  .ap-title-line h1 { font-size: 21px; }
  .ap-company-subtitle { font-size: 12px; }
  .ap-company-badges { grid-column: 1 / -1; }
  .ap-company-actions { grid-template-columns: 1fr; }
  .ap-company-tabs { height: auto; display: flex; overflow-x: auto; }
  .ap-company-tabs a { min-width: 125px; padding: 15px 10px; }
  .ap-company-layout { margin-top: 12px; padding-inline: 10px; }
  .ap-profile-card { padding: 18px 14px; }
  .ap-company-facts { grid-template-columns: 1fr 1fr; }
  .ap-company-facts > div { padding: 7px; }
  .ap-service-grid { grid-template-columns: 1fr; }
  .ap-company-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 125px; }
  .ap-company-gallery a.is-featured { grid-column: span 2; grid-row: span 2; }
  .ap-review-summary { grid-template-columns: 1fr; }
  .ap-review-score { padding-bottom: 15px; border-right: 0; border-bottom: 1px solid var(--ap-border); }
  .ap-review-list header { grid-template-columns: 38px 1fr; }
  .ap-review-list time { grid-column: 2; }
  .ap-company-sidebar { grid-template-columns: 1fr; }
  .ap-company-sidebar .ap-info-card { grid-column: auto; }
  .ap-modal { padding: 10px; }
  .ap-modal-dialog { padding: 22px 15px; }
}

.ap-map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
}

/* Defensive typography rules for company information cards. Some themes apply
   aggressive word-breaking or writing modes to sidebar links. */
body.annuaire-pro-company-page .ap-company-sidebar,
body.annuaire-pro-company-page .ap-info-card,
body.annuaire-pro-company-page .ap-info-row,
body.annuaire-pro-company-page .ap-info-row > div {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

body.annuaire-pro-company-page .ap-info-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: start !important;
  width: 100% !important;
}

body.annuaire-pro-company-page .ap-info-row > div {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.annuaire-pro-company-page .ap-info-row strong,
body.annuaire-pro-company-page .ap-info-row span,
body.annuaire-pro-company-page .ap-info-row a {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

/* Annuaire Pro 1.0.5: multi-company client workspace. */
.ap-client-user > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ap-primary), var(--ap-accent));
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

.ap-client-sidebar nav a b {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  color: #fff;
  background: var(--ap-accent);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.ap-client-company-mini {
  padding: 13px 14px;
  border-bottom: 1px solid var(--ap-border);
}

.ap-client-company-mini img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.ap-client-company-mini > div {
  min-width: 0;
  gap: 4px;
}

.ap-client-company-mini strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ap-client-company-mini a {
  color: var(--ap-accent);
  font-size: 10px;
  font-weight: 700;
}

.ap-client-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.ap-client-head-actions .ap-button {
  gap: 7px;
}

.ap-client-current-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-left: 4px solid var(--ap-accent);
  border-radius: 10px;
}

.ap-client-current-company > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-client-current-company img {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-client-current-company > div > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ap-client-current-company small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-current-company strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.ap-client-companies-head > div {
  min-width: 0;
}

.ap-client-companies-head p {
  margin: 4px 0 0;
  color: var(--ap-muted);
  font-size: 11px;
}

.ap-client-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.ap-client-company-card,
.ap-client-add-company-card {
  min-width: 0;
  min-height: 220px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 11px;
}

.ap-client-company-card {
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ap-client-company-card:hover {
  transform: translateY(-2px);
  border-color: #b8cae3;
  box-shadow: 0 12px 28px rgba(15, 40, 70, .08);
}

.ap-client-company-card.is-selected {
  border-color: var(--ap-accent);
  box-shadow: 0 0 0 3px rgba(29, 91, 215, .09);
}

.ap-client-company-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-client-company-card header img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-client-company-card header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.ap-client-company-card h3 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
}

.ap-client-company-card > p {
  min-height: 35px;
  margin: 15px 0;
  color: var(--ap-muted);
  font-size: 11px;
  line-height: 1.55;
}

.ap-client-company-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.ap-client-company-progress > span {
  height: 7px;
  overflow: hidden;
  background: #e8edf4;
  border-radius: 999px;
}

.ap-client-company-progress i,
.ap-progress i,
.ap-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ap-accent), #4d8afb);
  border-radius: inherit;
}

.ap-client-company-progress small {
  color: var(--ap-muted);
  font-size: 9px;
  white-space: nowrap;
}

.ap-client-company-card footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--ap-border);
}

.ap-client-company-card footer a {
  color: var(--ap-primary);
  font-size: 10px;
  font-weight: 750;
}

.ap-client-add-company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ap-primary);
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  border-style: dashed;
  border-color: #a9c4e7;
}

.ap-client-add-company-card:hover {
  color: var(--ap-primary);
  border-color: var(--ap-accent);
  background: #edf5ff;
}

.ap-client-add-company-card > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: var(--ap-accent);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(29, 91, 215, .2);
}

.ap-client-add-company-card strong {
  font-size: 14px;
}

.ap-client-add-company-card small {
  margin-top: 5px;
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-form-context,
.ap-client-company-context-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
  padding: 13px 15px;
  color: #36506f;
  background: #eef5ff;
  border: 1px solid #d7e6f8;
  border-radius: 10px;
}

.ap-client-form-context > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.ap-client-form-context > div > span,
.ap-client-company-context-label > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ap-accent);
  border-radius: 9px;
}

.ap-client-form-context > div > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ap-client-form-context strong {
  font-size: 13px;
}

.ap-client-form-context small {
  color: var(--ap-muted);
  font-size: 10px;
}

.ap-client-form-context > a {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
}

.ap-client-company-context-label {
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 750;
}

.ap-client-message-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ap-border);
}

.ap-client-message-row > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ap-primary);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.ap-client-message-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ap-client-message-row strong,
.ap-client-message-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-client-message-row small {
  color: var(--ap-muted);
  font-size: 10px;
}

/* Stronger theme isolation for the company facts and key-information card. */
body.annuaire-pro-company-page .ap-company-sidebar {
  width: 100% !important;
  max-width: 100% !important;
}

body.annuaire-pro-company-page .ap-info-card,
body.annuaire-pro-company-page .ap-info-card * {
  min-width: 0;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  letter-spacing: normal;
  word-spacing: normal;
}

body.annuaire-pro-company-page .ap-info-card > h2 {
  display: block !important;
  width: 100% !important;
  margin: 0 0 13px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
}

body.annuaire-pro-company-page .ap-info-row {
  column-gap: 10px !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

body.annuaire-pro-company-page .ap-info-row strong,
body.annuaire-pro-company-page .ap-info-row span,
body.annuaire-pro-company-page .ap-info-row a {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  hyphens: manual !important;
}

body.annuaire-pro-company-page .ap-company-facts > div > span {
  flex: 0 0 40px;
}

body.annuaire-pro-company-page .ap-company-facts .ap-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: currentColor !important;
}

@media (max-width: 900px) {
  .ap-client-company-grid {
    grid-template-columns: 1fr;
  }

  .ap-client-sidebar nav {
    scrollbar-width: thin;
  }
}

@media (max-width: 640px) {
  .ap-client-head-actions,
  .ap-client-current-company,
  .ap-client-form-context {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .ap-client-head-actions .ap-button,
  .ap-client-current-company > .ap-button {
    width: 100%;
  }

  .ap-client-company-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ap-client-company-card,
  .ap-client-add-company-card {
    min-height: 0;
  }

  .ap-client-form-context > a {
    align-self: flex-start;
  }
}

/* Annuaire Pro 1.0.5: final theme-isolation layer for the public company sheet.
   It prevents external theme rules from collapsing the key-information column
   or hiding the trusted SVG pictograms. */
@media (min-width: 901px) {
  body.annuaire-pro-company-page .ap-company-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
    align-items: start !important;
  }

  body.annuaire-pro-company-page .ap-company-sidebar {
    display: grid !important;
    min-width: 320px !important;
    width: 100% !important;
  }
}

body.annuaire-pro-company-page .ap-info-card {
  width: 100% !important;
  max-width: none !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
}

body.annuaire-pro-company-page .ap-info-row {
  width: 100% !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
  overflow-wrap: normal !important;
}

body.annuaire-pro-company-page .ap-info-row > .ap-icon {
  grid-column: 1 !important;
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #63748a !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.annuaire-pro-company-page .ap-info-row > div {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
}

body.annuaire-pro-company-page .ap-info-row strong,
body.annuaire-pro-company-page .ap-info-row span,
body.annuaire-pro-company-page .ap-info-row a {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.annuaire-pro-company-page .ap-info-row a {
  overflow-wrap: anywhere !important;
}

body.annuaire-pro-company-page .ap-company-facts > div > span {
  width: 40px !important;
  height: 40px !important;
  display: grid !important;
  place-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.annuaire-pro-company-page .ap-company-facts .ap-icon {
  width: 26px !important;
  height: 26px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
}


/* Annuaire Pro 1.0.5 final company-profile hardening.
   These selectors intentionally outrank host-theme typography rules. */
body.annuaire-pro-company-page .ap-info-card > h2 {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

body.annuaire-pro-company-page .ap-info-card > h2 > span:last-child {
  min-width: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

body.annuaire-pro-company-page .ap-info-heading-icon {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: grid !important;
  place-items: center !important;
  color: var(--ap-accent) !important;
  background: var(--ap-accent-soft) !important;
  border-radius: 9px !important;
}

body.annuaire-pro-company-page .ap-info-heading-icon .ap-icon,
body.annuaire-pro-company-page .ap-info-row > .ap-icon,
body.annuaire-pro-company-page .ap-company-fact-icon .ap-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.annuaire-pro-company-page .ap-info-row,
body.annuaire-pro-company-page .ap-info-row > div,
body.annuaire-pro-company-page .ap-info-row strong,
body.annuaire-pro-company-page .ap-info-row span,
body.annuaire-pro-company-page .ap-info-row a {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  direction: ltr !important;
  unicode-bidi: normal !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

body.annuaire-pro-company-page .ap-info-row {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 0 !important;
}

body.annuaire-pro-company-page .ap-info-row > div {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.annuaire-pro-company-page .ap-info-row strong {
  width: auto !important;
  min-width: max-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

body.annuaire-pro-company-page .ap-info-row span {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
}

body.annuaire-pro-company-page .ap-info-row a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: manual !important;
}

body.annuaire-pro-company-page .ap-company-fact {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
}

body.annuaire-pro-company-page .ap-company-fact-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--ap-accent) !important;
  background: var(--ap-accent-soft) !important;
  border-radius: 50% !important;
}

body.annuaire-pro-company-page .ap-company-fact strong,
body.annuaire-pro-company-page .ap-company-fact small {
  grid-column: 2 !important;
  display: block !important;
  min-width: 0 !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

@media (min-width: 901px) {
  body.annuaire-pro-company-page .ap-company-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 370px) !important;
  }

  body.annuaire-pro-company-page .ap-company-sidebar {
    min-width: 340px !important;
  }
}

@media (max-width: 520px) {
  body.annuaire-pro-company-page .ap-info-card > h2 {
    white-space: normal !important;
  }

  body.annuaire-pro-company-page .ap-info-card > h2 > span:last-child {
    white-space: normal !important;
  }

  body.annuaire-pro-company-page .ap-company-facts {
    grid-template-columns: 1fr !important;
  }

  body.annuaire-pro-company-page .ap-company-fact {
    padding: 11px 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--ap-border) !important;
  }

  body.annuaire-pro-company-page .ap-company-fact:last-child {
    border-bottom: 0 !important;
  }
}

/* Annuaire Pro 1.0.6: configurable branding, social logos and wider client workspace. */
.ap-brand-mark.has-logo {
  overflow: hidden;
  padding: 3px;
  color: var(--ap-primary);
  background: #fff;
  border: 1px solid var(--ap-border);
  box-shadow: 0 6px 16px rgba(7, 59, 113, .12);
}

.ap-brand-mark.has-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.ap-brand-light .ap-brand-mark.has-logo {
  background: #fff;
  border-color: rgba(255, 255, 255, .35);
}

body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons {
  width: auto !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin-top: 8px;
}

body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: none;
}

body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a:focus-visible {
  outline: 3px solid rgba(29, 91, 215, .28);
  outline-offset: 3px;
}

body.annuaire-pro-company-page .ap-social-link-facebook {
  background: #1877f2 !important;
}

body.annuaire-pro-company-page .ap-social-link-linkedin {
  background: #0a66c2 !important;
}

body.annuaire-pro-company-page .ap-social-link-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045) !important;
}

body.annuaire-pro-company-page .ap-social-link-youtube {
  background: #ff0000 !important;
}

body.annuaire-pro-company-page .ap-social-icon {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  flex: 0 0 19px !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: currentColor !important;
}

@media (min-width: 901px) {
  body.ap-dashboard-page .ap-client-layout {
    width: min(calc(100% - 48px), 1480px);
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  body.ap-dashboard-page .ap-client-sidebar {
    height: calc(100vh - 112px);
    min-height: 520px;
    max-height: 820px;
    display: flex;
    flex-direction: column;
  }

  body.ap-dashboard-page .ap-client-sidebar nav {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  body.ap-dashboard-page .ap-client-sidebar nav .ap-logout-link {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: auto;
    padding-top: 13px;
    color: var(--ap-danger);
    background: #fff;
    border-top: 1px solid var(--ap-border);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 -8px 14px rgba(255, 255, 255, .92);
  }

  body.ap-dashboard-page .ap-client-main {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 900px) {
  body.ap-dashboard-page .ap-client-layout {
    width: min(calc(100% - 28px), var(--ap-shell));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.ap-dashboard-page .ap-client-sidebar {
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
  }

  body.ap-dashboard-page .ap-client-sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.ap-dashboard-page .ap-client-sidebar nav .ap-logout-link {
    position: static;
    margin-top: 0;
    padding-top: 10px;
    border-top: 0;
    border-radius: 7px;
    box-shadow: none;
  }
}

/* Annuaire Pro 1.0.7: clean company profile, compact company manager and paid listing flow. */
body.annuaire-pro-company-page .ap-company-logo-large {
  box-shadow: none !important;
}

body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a,
body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a:hover,
body.annuaire-pro-company-page .ap-info-social-row .ap-social-buttons a:focus {
  box-shadow: none !important;
}

body.annuaire-pro-company-page .ap-company-actions .ap-button-primary,
body.annuaire-pro-company-page .ap-company-actions .ap-button-primary:hover,
body.annuaire-pro-company-page .ap-company-actions .ap-button-primary:focus,
body.annuaire-pro-company-page .ap-company-actions .ap-button-primary:focus-visible {
  box-shadow: none !important;
}

.ap-button-compact {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}

.ap-client-companies-panel {
  padding: 0;
  overflow: hidden;
}

.ap-client-companies-panel > .ap-client-panel-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ap-border);
}

.ap-client-companies-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ap-client-company-list {
  display: flex;
  flex-direction: column;
}

.ap-client-company-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 145px auto;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--ap-border);
  transition: background .16s ease, border-color .16s ease;
}

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

.ap-client-company-row:hover {
  background: #f9fbfe;
}

.ap-client-company-row.is-selected {
  background: #f4f8ff;
  box-shadow: inset 3px 0 0 var(--ap-accent);
}

.ap-client-company-row-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ap-client-company-row-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
}

.ap-client-company-row-info,
.ap-client-company-row-title {
  min-width: 0;
}

.ap-client-company-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ap-client-company-row-title h3 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ap-text);
  font-size: 14px;
  line-height: 1.3;
}

.ap-client-company-row-info p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ap-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-client-company-row-completion {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.ap-client-company-row-completion > span {
  height: 6px;
  overflow: hidden;
  background: #e9eef5;
  border-radius: 999px;
}

.ap-client-company-row-completion i {
  display: block;
  height: 100%;
  background: var(--ap-accent);
  border-radius: inherit;
}

.ap-client-company-row-completion small {
  color: var(--ap-muted);
  font-size: 10px;
  font-weight: 750;
  text-align: right;
}

.ap-client-company-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.ap-client-company-row-actions a {
  min-width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  color: #40516a;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}

.ap-client-company-row-actions a:hover {
  color: var(--ap-primary);
  background: #f1f6fd;
  border-color: #b9cae0;
  box-shadow: none;
}

.ap-client-company-row-actions a span {
  display: none;
}

.ap-client-payment-gate {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(250px, 320px);
  align-items: center;
  gap: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 13px;
}

.ap-client-payment-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--ap-accent);
  background: #edf4ff;
  border-radius: 14px;
}

.ap-client-payment-copy h2 {
  margin: 5px 0 8px;
  color: var(--ap-text);
  font-size: 20px;
}

.ap-client-payment-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--ap-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ap-client-payment-copy .ap-alert {
  margin: 14px 0 0;
}

.ap-client-payment-price {
  padding: 20px;
  text-align: center;
  background: #f8faff;
  border: 1px solid #e2e9f3;
  border-radius: 11px;
}

.ap-client-payment-price > small {
  display: block;
  margin-bottom: 4px;
  color: var(--ap-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ap-client-payment-price > strong {
  display: block;
  margin-bottom: 15px;
  color: var(--ap-primary);
  font-size: 28px;
  line-height: 1.15;
}

.ap-client-payment-price form,
.ap-client-payment-price .ap-button {
  width: 100%;
}

.ap-client-payment-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--ap-muted);
  font-size: 9.5px;
}

.ap-payment-confirmed {
  margin-bottom: 14px;
}

@media (min-width: 1180px) {
  .ap-client-company-row-actions a:first-child span,
  .ap-client-company-row-actions a:nth-child(2) span {
    display: inline;
  }
}

@media (max-width: 1050px) {
  .ap-client-company-row {
    grid-template-columns: minmax(220px, 1fr) 110px auto;
    gap: 12px;
  }

  .ap-client-payment-gate {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ap-client-payment-price {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .ap-client-companies-panel > .ap-client-panel-head {
    align-items: flex-start;
  }

  .ap-client-company-row {
    grid-template-columns: 1fr auto;
    padding: 13px;
  }

  .ap-client-company-row-main {
    grid-column: 1 / -1;
  }

  .ap-client-company-row-completion {
    min-width: 120px;
  }

  .ap-client-payment-gate {
    grid-template-columns: 1fr;
    padding: 19px;
  }

  .ap-client-payment-icon,
  .ap-client-payment-price {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .ap-client-company-row {
    grid-template-columns: 1fr;
  }

  .ap-client-company-row-completion,
  .ap-client-company-row-actions {
    width: 100%;
  }

  .ap-client-company-row-actions {
    justify-content: flex-start;
  }

  .ap-client-company-row-actions a {
    flex: 1 1 0;
  }

  .ap-client-company-row-actions a span {
    display: inline;
  }
}


/* Annuaire Pro 1.0.8: functional multi-company switcher. */
.ap-client-company-switcher {
  width: 100%;
  margin-top: 2px;
}

.ap-client-company-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: var(--ap-accent);
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.ap-client-company-switcher summary::-webkit-details-marker {
  display: none;
}

.ap-client-company-switcher summary::after {
  content: '▾';
  font-size: 9px;
  transition: transform .15s ease;
}

.ap-client-company-switcher[open] summary::after {
  transform: rotate(180deg);
}

.ap-client-company-switcher-list {
  display: grid;
  gap: 4px;
  max-height: 245px;
  margin-top: 8px;
  padding: 6px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(7, 59, 113, .08);
  scrollbar-width: thin;
}

.ap-client-company-switcher-list > a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  color: var(--ap-text, #18324b);
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
}

.ap-client-company-switcher-list > a:hover,
.ap-client-company-switcher-list > a:focus-visible {
  background: #f5f8fd;
  border-color: var(--ap-border);
}

.ap-client-company-switcher-list > a.is-current {
  background: #eef5ff;
  border-color: rgba(29, 91, 215, .18);
}

.ap-client-company-switcher-list > a > img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 2px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 6px;
}

.ap-client-company-switcher-list > a > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ap-client-company-switcher-list > a strong {
  overflow: hidden;
  color: #17324d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.ap-client-company-switcher-list > a small {
  color: var(--ap-muted, #6b7f93);
  font-size: 9px;
}

/* Annuaire Pro 1.0.9: active-company identity, company search and modal switcher. */
.ap-client-active-company {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  margin-bottom: 8px;
  background: #f8faff;
  border: 1px solid #e2e9f3;
  border-radius: 11px;
}

.ap-client-active-company-logo,
.ap-client-active-company-placeholder {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  padding: 4px;
  object-fit: contain;
  color: var(--ap-accent);
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 10px;
}

.ap-client-active-company-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ap-client-active-company-copy > small {
  color: var(--ap-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.ap-client-active-company-copy > strong {
  overflow: hidden;
  color: var(--ap-text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-client-active-company-copy .ap-status-badge {
  width: max-content;
  max-width: 100%;
}

.ap-client-switch-company-button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  color: #39516b;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.ap-client-switch-company-button:hover,
.ap-client-switch-company-button:focus-visible {
  color: var(--ap-primary);
  background: #f6f9fd;
  border-color: #bdcce0;
  box-shadow: none;
}

.ap-client-switch-company-button span {
  flex: 1;
  text-align: left;
}

.ap-client-company-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 14px 18px 9px;
  padding: 0 12px;
  min-height: 43px;
  color: #75879a;
  background: #f8faff;
  border: 1px solid #dde6f1;
  border-radius: 9px;
}

.ap-client-company-search input {
  width: 100%;
  min-width: 0;
  height: 41px;
  padding: 0;
  color: var(--ap-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.ap-client-company-search input:focus {
  box-shadow: none;
}

.ap-client-company-search small {
  color: var(--ap-muted);
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}

.ap-client-company-row[hidden] {
  display: none !important;
}

.ap-client-company-filter-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 32px 20px;
  color: var(--ap-muted);
  text-align: center;
}

.ap-client-company-filter-empty[hidden] {
  display: none;
}

.ap-client-company-filter-empty strong {
  color: var(--ap-text);
  font-size: 13px;
}

.ap-client-company-filter-empty p {
  margin: 0;
  font-size: 11px;
}

.ap-company-switch-dialog {
  width: min(100%, 610px);
  padding: 24px;
  overflow: hidden;
}

/* Company switch: simple red SVG close icon, with no visible button block. */
.ap-company-switch-dialog-head {
  position: relative;
  padding-right: 34px;
}

.ap-company-switch-dialog > .ap-company-switch-close {
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 2px;
  color: #dc2626;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ap-company-switch-dialog > .ap-company-switch-close:hover,
.ap-company-switch-dialog > .ap-company-switch-close:focus-visible {
  color: #b91c1c;
  background: transparent !important;
  box-shadow: none !important;
}

.ap-company-switch-dialog > .ap-company-switch-close .ap-icon {
  display: block;
  width: 24px;
  height: 24px;
  stroke-width: 2.35;
}

.ap-company-switch-dialog-head h2 {
  margin: 3px 0 5px;
  color: var(--ap-text);
  font-size: 22px;
}

.ap-company-switch-dialog-head p {
  margin: 0 0 16px;
  color: var(--ap-muted);
  font-size: 11.5px;
}

.ap-company-switch-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 12px;
  color: #718499;
  background: #f8faff;
  border: 1px solid #dce5f0;
  border-radius: 9px;
}

.ap-company-switch-search input {
  width: 100%;
  height: 41px;
  padding: 0;
  color: var(--ap-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.ap-company-switch-list {
  display: grid;
  gap: 5px;
  max-height: min(420px, 52vh);
  margin-top: 11px;
  padding-right: 3px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ap-company-switch-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ap-text);
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 9px;
  text-decoration: none;
}

.ap-company-switch-item[hidden] {
  display: none !important;
}

.ap-company-switch-item:hover,
.ap-company-switch-item:focus-visible {
  color: var(--ap-primary);
  background: #f7faff;
  border-color: #bcd0e8;
}

.ap-company-switch-item.is-current {
  background: #eef5ff;
  border-color: rgba(29, 91, 215, .22);
}

.ap-company-switch-item img {
  width: 42px;
  height: 42px;
  padding: 3px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
}

.ap-company-switch-item > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ap-company-switch-item strong,
.ap-company-switch-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-company-switch-item strong {
  color: inherit;
  font-size: 12px;
}

.ap-company-switch-item small {
  color: var(--ap-muted);
  font-size: 9.5px;
}

.ap-company-switch-item em {
  padding: 4px 7px;
  color: var(--ap-accent);
  background: rgba(29, 91, 215, .08);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.ap-company-switch-empty[hidden] {
  display: none;
}

.ap-company-switch-empty {
  padding: 18px 8px 8px;
  color: var(--ap-muted);
  text-align: center;
  font-size: 11px;
}

.ap-company-switch-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 13px;
  color: var(--ap-accent);
  border-top: 1px solid var(--ap-border);
  font-size: 10.5px;
  font-weight: 800;
}

@media (max-width: 600px) {
  .ap-client-company-search {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .ap-client-company-search small {
    display: none;
  }

  .ap-company-switch-dialog {
    padding: 20px 14px 15px;
  }

  .ap-company-switch-dialog-head {
    padding-right: 32px;
  }

  .ap-company-switch-dialog > .ap-company-switch-close {
    top: 14px;
    right: 14px;
  }

  .ap-company-switch-list {
    max-height: 55vh;
  }
}


/* Annuaire Pro 1.0.10: opening-hours spacing, paid reindexation CTA and shadow cleanup. */
body.annuaire-pro-company-page .ap-info-hours > div > span {
  grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 4px;
  align-items: baseline;
}

body.annuaire-pro-company-page .ap-info-hours > div > span b {
  display: inline-block;
  min-width: 0;
  padding-right: 2px;
  white-space: nowrap;
}

.ap-add-company-button,
.ap-add-company-button:hover,
.ap-add-company-button:focus,
.ap-add-company-button:focus-visible {
  box-shadow: none !important;
}

.ap-client-reindex-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 18px;
  background: #f8fbff;
  border: 1px solid #dce8f5;
  border-radius: 10px;
}

.ap-client-reindex-card > div:first-child {
  min-width: 0;
}

.ap-client-reindex-card h3,
.ap-client-reindex-card h2 {
  margin: 0 0 5px;
  color: var(--ap-primary);
}

.ap-client-reindex-card p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 12px;
  line-height: 1.55;
}

.ap-client-reindex-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ap-client-reindex-action form {
  margin: 0;
}

.ap-client-reindex-action small {
  color: var(--ap-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.ap-client-reindex-pending {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #8a5a00;
  background: #fff8e8;
  border: 1px solid #f2d999;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 640px) {
  body.annuaire-pro-company-page .ap-info-hours > div > span {
    grid-template-columns: minmax(76px, max-content) minmax(0, 1fr);
    column-gap: 12px;
  }

  .ap-client-reindex-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ap-client-reindex-action {
    align-items: stretch;
  }

  .ap-client-reindex-action .ap-button {
    width: 100%;
  }
}


.ap-client-creation-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #7b5a13;
  background: #fff8e6;
  border: 1px solid #eed49c;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.ap-business-cta-closed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}


/* Annuaire Pro 1.0.11: reindex action in the professional header and glow-free priority CTAs. */
.ap-site-header .ap-header-cta,
.ap-site-header .ap-header-cta:hover,
.ap-site-header .ap-header-cta:focus,
.ap-site-header .ap-header-cta:focus-visible,
.ap-complete-company-button,
.ap-complete-company-button:hover,
.ap-complete-company-button:focus,
.ap-complete-company-button:focus-visible,
.ap-client-reindex-button,
.ap-client-reindex-button:hover,
.ap-client-reindex-button:focus,
.ap-client-reindex-button:focus-visible {
  box-shadow: none !important;
}

.ap-client-reindex-head-form {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.ap-client-reindex-head-price {
  min-width: max-content;
  padding: 5px 7px;
  color: var(--ap-primary);
  background: #eef5ff;
  border: 1px solid #d7e5f6;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.ap-client-reindex-head-status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #8a5a00;
  background: #fff8e8;
  border: 1px solid #f0d795;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.ap-client-reindex-head-status.is-disabled {
  color: #66758a;
  background: #f6f8fb;
  border-color: #e1e7ef;
}

.ap-client-message-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ap-text);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ap-client-reindex-head-form {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .ap-client-reindex-head-form .ap-button,
  .ap-client-reindex-head-status {
    width: 100%;
  }

  .ap-client-reindex-head-price {
    align-self: flex-start;
  }
}

/* Annuaire Pro 1.0.11: compact, structured client inbox. */
.ap-client-messages-panel {
  overflow: hidden;
}

.ap-client-message-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--ap-border);
}

.ap-client-message-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ap-client-message-table th,
.ap-client-message-table td {
  padding: 13px 14px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--ap-border);
}

.ap-client-message-table th {
  color: #66758a;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.ap-client-message-table th:nth-child(1) { width: 24%; }
.ap-client-message-table th:nth-child(2) { width: 43%; }
.ap-client-message-table th:nth-child(3) { width: 15%; }
.ap-client-message-table th:nth-child(4) { width: 18%; }

.ap-client-message-table tbody tr.is-unread td:first-child {
  box-shadow: inset 3px 0 0 var(--ap-accent);
}

.ap-client-message-sender strong,
.ap-client-message-sender small {
  display: block;
}

.ap-client-message-sender strong {
  color: var(--ap-text);
  font-size: 12px;
}

.ap-client-message-sender small {
  margin-top: 4px;
  color: var(--ap-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.ap-client-message-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.ap-client-message-details summary::-webkit-details-marker {
  display: none;
}

.ap-client-message-details summary strong {
  min-width: 0;
  color: var(--ap-primary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-client-message-details summary span {
  min-width: max-content;
  color: var(--ap-accent);
  font-size: 9.5px;
  font-weight: 800;
}

.ap-client-message-details > div {
  margin-top: 9px;
  padding: 10px 11px;
  color: #536277;
  background: #f8fafc;
  border: 1px solid var(--ap-border);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.6;
}

/* Annuaire Pro 1.0.12: embedded Stripe payments and clean reindex CTA. */
.ap-client-reindex-button,
.ap-client-reindex-button:hover,
.ap-client-reindex-button:focus,
.ap-client-reindex-button:focus-visible,
.ap-company-payment-button,
.ap-company-payment-button:hover,
.ap-company-payment-button:focus,
.ap-company-payment-button:focus-visible {
  box-shadow: none !important;
  filter: none !important;
}

.ap-payment-dialog {
  width: min(100%, 660px);
  padding: 30px;
  box-shadow: 0 24px 60px rgba(5, 18, 35, .22);
}

/* SEO reindex modal: simple red X with no visible close-button block. */
#ap-reindex-payment-modal .ap-reindex-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 2px;
  color: #dc2626;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  box-shadow: none !important;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#ap-reindex-payment-modal .ap-reindex-modal-close:hover,
#ap-reindex-payment-modal .ap-reindex-modal-close:focus,
#ap-reindex-payment-modal .ap-reindex-modal-close:focus-visible {
  color: #b91c1c;
  background: transparent !important;
  border: 0 !important;
  outline: 0;
  box-shadow: none !important;
}

#ap-reindex-payment-modal .ap-reindex-modal-close .ap-icon {
  display: block;
  width: 24px;
  height: 24px;
  stroke-width: 2.35;
}

.ap-payment-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--ap-accent);
  background: #edf4ff;
  border: 1px solid #dce9fa;
  border-radius: 12px;
}

.ap-payment-intro > p,
.ap-payment-stage-head > p {
  margin: 8px 0 18px;
  color: var(--ap-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.ap-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  padding: 14px 16px;
  background: #f7f9fc;
  border: 1px solid #e2e9f2;
  border-radius: 10px;
}

.ap-payment-summary span {
  color: #526177;
  font-size: 11.5px;
  font-weight: 700;
}

.ap-payment-summary strong {
  color: var(--ap-primary);
  font-size: 20px;
  white-space: nowrap;
}

.ap-payment-intro-feedback,
.ap-payment-feedback {
  min-height: 0;
  margin: 10px 0 0;
}

.ap-payment-intro-feedback:empty,
.ap-payment-feedback:empty {
  display: none;
}

.ap-payment-stage-head small {
  display: inline-flex;
  margin: -7px 0 16px;
  padding: 5px 8px;
  color: #526177;
  background: #f4f7fa;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.ap-embedded-payment-form {
  margin: 0;
}

.ap-stripe-payment-element {
  min-height: 88px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
}

.ap-payment-security-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.ap-payment-security-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.ap-payment-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.ap-payment-modal-actions .ap-button {
  box-shadow: none !important;
}

@media (max-width: 560px) {
  .ap-payment-dialog {
    padding: 24px 17px;
  }

  #ap-reindex-payment-modal .ap-reindex-modal-close {
    top: 13px;
    right: 13px;
  }

  .ap-payment-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ap-payment-modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .ap-payment-modal-actions .ap-button {
    width: 100%;
  }
}


/* Annuaire Pro 1.0.15: flat client workspace and header, without external glow. */
body.ap-dashboard-page .ap-client-area *,
body.ap-dashboard-page .ap-client-area *::before,
body.ap-dashboard-page .ap-client-area *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

body.ap-dashboard-page .ap-client-area a:focus-visible,
body.ap-dashboard-page .ap-client-area button:focus-visible,
body.ap-dashboard-page .ap-client-area input:focus-visible,
body.ap-dashboard-page .ap-client-area textarea:focus-visible,
body.ap-dashboard-page .ap-client-area select:focus-visible,
.ap-site-header a:focus-visible,
.ap-site-header button:focus-visible,
.ap-site-header input:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: 2px;
}

.ap-site-header,
.ap-site-header .ap-brand-mark,
.ap-site-header .ap-header-cta,
.ap-site-header .ap-header-search,
.ap-site-header .ap-header-search:focus-within {
  box-shadow: none !important;
  text-shadow: none !important;
}


/* Annuaire Pro 1.0.16: amount first, payment at final submission. */
.ap-client-payment-notice {
  margin-bottom: 16px;
}

.ap-client-payment-notice .ap-client-payment-price {
  padding: 15px 18px;
}

.ap-client-payment-notice .ap-client-payment-price > strong {
  margin-bottom: 8px;
  font-size: 23px;
}

.ap-payment-setup-note {
  margin: -4px 0 16px;
}

body.ap-dashboard-page .ap-payment-dialog,
body.ap-dashboard-page .ap-payment-dialog *,
body.ap-dashboard-page .ap-client-payment-notice,
body.ap-dashboard-page .ap-client-payment-notice * {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* 1.0.18 - Inline alerts and public contact CAPTCHA */
.ap-alert {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ap-alert > svg {
  flex: 0 0 auto;
  align-self: center;
  margin: 0;
}

.ap-alert > span,
.ap-alert > div {
  min-width: 0;
}

.ap-contact-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 14px 15px;
  background: #f8fafc;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
}

.ap-contact-captcha > div {
  display: grid;
  gap: 3px;
}

.ap-contact-captcha > div strong {
  color: var(--ap-text);
  font-size: 12px;
}

.ap-contact-captcha > div small {
  color: var(--ap-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ap-contact-captcha > label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ap-text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ap-contact-captcha input[type="number"] {
  width: 72px;
  min-height: 36px;
  padding: 6px 8px;
  text-align: center;
}

@media (max-width: 640px) {
  .ap-contact-captcha {
    grid-template-columns: 1fr;
  }

  .ap-contact-captcha > label {
    justify-content: space-between;
    white-space: normal;
  }
}


/* Annuaire Pro 1.0.20: CAPTCHA visible immediately, including under aggressive theme CSS. */
body.ap-company-profile-page .ap-contact-captcha,
body.annuaire-pro-company-page .ap-contact-captcha {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body.ap-company-profile-page .ap-contact-captcha > *,
body.annuaire-pro-company-page .ap-contact-captcha > * {
  visibility: visible !important;
  opacity: 1 !important;
}

.ap-contact-captcha-refresh {
  grid-column: 1 / -1;
  justify-self: start;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ap-accent);
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none !important;
  text-shadow: none !important;
}

.ap-contact-captcha-refresh:disabled {
  cursor: wait;
  opacity: .55 !important;
}

/* 1.0.20 - Strong compatibility layer for cached/theme-overridden contact forms. */
#ap-contact-modal form .ap-contact-captcha,
#ap-contact-modal form [data-ap-contact-captcha] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px 18px !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 100% !important;
  min-height: 72px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 14px 15px !important;
  box-sizing: border-box !important;
}

#ap-contact-modal form .ap-contact-captcha > div,
#ap-contact-modal form .ap-contact-captcha > label,
#ap-contact-modal form .ap-contact-captcha [data-ap-captcha-question],
#ap-contact-modal form .ap-contact-captcha input[name="captcha_answer"],
#ap-contact-modal form .ap-contact-captcha .ap-contact-captcha-refresh {
  visibility: visible !important;
  opacity: 1 !important;
}

#ap-contact-modal form .ap-contact-captcha > label {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 !important;
}

#ap-contact-modal form .ap-contact-captcha [data-ap-captcha-question] {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  overflow: visible !important;
  white-space: normal !important;
}

#ap-contact-modal form .ap-contact-captcha input[name="captcha_answer"] {
  display: block !important;
  position: static !important;
  width: 78px !important;
  min-width: 78px !important;
  min-height: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  clip: auto !important;
  overflow: visible !important;
}

@media (max-width: 640px) {
  #ap-contact-modal form .ap-contact-captcha,
  #ap-contact-modal form [data-ap-contact-captcha] {
    grid-template-columns: 1fr !important;
  }
}

/* Annuaire Pro 1.0.21: visible correction brief inside the client workspace. */
.ap-client-reindex-head-status.is-correction {
  color: #8a3f16;
  background: #fff6ef;
  border-color: #efc6aa;
}

.ap-client-correction-request {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 18px;
  padding: 17px 18px;
  background: #fffaf5;
  border: 1px solid #efd7c3;
  border-radius: 12px;
  box-shadow: none !important;
}

.ap-client-correction-request-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #9a4a17;
  background: #fff;
  border: 1px solid #efd7c3;
  border-radius: 10px;
  box-shadow: none !important;
}

.ap-client-correction-request-body {
  min-width: 0;
}

.ap-client-correction-request h2 {
  margin: 3px 0 10px;
  color: var(--ap-text);
  font-size: 17px;
  line-height: 1.3;
}

.ap-client-correction-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #344054;
  background: #fff;
  border: 1px solid #eadfd5;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: none !important;
}

.ap-client-correction-payment {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 13px;
  color: #336247;
  font-size: 11px;
  font-weight: 700;
}

.ap-client-correction-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.ap-client-correction-actions form {
  margin: 0;
}

@media (max-width: 640px) {
  .ap-client-correction-request {
    grid-template-columns: 1fr;
  }

  .ap-client-correction-actions,
  .ap-client-correction-actions form,
  .ap-client-correction-actions .ap-button {
    width: 100%;
  }
}

/* Annuaire Pro 1.0.22: correction resubmitted and under review. */
.ap-client-reindex-head-status.is-reviewing {
  color: #2457a6;
  background: #f3f7ff;
  border-color: #cbdaf7;
}

.ap-client-review-pending {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 18px;
  padding: 17px 18px;
  color: #344054;
  background: #f6f9ff;
  border: 1px solid #d6e2f6;
  border-radius: 12px;
  box-shadow: none !important;
}

.ap-client-review-pending-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #2457a6;
  background: #fff;
  border: 1px solid #d6e2f6;
  border-radius: 10px;
  box-shadow: none !important;
}

.ap-client-review-pending h2 {
  margin: 3px 0 7px;
  color: var(--ap-text);
  font-size: 17px;
  line-height: 1.3;
}

.ap-client-review-pending p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .ap-client-review-pending {
    grid-template-columns: 1fr;
  }
}

/* 1.0.29 - Isolated professional e-mail verification screen */
.ap-verification-section {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 44px 0 64px;
}

.ap-verification-grid {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  gap: 0;
  max-width: 620px;
}

.ap-verification-card {
  width: 100%;
  border-color: #d8e2f0;
}

.ap-verification-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ap-verification-head > span,
.ap-verification-state-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ap-accent);
  background: #eef4ff;
  border: 1px solid #d5e2fb;
  border-radius: 10px;
}

.ap-verification-state-icon.is-success {
  color: #137040;
  background: #edf9f2;
  border-color: #c7ecd7;
}

.ap-verification-recipient {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #e0e7f0;
  border-radius: 9px;
}

.ap-verification-recipient > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ap-accent);
  background: #edf4ff;
  border-radius: 8px;
}

.ap-verification-recipient div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ap-verification-recipient small {
  color: var(--ap-muted);
  font-size: 11px;
  font-weight: 600;
}

.ap-verification-recipient strong {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-verification-code-label {
  gap: 8px !important;
}

.ap-verification-code-field {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cbd7e7;
  border-radius: 9px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.ap-verification-code-field:focus-within {
  border-color: #8cb0ee;
  box-shadow: 0 0 0 3px rgba(29, 91, 215, .09);
}

.ap-verification-code-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 54px;
  padding: 0 14px;
  color: #174ea6;
  background: #eef4ff;
  border-right: 1px solid #cbd7e7;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .04em;
}

.ap-auth-form .ap-verification-code-field input {
  min-width: 0;
  min-height: 54px;
  height: 54px;
  padding: 9px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: .18em;
  text-align: center;
}

.ap-auth-form .ap-verification-code-field input:focus {
  border: 0;
  box-shadow: none !important;
}

.ap-verification-help {
  margin: -4px 0 2px;
  color: var(--ap-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.ap-verification-resend-form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
  color: var(--ap-muted);
  font-size: 12px;
}

.ap-verification-resend-button {
  margin: 0;
  padding: 0;
  color: var(--ap-accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ap-verification-resend-button:focus-visible {
  outline: 2px solid var(--ap-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.ap-verification-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 2px;
  text-align: center;
}

.ap-verification-state h3 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 19px;
}

.ap-verification-state p {
  margin: 0 0 8px;
  color: var(--ap-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .ap-verification-section {
    min-height: calc(100vh - 68px);
    padding: 24px 0 38px;
  }

  .ap-verification-card {
    padding: 22px 17px;
  }

  .ap-verification-code-prefix {
    min-width: 66px;
    padding: 0 11px;
    font-size: 19px;
  }

  .ap-auth-form .ap-verification-code-field input {
    padding-inline: 9px;
    font-size: 20px;
    letter-spacing: .13em;
  }
}

/* Annuaire Pro 1.0.30: isolated owner-invitation journey. */
.ap-owner-invite-page {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fb;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ap-owner-invite-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
  box-sizing: border-box;
}

.ap-owner-invite-card {
  width: min(100%, 620px);
  padding: 32px;
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: none;
  box-sizing: border-box;
}

.ap-owner-invite-brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf4;
}

.ap-owner-invite-brand img {
  display: block;
  max-width: 165px;
  max-height: 52px;
  width: auto;
  height: auto;
}

.ap-owner-invite-brand strong {
  color: #073b71;
  font-size: 21px;
}

.ap-owner-invite-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #49647f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ap-owner-invite-card h1 {
  margin: 0 0 12px;
  color: #073b71;
  font-size: clamp(25px, 5vw, 34px);
  line-height: 1.18;
}

.ap-owner-invite-lead {
  margin: 0 0 24px;
  color: #5f6d7d;
  font-size: 15px;
  line-height: 1.7;
}

.ap-owner-invite-company {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
}

.ap-owner-invite-company > img,
.ap-owner-invite-company > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  object-fit: cover;
  border-radius: 10px;
  background: #edf3fa;
  color: #245d96;
}

.ap-owner-invite-company strong,
.ap-owner-invite-company small {
  display: block;
}

.ap-owner-invite-company strong {
  margin-bottom: 4px;
  color: #172033;
  font-size: 16px;
}

.ap-owner-invite-company small {
  color: #748196;
  font-size: 12px;
}


/* Annuaire Pro 1.0.54: clear owner-claim journey. */
.ap-owner-invite-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ap-owner-invite-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  background: #fbfcfe;
  border: 1px solid #e7ecf3;
  border-radius: 10px;
}

.ap-owner-invite-step > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1d5bd7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.ap-owner-invite-step strong,
.ap-owner-invite-step small {
  display: block;
}

.ap-owner-invite-step strong {
  color: #24364b;
  font-size: 13px;
  line-height: 1.4;
}

.ap-owner-invite-step small {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.ap-owner-invite-consent {
  margin: 16px 0 0;
  padding: 11px 12px;
  color: #667085;
  background: #f8fafc;
  border-left: 3px solid #98a2b3;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
}

.ap-owner-invite-benefit,
.ap-owner-invite-register-summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  padding: 13px 14px;
  color: #165d42;
  background: #f0f9f5;
  border: 1px solid #ccebdd;
  border-radius: 10px;
}

.ap-owner-invite-benefit strong,
.ap-owner-invite-benefit small,
.ap-owner-invite-register-summary strong,
.ap-owner-invite-register-summary small {
  display: block;
}

.ap-owner-invite-benefit small,
.ap-owner-invite-register-summary small {
  margin-top: 3px;
  color: #587468;
  font-size: 12px;
  line-height: 1.5;
}

.ap-owner-invite-recipient {
  margin: 18px 0;
  color: #748196;
  font-size: 12px;
}

.ap-owner-invite-actions,
.ap-owner-invite-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.ap-owner-invite-actions form {
  margin: 0;
}

.ap-owner-invite-decline {
  width: 100%;
  padding: 11px 14px;
  color: #667085;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ap-owner-invite-state {
  display: grid;
  justify-items: center;
  gap: 11px;
  text-align: center;
  padding: 8px 0 2px;
}

.ap-owner-invite-state.compact {
  margin-top: 20px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
}

.ap-owner-invite-state h1,
.ap-owner-invite-state h2,
.ap-owner-invite-state p {
  margin: 0;
}

.ap-owner-invite-state h2 {
  color: #17324d;
  font-size: 18px;
}

.ap-owner-invite-state p {
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.ap-owner-invite-register-summary {
  margin-top: -2px;
  margin-bottom: 18px;
}

.ap-auth-form input[readonly] {
  color: #45566b;
  background: #f7f9fc;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .ap-owner-invite-shell { padding: 18px 12px; }
  .ap-owner-invite-card { padding: 24px 18px; border-radius: 13px; }
  .ap-owner-invite-company { grid-template-columns: 50px minmax(0, 1fr); }
  .ap-owner-invite-company > img,
  .ap-owner-invite-company > span { width: 50px; height: 50px; }
}


/* Owner-invited public listings: protect direct contact details until acceptance. */
.ap-info-row-masked .ap-contact-masked {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	border: 1px solid #e4e7ec;
	border-radius: 999px;
	background: #f8fafc;
	color: #667085;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .01em;
}


/* Annuaire Pro branded 404 page when the plugin template owns the site shell. */
.ap-404-main {
	min-height: 58vh;
	background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.ap-404-section {
	display: grid;
	place-items: center;
	padding-top: clamp(54px, 8vw, 96px);
	padding-bottom: clamp(62px, 9vw, 112px);
}

.ap-404-card {
	position: relative;
	width: min(100%, 760px);
	padding: clamp(30px, 5vw, 54px);
	text-align: center;
	background: #ffffff;
	border: 1px solid #e4eaf2;
	border-radius: 20px;
	overflow: hidden;
}

.ap-404-code {
	position: absolute;
	top: -42px;
	right: 18px;
	color: #eef4fb;
	font-size: clamp(118px, 22vw, 190px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.08em;
	user-select: none;
	pointer-events: none;
}

.ap-404-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	color: var(--ap-primary, #073b71);
	background: #eef5fc;
	border: 1px solid #dbe9f7;
	border-radius: 18px;
}

.ap-404-eyebrow {
	position: relative;
	margin: 0 0 8px;
	color: var(--ap-accent, #1d5bd7);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ap-404-card h1 {
	position: relative;
	max-width: 620px;
	margin: 0 auto 14px;
	color: #102a43;
	font-size: clamp(28px, 5vw, 42px);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.ap-404-lead {
	position: relative;
	max-width: 590px;
	margin: 0 auto;
	color: #667085;
	font-size: 16px;
	line-height: 1.7;
}

.ap-404-search {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	max-width: 610px;
	margin: 28px auto 0;
	padding: 7px 7px 7px 15px;
	background: #ffffff;
	border: 1px solid #dce4ee;
	border-radius: 13px;
	text-align: left;
}

.ap-404-search > span {
	display: grid;
	place-items: center;
	color: #7b8798;
}

.ap-404-search input {
	min-width: 0;
	min-height: 44px;
	padding: 0 4px;
	background: transparent;
	border: 0;
	outline: 0;
	font: inherit;
	color: #172033;
}

.ap-404-search .ap-button {
	min-height: 44px;
	white-space: nowrap;
}

.ap-404-suggestions {
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 12;
}

.ap-404-actions {
	position: relative;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

@media (max-width: 620px) {
	.ap-404-card {
		padding: 30px 18px;
		border-radius: 16px;
	}
	.ap-404-search {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 10px 12px;
	}
	.ap-404-search .ap-button {
		grid-column: 1 / -1;
		width: 100%;
	}
	.ap-404-actions {
		display: grid;
	}
	.ap-404-actions .ap-button {
		width: 100%;
	}
}

/* 1.0.36 searchable country selectors */
.ap-searchable-select {
  position: relative;
  width: 100%;
}

.ap-auth-form .ap-searchable-select select[data-ap-searchable-native] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ap-searchable-select-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  background: #fff;
  color: #182230;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.ap-searchable-select-trigger:hover { border-color: #aeb9c9; }
.ap-searchable-select-trigger:focus,
.ap-searchable-select.is-open .ap-searchable-select-trigger {
  outline: 0;
  border-color: #8cb0ee;
  box-shadow: 0 0 0 3px rgba(29,91,215,.09);
}

.ap-searchable-flag { flex: 0 0 auto; font-size: 18px; line-height: 1; }
.ap-searchable-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-searchable-dial { flex: 1 1 auto; min-width: 0; font-weight: 700; color: #344054; }
.ap-searchable-chevron { margin-left: auto; color: #7a8699; font-size: 15px; }

.ap-searchable-select-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 240px;
  padding: 8px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(12,33,59,.16);
}

.ap-phone-country-panel { min-width: 320px; }

.ap-searchable-select-search {
  width: 100%;
  height: 40px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid #d0d7e2;
  border-radius: 7px;
  background: #f9fbfd;
  font-size: 13px;
}

.ap-searchable-select-options {
  max-height: 260px;
  overflow: auto;
  overscroll-behavior: contain;
}

.ap-searchable-select-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 39px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #273444;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}

.ap-searchable-select-option:hover,
.ap-searchable-select-option:focus,
.ap-searchable-select-option[aria-selected="true"] {
  outline: 0;
  background: #eef4ff;
  color: #174ea6;
}

.ap-searchable-option-name { flex: 1 1 auto; min-width: 0; }
.ap-searchable-option-dial { flex: 0 0 auto; color: #667085; font-weight: 700; }
.ap-searchable-empty { padding: 18px 10px; color: #7a8699; font-size: 12px; text-align: center; }

.ap-phone-input-group {
  grid-template-columns: 112px minmax(0,1fr);
}

.ap-phone-input-group .ap-phone-country-select { min-width: 0; }
.ap-phone-input-group .ap-phone-country-trigger {
  min-height: 44px;
  border-radius: 7px 0 0 7px;
  border-right: 0;
  padding-left: 9px;
  padding-right: 8px;
}
.ap-phone-input-group > input {
  min-height: 44px;
}
.ap-phone-input-group:focus-within .ap-phone-country-trigger { box-shadow: none; }

@media (max-width: 520px) {
  .ap-searchable-select-panel,
  .ap-phone-country-panel { min-width: 100%; width: min(360px, calc(100vw - 42px)); }
  .ap-phone-input-group { grid-template-columns: 108px minmax(0,1fr); }
}

.ap-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #fff;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ap-language-switch a { color: #7a8699; text-decoration: none; }
.ap-language-switch a.is-active { color: var(--ap-primary); }
.ap-language-picker {
  position: relative;
  flex: 0 0 auto;
}
.ap-language-picker > summary {
  list-style: none;
}
.ap-language-picker > summary::-webkit-details-marker {
  display: none;
}
.ap-language-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 2px;
  color: #243044;
  cursor: pointer;
  border-radius: 6px;
}
.ap-language-picker-trigger:hover {
  opacity: .82;
}
.ap-language-picker-trigger img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .16);
}
.ap-language-picker-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .16s ease;
}
.ap-language-picker[open] .ap-language-picker-caret {
  transform: rotate(180deg);
}
.ap-language-picker-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  right: 0;
  min-width: 44px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}
.ap-language-picker-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 28px;
  padding: 6px 5px;
  color: #243044;
  text-decoration: none;
  border-radius: 6px;
}
.ap-language-picker-menu a img {
  display: block;
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .16);
}
.ap-language-picker-menu a:hover {
  background: #f5f7fa;
}
.ap-owner-invite-language { width: max-content; margin: 0 0 14px auto; }


/* About page template */
.ap-about-page {
  overflow: hidden;
}

.ap-about-hero {
  padding: 76px 0 70px;
  background:
    radial-gradient(circle at 86% 20%, rgba(29, 91, 215, .13), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 56%, #f4f8ff 100%);
  border-bottom: 1px solid var(--ap-border);
}

.ap-about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: center;
  gap: 64px;
}

.ap-about-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ap-about-hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  color: var(--ap-navy);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.ap-about-hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: #526074;
  font-size: 18px;
  line-height: 1.75;
}

.ap-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.ap-about-promise {
  position: relative;
  padding: 34px;
  background: #fff;
  border: 1px solid #dce6f3;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 40, 70, .11);
}

.ap-about-promise::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  background: rgba(29, 91, 215, .07);
  border-radius: 22px;
}

.ap-about-promise-icon,
.ap-about-card-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--ap-accent);
  background: var(--ap-accent-soft);
  border-radius: 12px;
}

.ap-about-promise h2 {
  margin: 20px 0 12px;
  color: var(--ap-navy);
  font-size: 24px;
  line-height: 1.25;
}

.ap-about-promise p,
.ap-about-card p,
.ap-about-audience-card p,
.ap-about-trust-item p,
.ap-about-evolution p {
  margin: 0;
  color: var(--ap-muted);
}

.ap-about-section {
  padding: 78px 0;
}

.ap-about-section-soft {
  background: #f2f6fb;
  border-block: 1px solid #e6edf5;
}

.ap-about-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.ap-about-heading h2,
.ap-about-evolution h2,
.ap-about-closing h2 {
  margin: 15px 0 14px;
  color: var(--ap-navy);
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.ap-about-heading > p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 16px;
  line-height: 1.8;
}

.ap-about-card-grid {
  display: grid;
  gap: 20px;
}

.ap-about-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ap-about-card,
.ap-about-audience-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(15, 40, 70, .045);
}

.ap-about-card h3,
.ap-about-audience-card h3,
.ap-about-trust-item h3 {
  margin: 18px 0 9px;
  color: var(--ap-navy);
  font-size: 18px;
  line-height: 1.3;
}

.ap-about-feature-card {
  min-height: 238px;
}

.ap-about-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ap-about-audience-card {
  padding: 34px;
}

.ap-about-audience-card ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ap-about-audience-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #445166;
}

.ap-about-audience-card li .ap-icon {
  margin-top: 4px;
  color: var(--ap-success);
}

.ap-about-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ap-about-trust-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ap-border);
  border-radius: 14px;
}

.ap-about-trust-item > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ap-primary);
  background: #edf4ff;
  border-radius: 11px;
}

.ap-about-trust-item h3 {
  margin-top: 1px;
}

.ap-about-evolution {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 70px;
}

.ap-about-evolution p {
  font-size: 16px;
  line-height: 1.85;
}

.ap-about-closing {
  padding: 64px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--ap-primary-dark), var(--ap-primary) 56%, #0f57a0);
}

.ap-about-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
}

.ap-about-closing h2 {
  margin-top: 0;
  color: #fff;
}

.ap-about-closing p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
}

.ap-about-closing .ap-about-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.ap-button-light {
  color: var(--ap-primary) !important;
  background: #fff;
  border-color: #fff;
}

.ap-button-outline-light {
  color: #fff !important;
  background: transparent;
  border-color: rgba(255,255,255,.55);
}

.ap-button-outline-light:hover {
  color: var(--ap-primary) !important;
  background: #fff;
  border-color: #fff;
}

@media (max-width: 900px) {
  .ap-about-hero { padding: 54px 0; }
  .ap-about-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .ap-about-card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-about-evolution { grid-template-columns: 1fr; gap: 20px; }
  .ap-about-closing-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .ap-about-hero { padding: 40px 0 44px; }
  .ap-about-hero-copy h1 { font-size: 36px; }
  .ap-about-hero-copy > p { font-size: 16px; }
  .ap-about-promise { padding: 25px; }
  .ap-about-section { padding: 52px 0; }
  .ap-about-card-grid-3,
  .ap-about-audience-grid,
  .ap-about-trust-grid { grid-template-columns: 1fr; }
  .ap-about-card,
  .ap-about-audience-card { padding: 23px; }
  .ap-about-feature-card { min-height: 0; }
  .ap-about-heading { margin-bottom: 28px; }
  .ap-about-closing { padding: 48px 0; }
  .ap-about-closing .ap-about-actions { width: 100%; }
  .ap-about-closing .ap-button { width: 100%; justify-content: center; }
}

/* Annuaire Pro 1.0.51: avoid a duplicate blue focus ring on business search bars. */
.ap-header-search input:focus,
.ap-header-search input:focus-visible,
.ap-hero-search input:focus,
.ap-hero-search input:focus-visible,
.ap-directory-search input:focus,
.ap-directory-search input:focus-visible,
.ap-directory-search select:focus,
.ap-directory-search select:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* Annuaire Pro 1.0.52: one focus border only, around the complete business search bar. */
.ap-header-search:focus-within,
.ap-hero-search:focus-within,
.ap-directory-search:focus-within {
  border-color: #b7cdf5 !important;
  outline: none !important;
  box-shadow: none !important;
}

.ap-header-search .ap-search-field,
.ap-hero-search .ap-search-field,
.ap-directory-search .ap-search-field,
.ap-header-search .ap-search-field:focus-within,
.ap-hero-search .ap-search-field:focus-within,
.ap-directory-search .ap-search-field:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

.ap-header-search input,
.ap-header-search input:hover,
.ap-header-search input:focus,
.ap-header-search input:focus-visible,
.ap-hero-search input,
.ap-hero-search input:hover,
.ap-hero-search input:focus,
.ap-hero-search input:focus-visible,
.ap-directory-search input,
.ap-directory-search input:hover,
.ap-directory-search input:focus,
.ap-directory-search input:focus-visible,
.ap-directory-search select,
.ap-directory-search select:hover,
.ap-directory-search select:focus,
.ap-directory-search select:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

/* Owner invitation onboarding: mandatory password step before first review. */
.ap-owner-password-setup-card {
  max-width: 760px;
}
.ap-owner-password-setup-card > p {
  margin: 18px 0;
  color: #475467;
  line-height: 1.7;
}
.ap-owner-password-setup-form {
  max-width: 560px;
  margin-top: 20px;
}
.ap-owner-password-setup-form > .ap-button {
  margin-top: 4px;
}


/* Annuaire Pro 1.0.57: resilient client company form. */
.ap-client-form-submit-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}
.ap-client-form-submit-feedback.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.ap-client-form-submit-feedback.is-success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.ap-client-company-form.is-submitting { opacity: .88; }
.ap-client-company-form.is-submitting .ap-client-form-actions button { pointer-events: none; }
