/* Recherche Apting : panneau de suggestions + page de résultats. Style du site : coins carrés, noir, accent rose. */

/* ---------- Panneau de suggestions ---------- */
.aps-host { position: relative; }
.aps-panel { position: absolute; z-index: 99999; left: 0; top: 0; box-sizing: border-box; max-height: min(72vh, 580px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: #111; border: 1px solid #d7d7d7; box-shadow: 0 14px 34px rgba(0, 0, 0, .18); text-align: left; font-size: 14px; line-height: 1.35; }
.aps-panel[hidden] { display: none; }
.aps-panel h4 { margin: 0; padding: 12px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #777; }
.aps-panel h4 span { float: right; font-weight: 600; letter-spacing: 0; text-transform: none; }
.aps-panel ul { list-style: none; margin: 0; padding: 0; }
.aps-panel a[role="option"] { display: block; padding: 9px 16px; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.aps-panel a[role="option"]:hover, .aps-panel a[role="option"].is-active { background: #f6f6f6; border-left-color: #e6007e; }
.aps-panel a[role="option"] b { display: block; font-weight: 600; }
.aps-panel a[role="option"] small { display: block; margin-top: 2px; color: #777; font-size: 12px; }
.aps-panel mark, .aps-page mark { background: #ffe1f0; color: inherit; padding: 0 1px; }
.aps-panel a.aps-foot, .aps-panel a.aps-foot:visited { display: block; padding: 12px 16px; background: #000 !important; color: #fff !important; font-weight: 600; text-decoration: none !important; text-align: center; }
.aps-panel a.aps-foot:hover, .aps-panel a.aps-foot.is-active { background: #e6007e !important; color: #fff !important; }
.aps-panel .aps-note { margin: 0; padding: 12px 16px; color: #555; }
.aps-panel .aps-note--approx { background: #fff6fb; border-bottom: 1px solid #f5cfe3; font-size: 12px; }
.aps-panel .aps-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 16px; }
.aps-panel .aps-chips a { padding: 7px 14px; border: 1px solid #d7d7d7; border-radius: 999px; color: #111; text-decoration: none; font-size: 13px; font-weight: 500; }
.aps-panel .aps-chips a:hover, .aps-panel .aps-chips a.is-active { border-color: #e6007e; color: #e6007e; }

/* ---------- Page de résultats ---------- */
.aps-page .aps-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin: 4px 0 0; }
.aps-page .aps-form .arch-search { flex: 1 1 320px; max-width: none; margin: 0; }
.aps-page .aps-submit { height: 52px; padding: 0 28px; border: 0; border-radius: 0; background: #e6007e !important; color: #fff !important; font: inherit; font-weight: 700; cursor: pointer; }
.aps-page .aps-submit:hover, .aps-page .aps-submit:focus-visible { background: #c40d71 !important; color: #fff !important; }
.aps-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 16px 0 0; color: #fff; font-size: 13px; }
.aps-popular span { margin-right: 4px; font-weight: 600; opacity: .8; }
/* Éléments sur fond noir ou rose : couleurs forcées, sinon le style de liens global du thème / d'Elementor les rend noirs sur noir */
.apting-arch .aps-popular a, .apting-arch .aps-popular a:visited { padding: 6px 14px; border: 1px solid #ffffff59; border-radius: 999px; background: transparent !important; color: #fff !important; text-decoration: none !important; font-weight: 500; }
.apting-arch .aps-popular a:hover, .apting-arch .aps-popular a:focus-visible { border-color: #e6007e; background: #e6007e !important; color: #fff !important; }

.aps-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid #e2e2e2; }
.aps-summary p { margin: 0; font-size: 15px; }
.aps-summary nav { display: flex; flex-wrap: wrap; gap: 8px; }
.aps-summary nav a { padding: 8px 14px; border: 1px solid #d7d7d7; color: #111; text-decoration: none; font-size: 13px; font-weight: 600; }
.aps-summary nav a span { margin-left: 4px; color: #777; font-weight: 500; }
.aps-summary nav a:hover, .aps-summary nav a[aria-current] { border-color: #e6007e; color: #e6007e; }
.aps-approx { margin: 0 0 24px; padding: 14px 18px; background: #fff6fb; border: 1px solid #f5cfe3; font-size: 14px; }
.aps-empty { margin: 8px 0 40px; font-size: 16px; color: #444; }

.aps-block { margin: 0 0 36px; }
/* Intitulés de blocs et tuiles : style des résultats de recherche du constructeur (AptiStudio) */
.apting-arch .aps-block > h2, .apting-arch .aps-formations .aps-formations__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 10px; padding: 0; border: 0; color: #777; font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.4; text-transform: uppercase; }
.aps-block h2 span, .apting-arch .aps-formations .aps-formations__title span { color: #999; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.aps-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.apting-arch .aps-tiles a, .apting-arch .aps-tiles a:visited { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; height: 100%; min-height: 70px; padding: 12px 15px; border: 1px solid #d5d5d5; border-left: 4px solid var(--result-accent, #e6007e); background: #fff; color: #111; text-align: left; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.apting-arch .aps-tiles a:hover, .apting-arch .aps-tiles a:focus-visible { border-color: var(--result-accent, #e6007e); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.aps-tiles a > span { display: grid; gap: 4px; }
.aps-tiles strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.aps-tiles small { display: block; margin: 0; color: #666; font-size: 11px; line-height: 1.4; }
.aps-tiles svg { width: 18px; height: 18px; flex: none; color: #e6007e; }
.aps-more { margin: 14px 0 0; }
.apting-arch .aps-more a, .apting-arch .aps-more a:visited { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1px solid #e6007e; background: #fff; color: #e6007e; font-size: 12px; font-weight: 600; text-decoration: none; }
.apting-arch .aps-more a:hover, .apting-arch .aps-more a:focus-visible { background: #e6007e; color: #fff; }

.aps-card { display: flex; flex-direction: column; box-sizing: border-box; height: 100%; padding: 18px 20px; border: 1px solid #e2e2e2; background: #fff; }
.aps-card:hover { border-color: #111; }
.aps-card p { margin: 0; }
.aps-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: #777; }
.aps-badge { padding: 3px 9px; background: #f1f1f1; color: #333; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.aps-badge--prestation { background: #fde6f2; color: #a8005a; }
.aps-badge--parcours { background: #e8eefb; color: #2d4a8a; }
.aps-card h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.apting-arch .aps-card h3 a { color: #111; text-decoration: none; }
.apting-arch .aps-card h3 a:hover { color: #e6007e; }
.aps-card__meta { font-size: 13px; color: #666; }
.aps-card__meta a { color: #666; }
.aps-card__meta span::before { content: " · "; }
.aps-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto !important; padding-top: 16px; }
.aps-price { font-size: 16px; font-weight: 700; color: #111; }
.aps-price small { font-size: 12px; font-weight: 500; color: #777; }
.apting-arch a.aps-btn, .apting-arch a.aps-btn:visited { display: inline-block; padding: 10px 18px; border: 1px solid #111; background: #111 !important; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.apting-arch a.aps-btn:hover, .apting-arch a.aps-btn:focus-visible { border-color: #e6007e; background: #e6007e !important; color: #fff !important; }
.apting-arch a.aps-btn--line, .apting-arch a.aps-btn--line:visited { background: #fff !important; color: #111 !important; }
.apting-arch a.aps-btn--line:hover, .apting-arch a.aps-btn--line:focus-visible { background: #e6007e !important; color: #fff !important; }
.aps-none { max-width: 720px; margin: 12px 0 48px; }
.aps-none h2 { margin: 0 0 12px; font-size: 24px; font-weight: 600; }
.aps-none .aps-btn { margin: 6px 8px 0 0; }

.aps-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0 0; }
.apting-arch .aps-pager a, .aps-pager span { min-width: 40px; box-sizing: border-box; padding: 9px 12px; border: 1px solid #d7d7d7; color: #111; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.aps-pager span { border-color: transparent; }
.apting-arch .aps-pager a:hover, .apting-arch .aps-pager a[aria-current] { border-color: #e6007e; background: #e6007e !important; color: #fff !important; }

@media (max-width: 600px) {
  .aps-cards { grid-template-columns: 1fr; }
  .aps-page .aps-submit { width: 100%; }
  .aps-card__foot { flex-wrap: wrap; }
}

/* ---------- « Nos formations » : présentation du constructeur (styles des pages catalogue, voir page.php) ---------- */
.apting-arch .aps-formations { margin: 0 0 44px; background: transparent; }
.apting-arch .aps-formations .wizard-sidebar > a { color: #e6007e !important; font-weight: 700; }
.apting-arch .aps-formations mark { background: #ffe1f0; color: inherit; padding: 0 1px; }
.apting-arch .aps-formations .aps-pager { margin-top: 24px; }
