/* Page d'archive /sous-domaines/ : toutes les thématiques, par domaine et par secteur. */
.apting-arch { background: #f3f3f3; color: #111; font-family: "Montserrat", Arial, sans-serif; }
.apting-arch .arch-wrap { width: min(calc(100% - 48px), 1272px); margin: 0 auto; }

/* En-tête */
.apting-arch .arch-hero { padding: 40px 0 52px; background: #000; color: #fff; }
.apting-arch .arch-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 36px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.apting-arch .arch-crumbs a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.apting-arch .arch-crumbs a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.apting-arch .arch-crumbs svg { width: 14px; height: 14px; flex: none; }
.apting-arch .arch-eyebrow { display: block; color: #e6007e; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.apting-arch .arch-hero h1 { margin: 12px 0 18px; color: #fff; font-size: clamp(32px, 3.7vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.apting-arch .arch-lead { max-width: 760px; margin: 0 0 28px; color: rgba(255, 255, 255, .82); font-size: 17px; line-height: 1.65; }
.apting-arch a.arch-studio { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border: 1px solid rgba(255, 255, 255, .4); background: #000; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: background-color .15s, border-color .15s; }
.apting-arch a.arch-studio svg { width: 20px; height: 20px; flex: none; color: #e6007e; }
.apting-arch a.arch-studio span b { font-weight: 700; }
.apting-arch a.arch-studio:is(:hover, :focus-visible) { background: #222; border-color: #fff; color: #fff; }

/* Corps */
.apting-arch .arch-body { padding: 36px 0 80px; }
.apting-arch .arch-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.apting-arch .arch-search { position: relative; flex: 1 1 360px; max-width: 560px; }
.apting-arch .arch-search svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; transform: translateY(-50%); color: #e6007e; pointer-events: none; }
.apting-arch .arch-search input { box-sizing: border-box; width: 100%; height: 52px; padding: 0 16px 0 48px; border: 1px solid #d7d7d7; border-radius: 0; background: #fff; color: #111; font: inherit; font-size: 16px; }
.apting-arch .arch-search input:focus { outline: 2px solid #e6007e; outline-offset: 0; border-color: #e6007e; }
.apting-arch .arch-count { margin: 0; color: #555; font-size: 15px; }
.apting-arch .arch-count b { color: #111; font-size: 22px; font-weight: 700; margin-right: 4px; }

/* Accès rapide aux catalogues */
.apting-arch .arch-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.apting-arch .arch-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #ddd; background: #fff; color: #111; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s; }
.apting-arch .arch-jump a i { width: 10px; height: 10px; flex: none; background: var(--c); }
.apting-arch .arch-jump a:is(:hover, :focus-visible) { border-color: var(--c); transform: translateY(-1px); }

/* Groupes et cartes */
.apting-arch .arch-group { margin-top: 44px; scroll-margin-top: 90px; }
.apting-arch .arch-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--c); color: #111; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.apting-arch .arch-group h2 i { align-self: center; width: 14px; height: 14px; flex: none; background: var(--c); }
.apting-arch .arch-group h2 small { color: #666; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.apting-arch .arch-group h2 a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: #e6007e; font-size: 14px; font-weight: 700; text-decoration: none; }
.apting-arch .arch-group h2 a svg { width: 16px; height: 16px; }
.apting-arch .arch-group h2 a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 3px; }
.apting-arch .arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.apting-arch .arch-grid li { margin: 0; }
.apting-arch a.arch-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; box-sizing: border-box; padding: 16px 18px; border: 1px solid #e2e2e2; border-left: 5px solid var(--c); background: #fff; color: #111; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.apting-arch a.arch-card:is(:hover, :focus-visible) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .08); }
.apting-arch .arch-card__text { display: grid; gap: 4px; min-width: 0; }
.apting-arch .arch-card small { color: #777; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.apting-arch .arch-card strong { color: #111; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; transition: color .15s; }
.apting-arch a.arch-card:is(:hover, :focus-visible) strong { color: var(--c); }
.apting-arch .arch-card svg { width: 18px; height: 18px; flex: none; color: var(--c); }
.apting-arch .arch-empty { margin: 40px 0 0; padding: 28px; background: #fff; color: #555; text-align: center; }

/* Le pied de page du site a une marge haute de 100 px : on la retire sous cette page */
.apting-arch ~ footer .elementor-element.elementor-element-89e8488 { --margin-top: 0px; margin-top: 0; }

@media (max-width: 700px) {
  .apting-arch .arch-wrap { width: calc(100% - 32px); }
  .apting-arch .arch-hero { padding: 28px 0 40px; }
  .apting-arch .arch-crumbs { margin-bottom: 26px; }
  .apting-arch .arch-lead { font-size: 16px; }
  .apting-arch .arch-body { padding: 28px 0 56px; }
  .apting-arch .arch-group { margin-top: 36px; }
  .apting-arch .arch-group h2 a { margin-left: 0; width: 100%; }
  .apting-arch .arch-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .apting-arch a.arch-card, .apting-arch .arch-jump a { transition: none; } .apting-arch a.arch-card:hover, .apting-arch .arch-jump a:hover { transform: none; } }

/* Pages « Toutes les prestations » / « Tous les types d'accompagnement » : cartes avec photo */
.apting-arch--photos .arch-grid--photos { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.apting-arch--photos .arch-group { margin-top: 28px; }
.apting-arch a.arch-card.arch-card--photo, .apting-arch div.arch-card.arch-card--photo { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 0; border: 1px solid #e2e2e2; border-bottom: 3px solid var(--c); overflow: hidden; background: #fff; }
.apting-arch .arch-card--photo .arch-card__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #ddd; }
.apting-arch .arch-card--photo .arch-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box; padding: 14px 16px; text-align: left; }
.apting-arch .arch-card--photo .arch-card__row strong { flex: 1; min-width: 0; }
.apting-arch .arch-card--photo strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.apting-arch .arch-card--photo.is-static { cursor: default; }
.apting-arch div.arch-card--photo.is-static:hover { transform: none; box-shadow: none; }
@media (max-width: 700px) { .apting-arch--photos .arch-grid--photos { grid-template-columns: minmax(0, 1fr); } }
.apting-arch--photos .arch-grid--photos > li { min-width: 0; }
.apting-arch .arch-card--photo .arch-card__img { max-width: 100%; }

/* Pages de cartes (types d'accompagnement, prestations, secteurs, domaines) : espace blanc entre la barre du site et l'en-tête noir (20 oct 2026) */
.apting-arch--photos { padding-top: 24px; background: #fff; }
@media (max-width: 700px) { .apting-arch--photos { padding-top: 12px; } }

/* Cartes « domaine » : carré de la couleur du domaine à la place de la photo ; bloc de texte optimisé sous la grille */
.apting-arch .arch-card--photo .arch-card__swatch { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--sw); }
.apting-arch .arch-seo { max-width: 920px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid #e2e2e2; color: #222; }
.apting-arch .arch-seo h2 { margin: 36px 0 12px; color: #000; font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.apting-arch .arch-seo h2:first-child { margin-top: 0; }
.apting-arch .arch-seo p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; }
.apting-arch .arch-seo a { color: #e6007e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.apting-arch .arch-seo ul { margin: 0 0 14px; padding-left: 20px; font-size: 16px; line-height: 1.7; }
@media (max-width: 700px) { .apting-arch .arch-seo { margin-top: 44px; padding-top: 28px; } .apting-arch .arch-seo p, .apting-arch .arch-seo ul { font-size: 15px; } }

/* Cartes des pages « tous les secteurs / domaines / accompagnements » : même charte que le constructeur (20/21 oct 2026) :
   visuel carré, texte sans gras, aucun liseré de couleur */
.apting-arch a.arch-card.arch-card--photo, .apting-arch div.arch-card.arch-card--photo { border: 1px solid #e2e2e2; border-bottom-width: 1px; border-bottom-color: #e2e2e2; }
.apting-arch .arch-card--photo .arch-card__img, .apting-arch .arch-card--photo .arch-card__swatch { aspect-ratio: 1 / 1; }
.apting-arch .arch-card--photo .arch-card__row { justify-content: center; padding: 14px 12px; text-align: center; }
.apting-arch .arch-card--photo .arch-card__row strong { flex: 0 1 auto; font-weight: 400; }
.apting-arch .arch-card--photo .arch-card__row svg { display: none; }

/* Pages de cartes : 5 carrés par ligne sur ordinateur, 3 sur tablette, 1 sur mobile (demande de Laura, 21 oct 2026) */
@media (min-width: 1101px) { .apting-arch--photos .arch-grid--photos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 701px) and (max-width: 1100px) { .apting-arch--photos .arch-grid--photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
