/* animal-pro · ANNUAIRE : patterns de pages (an-*), chargé après styles.css
   Référence : design-ref/ (maquettes Claude Design) */

/* ============ 1 · PAGE ============ */
/* .an est le conteneur racine de chaque page (header + main + footer) :
   container-type pour que les @container s'appliquent à .an-page / .cp-container */
.an { background: var(--white); min-height: 100%; container-type: inline-size; }
.an--tinted { background: var(--surface-2); }
.an-page { padding-block: var(--space-6) var(--space-9); display: flex; flex-direction: column; gap: var(--space-6); }
.an-page--narrow { max-width: 784px; }
.an-page--medium { max-width: 960px; }
.an-page--form { max-width: 832px; }
.an-page--wide { max-width: 1440px; }
.an-section { display: flex; flex-direction: column; gap: var(--space-6); }
.an-section--tight { gap: 14px; }
.an-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.an-title { display: flex; flex-direction: column; gap: 8px; }
.an-h1 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; }
.an-h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; }
.an-h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 800; }
.an-lead { margin: 0; max-width: 65ch; font-size: 17px; line-height: 26px; color: var(--ink-2); }
.an-muted { color: var(--muted); }
.an-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch-min); color: var(--link); font-size: 15px; font-weight: 700; text-decoration: none; }
.an-link:hover { color: var(--brand-hover); text-decoration: underline; }
@container (min-width: 960px) {
  .an-page { padding-block: var(--space-7) var(--space-10); gap: var(--space-8); }
  .an-h1 { font-size: 34px; line-height: 40px; }
  .an-h2 { font-size: 26px; line-height: 32px; }
  .an-lead { font-size: 20px; line-height: 30px; }
}

/* Select (champ du DS + chevron) */
.an-select { position: relative; display: block; }
.an-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.an-select > .bi { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 16px; }
.an-select--on select { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); font-weight: 700; }
.an-search-input { position: relative; display: block; }
.an-search-input > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 18px; }
.an-search-input input { padding-left: 46px; }
.an-search-input input::-webkit-search-cancel-button { cursor: pointer; }

/* Avatar de catégorie (icône + couleur du tag) */
.an-avatar { flex: none; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; }
@container (min-width: 640px) { .an-avatar { width: 60px; height: 60px; } }

/* ============ 2 · ACCUEIL ============ */
.an-page--home { gap: 56px; }
.an-hero { margin-top: var(--space-4); border-radius: var(--radius-2xl); background: var(--surface-2); padding: var(--space-7) var(--space-5); display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); overflow: hidden; position: relative; }
.an-hero__text { display: flex; flex-direction: column; gap: var(--space-4); position: relative; z-index: 1; }
.an-hero__title { margin: 0; font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -0.02em; }
.an-hero__title em { font-style: normal; color: var(--brand-ink); }
.an-hero__art { display: none; }
.an-count { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-full); background: var(--white); font-size: 14px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-card); }
.an-count b { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--radius-full); background: var(--brand); color: var(--white); font-weight: 800; }
.an-finder { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); padding: var(--space-4); display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.an-finder .cp-btn { width: 100%; }
@container (min-width: 960px) {
  .an-hero { margin-top: var(--space-6); padding: var(--space-10) var(--space-9); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; }
  .an-hero__title { font-size: 44px; line-height: 50px; }
  .an-hero__art { display: flex; align-items: center; justify-content: center; }
  .an-finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding: var(--space-5); gap: var(--space-4); }
  .an-finder .cp-btn { grid-column: 1 / -1; width: 100%; }
}
.an-disc { width: 340px; height: 340px; border-radius: 50%; background: var(--logo-pale); display: flex; align-items: center; justify-content: center; position: relative; }
.an-disc::before { content: ""; position: absolute; inset: -36px; border-radius: 50%; border: 2px dashed var(--line); }
.an-disc img { width: 220px; height: 220px; }

/* Tuiles d’activité */
.an-tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 640px) { .an-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@container (min-width: 960px) { .an-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.an-tile { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-height: 120px; padding: var(--space-4); border-radius: var(--radius-xl); border: 1.5px solid var(--line-2); background: var(--white); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 20px; transition: box-shadow .2s ease, transform .2s ease; }
.an-tile:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); color: var(--ink); }
.an-tile__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* Blocs Races / Départements */
.an-duo { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 960px) { .an-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-panel { border-radius: var(--radius-2xl); background: var(--surface-1); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.an-panel .cp-help { font-size: 16px; line-height: 24px; }
@container (min-width: 960px) { .an-panel { padding: var(--space-8); } }
.an-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.an-chips .cp-chip { min-height: 36px; }

/* Grille de fiches récentes */
.an-recent { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 640px) { .an-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 960px) { .an-recent { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); } }
.an-recent .cp-card__body { flex-direction: row; align-items: center; gap: var(--space-3); }
.an-recent .cp-card__title { font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.an-recent .cp-card__meta { display: inline-flex; align-items: center; gap: 6px; }

/* Bandeau professionnel */
.an-cta { border-radius: var(--radius-2xl); background: var(--brand); color: var(--white); padding: var(--space-7) var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.an-cta h2 { color: var(--white); }
.an-cta p { margin: 0; font-size: 17px; line-height: 26px; color: var(--white); opacity: .92; max-width: 60ch; }
.an-cta .cp-btn--secondary { box-shadow: none; align-self: flex-start; }
@container (min-width: 960px) { .an-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-8) var(--space-9); } .an-cta .cp-btn--secondary { align-self: center; } }

/* ============ 3 · LISTE DES PROS ============ */
.an-list { display: flex; flex-direction: column; border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); background: var(--white); overflow: hidden; box-shadow: var(--shadow-card); }
.an-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--line-3); color: var(--ink); text-decoration: none; }
.an-row:last-child { border-bottom: 0; }
a.an-row:hover { background: var(--surface-1); color: var(--ink); }
.an-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.an-row__title { font-size: 17px; font-weight: 800; line-height: 22px; overflow-wrap: anywhere; }
.an-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.an-row__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.an-row__meta .an-row__cat { gap: 6px; font-weight: 700; color: var(--ink-2); }
.an-row__chev { color: var(--faint); font-size: 18px; }
.an-row__desc { font-size: 14px; color: var(--muted); }
.an-row--top { background: var(--brand-50); }
@container (min-width: 640px) { .an-row { padding: var(--space-4) var(--space-6); gap: var(--space-5); } }

.an-search-layout { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.an-side { display: none; flex: 1 1 260px; max-width: 300px; flex-direction: column; gap: 16px; }
.an-side.is-open { display: flex; max-width: none; flex-basis: 100%; }
.an-filters { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-card); }
.an-filters__head { display: flex; align-items: center; justify-content: space-between; }
.an-filters__head .cp-btn--link { font-size: 14px; }
.an-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.an-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.an-toolbar__left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-filter-btn { display: inline-flex; }
.an-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-full); background: var(--brand); color: var(--white); font-size: 13px; font-weight: 800; }
.an-seg { display: inline-flex; }
.an-seg .cp-seg__opt { flex: none; min-height: 40px; font-size: 14px; }
.an-chip-active .bi { font-size: 12px; }
@container (min-width: 960px) { .an-side, .an-side.is-open { display: flex; flex-basis: 260px; max-width: 300px; } .an-filter-btn { display: none; } }
.an-pager { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.an-pager a, .an-pager span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.an-pager a:hover { background: var(--surface-1); color: var(--ink-2); }
.an-pager [aria-current="page"] { background: var(--brand); color: var(--white); }
.an-pager [aria-current="page"]:hover { background: var(--brand-hover); color: var(--white); }
.an-pager [aria-disabled="true"] { color: var(--faint); }
.an-empty { margin: 0; padding: 28px 20px; text-align: center; color: var(--muted); font-size: 16px; }

/* ============ 4 · FICHE PRO ============ */
.an-pro-main { display: flex; flex-direction: column; gap: 40px; }
.an-pro-head { display: flex; flex-direction: column; gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-2); }
.an-pro-id { display: flex; align-items: flex-start; gap: var(--space-4); }
.an-pro-id .an-avatar { width: 72px; height: 72px; font-size: 36px; border-radius: var(--radius-xl); }
.an-pro-id__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.an-pro-id__text .an-h1 { overflow-wrap: anywhere; }
.an-pro-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 16px; color: var(--muted); }
.an-pro-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.an-pro-meta__date { font-size: 14px; }
.an-pro-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.an-pro-actions .cp-btn { width: 100%; }
@container (min-width: 640px) { .an-pro-actions { display: flex; flex-wrap: wrap; } .an-pro-actions .cp-btn { width: auto; } }
@container (min-width: 960px) { .an-pro-id .an-avatar { width: 96px; height: 96px; font-size: 44px; } }
.an-prose { margin: 0; font-size: 17px; line-height: 28px; color: var(--ink-2); max-width: 70ch; overflow-wrap: anywhere; }
.an-shot { display: block; border-radius: var(--radius-xl); border: 1.5px solid var(--line-2); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; max-width: 640px; }
.an-shot:hover { color: inherit; box-shadow: var(--shadow-raised); }
.an-shot__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-1); border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--muted); font-weight: 600; }
.an-shot__bar span:last-child { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-shot__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.an-shot__body { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--white) 14px 28px); color: var(--muted); font-size: 14px; font-weight: 700; text-align: center; padding: var(--space-4); }
.an-shot__body .bi { font-size: 32px; }
.an-shot__body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.an-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; border: 1.5px solid var(--line-2); background: var(--surface-1); z-index: 0; }
.an-map__label { position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 500; background: var(--white); border-radius: var(--radius-md); padding: 8px 12px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-card); max-width: calc(100% - 32px); }
.an-map .leaflet-container { font-family: var(--font-sans); }
.an-map-pin { color: var(--brand); font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.an-card-box { border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-card); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.an-aside { display: flex; flex-direction: column; gap: 16px; }
.an-dl { margin: 0; display: flex; flex-direction: column; }
.an-dl > div { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line-3); }
.an-dl > div:last-child { border-bottom: 0; }
.an-dl__icon { width: 36px; height: 36px; flex: none; border-radius: 18px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.an-dl dt { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 18px; }
.an-dl dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; line-height: 22px; color: var(--ink); overflow-wrap: anywhere; }
.an-dl dd a { color: var(--link); }
.an-report { align-self: flex-start; font-size: 14px; color: var(--muted); gap: 6px; }
.an-alert-link { padding: 0; min-height: 36px; font-size: 14px; font-weight: 700; }

/* ============ 5 · RACES / DÉPARTEMENTS ============ */
.an-tools { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--surface-1); }
.an-tools--deps { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px 16px; }
.an-tools--deps p { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.an-tools .cp-field { width: 100%; max-width: 440px; }
.an-tools--deps .cp-field { max-width: 380px; }
.an-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.an-letter { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--radius-sm); background: var(--white); color: var(--brand-ink); font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.an-letter:hover { background: var(--brand); color: var(--white); box-shadow: none; }
.an-letter[aria-disabled="true"] { background: transparent; color: var(--faint); box-shadow: none; pointer-events: none; }

.an-groups { display: flex; flex-direction: column; gap: var(--space-3); }
.an-group { border-radius: var(--radius-xl); border: 1.5px solid var(--line-2); background: var(--white); overflow: hidden; scroll-margin-top: 90px; }
.an-group > h2 { margin: 0; }
.an-group__head { width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 0 var(--space-4); border: 0; background: var(--white); font-family: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.an-group__letter { width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.an-group__name { flex: 1; font-size: 17px; font-weight: 800; line-height: 22px; }
.an-group__count { font-size: 14px; font-weight: 700; color: var(--muted); }
.an-group__chev { color: var(--muted); transition: transform .2s ease; font-size: 18px; }
.an-group.is-open .an-group__chev { transform: rotate(180deg); }
.an-group__body { display: none; padding: 0 var(--space-4) var(--space-4); }
.an-group.is-open .an-group__body { display: block; }
.an-items { margin: 0; padding: 0; list-style: none; }
.an-items a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink); font-size: 16px; line-height: 20px; text-decoration: none; }
.an-items a:hover { background: var(--surface-1); color: var(--brand-ink); }
.an-num { flex: none; min-width: 40px; height: 26px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--brand-ink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

@container (min-width: 960px) {
  /* Desktop : tout est déplié, en colonnes */
  .an-groups { gap: var(--space-8); }
  .an-group { border: 0; border-radius: 0; overflow: visible; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line-2); }
  .an-group__head { min-height: 0; padding: 0; flex-direction: column; align-items: flex-start; cursor: default; pointer-events: none; }
  .an-group__letter { width: 64px; height: 64px; font-size: 32px; border-radius: var(--radius-lg); }
  .an-group__name, .an-group__chev { display: none; }
  .an-group__body, .an-group.is-open .an-group__body { display: block; padding: 0; }
  .an-items { columns: 4; column-gap: var(--space-6); }
  .an-items li { break-inside: avoid; }
  .an-items a { min-height: 36px; font-size: 15px; }
}

.an-deps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container (min-width: 640px) { .an-deps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 960px) { .an-deps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.an-dep { display: flex; align-items: center; gap: 10px; min-height: 48px; height: 100%; padding: 6px 10px; border: 1.5px solid var(--line-2); border-radius: var(--radius-md); background: var(--white); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 19px; text-decoration: none; }
.an-dep:hover { background: var(--surface-1); border-color: var(--line); color: var(--brand-ink); }
.an-noresult { margin: 0; padding: 20px; text-align: center; color: var(--muted); border-radius: var(--radius-xl); background: var(--surface-1); }

/* ============ 6 · CONNEXION ============ */
.an-sign { padding-top: 40px; padding-bottom: 80px; }
.an-sign__wrap { width: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.an-sign__card { background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); padding: 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.an-sign__top { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.an-sign__logo { width: 72px; height: 72px; border-radius: 50%; background: var(--logo-pale); display: flex; align-items: center; justify-content: center; }
.an-sign__logo img { width: 52px; height: 52px; }
.an-sign__badge { font-size: 13px; font-weight: 700; }
.an-sign form { display: flex; flex-direction: column; gap: 22px; }
.an-sign__intro { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.an-sign__intro .an-h1 { font-size: 28px; line-height: 32px; }
.an-sign__intro p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.an-sign__intro strong { color: var(--ink); overflow-wrap: anywhere; }
.an-sign fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.an-sign legend { padding: 0; margin-bottom: 8px; }
.an-otp-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.an-otp { width: 100%; min-width: 0; height: 60px; padding: 0; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 0; }
.an-sign__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.an-sign__links form { display: contents; }
.an-sign__links .cp-btn--link { font-size: 15px; font-weight: 700; }
.an-sign__foot { text-align: center; font-size: 15px; }

/* ============ 7 · VOTRE COMPTE (home) ============ */
.an-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: var(--radius-xl); background: var(--surface-1); }
.an-account__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.an-account__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--white); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.an-account__label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.an-account__email { display: block; font-size: 18px; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.an-account__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.an-fiche { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line-3); }
.an-fiche:last-child { border-bottom: 0; }
.an-fiche__link { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.an-fiche__link:hover { color: var(--brand-ink); }
.an-fiche__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.an-add { width: 44px; padding: 0; flex: none; }
.an-add__label { display: none; }
@container (min-width: 640px) { .an-add { width: auto; padding: 0 16px; } .an-add__label { display: inline; } }
.an-new { display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed var(--line); border-radius: var(--radius-xl); background: var(--white); color: var(--ink); text-decoration: none; }
.an-new:hover { background: var(--brand-50); border-color: var(--brand); color: var(--ink); }
.an-new__icon { width: 52px; height: 52px; flex: none; border-radius: var(--radius-md); background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.an-new__title { display: block; font-size: 17px; font-weight: 800; color: var(--brand-ink); }
.an-new__text { display: block; font-size: 15px; color: var(--muted); }

/* Statuts de fiche (admin) */
.ad-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 800; white-space: nowrap; }
.ad-st i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ad-st--ok { background: #E3F4EA; color: #1D6B3D; box-shadow: inset 0 0 0 1.5px #2E9E5B; } .ad-st--ok i { background: #2E9E5B; }
.ad-st--wait { background: #FDF0E1; color: #8A4A0C; box-shadow: inset 0 0 0 1.5px #E08A2C; } .ad-st--wait i { background: #E08A2C; }
.ad-st--del { background: #FDECEC; color: #A3231B; box-shadow: inset 0 0 0 1.5px #DE3E3E; } .ad-st--del i { background: #DE3E3E; }
.ad-toggle { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--radius-md); background: var(--surface-2); max-width: 100%; }
.ad-toggle > a, .ad-toggle > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; text-decoration: none; }
.ad-toggle i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ad-toggle > a:hover, .ad-toggle > button:hover { color: var(--ink); }
.ad-toggle .ok i { background: #2E9E5B; } .ad-toggle .wait i { background: #E08A2C; } .ad-toggle .del i { background: #DE3E3E; }
.ad-toggle .ok[aria-checked="true"] { background: #E3F4EA; color: #1D6B3D; box-shadow: inset 0 0 0 1.5px #2E9E5B; }
.ad-toggle .wait[aria-checked="true"] { background: #FDF0E1; color: #8A4A0C; box-shadow: inset 0 0 0 1.5px #E08A2C; }
.ad-toggle .del[aria-checked="true"] { background: #FDECEC; color: #A3231B; box-shadow: inset 0 0 0 1.5px #DE3E3E; }
.ad-toggle button:disabled { cursor: progress; opacity: .6; }

/* ============ 8 · FORMULAIRE FICHE (pro_form) ============ */
.an-fcard { background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.an-fcard__head { display: flex; flex-direction: column; gap: 4px; }
.an-fcard fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.an-fcard legend { padding: 0; margin-bottom: 10px; }
.an-grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@container (min-width: 640px) { .an-fcard { padding: 32px; } .an-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-grid2--cp { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.an-lab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-lab__hint { font-weight: 600; color: var(--muted); }
.an-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container (min-width: 640px) { .an-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 900px) { .an-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-act { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 8px 12px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--white); font-size: 15px; font-weight: 700; line-height: 19px; color: var(--ink); cursor: pointer; }
.an-act:hover { border-color: var(--faint); }
.an-act:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.an-act input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.an-act .cp-dot { width: 12px; height: 12px; border-radius: 4px; }
.an-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: var(--radius-full); background: var(--brand-50); color: var(--brand-ink); font-size: 14px; font-weight: 700; }
.an-tag button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--brand-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.an-tag button:hover { background: var(--white); }
.an-suggest { position: relative; }
.an-suggest__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; max-height: 280px; overflow-y: auto; background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-md); box-shadow: var(--shadow-raised); }
.an-suggest__list[hidden] { display: none; }
.an-suggest__list li { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 15px; cursor: pointer; }
.an-suggest__list li:hover, .an-suggest__list li.is-active { background: var(--brand-50); color: var(--brand-ink); }
.an-suggest__list li.is-empty { color: var(--muted); cursor: default; background: none; }
.an-map--form { aspect-ratio: auto; height: 380px; }
.an-map__center { position: absolute; left: 50%; top: 50%; z-index: 500; pointer-events: none; }
.an-map__center .an-map-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -94%); font-size: 48px; }
.an-map__shadow { position: absolute; left: -7px; top: -3px; width: 14px; height: 6px; border-radius: 50%; background: rgba(20,29,40,0.28); }
.an-map__hint { position: absolute; left: 50%; top: 14px; z-index: 500; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-full); background: var(--white); box-shadow: var(--shadow-card); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; pointer-events: none; }
.an-map-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.an-delete-link { align-self: flex-start; color: var(--danger); font-weight: 700; gap: 6px; }
.an-delete-link:hover { color: var(--danger); }
.an-bar { position: sticky; bottom: 0; z-index: 900; background: var(--white); box-shadow: var(--shadow-footer); }
.an-bar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap-reverse; padding: 12px 16px; max-width: 832px; margin: 0 auto; }
.an-bar__inner .cp-btn { flex: 1 1 140px; }
@container (min-width: 640px) { .an-bar__inner .cp-btn { flex: 0 0 auto; } }
.ad-banner { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: var(--radius-xl); background: var(--ink); color: var(--white); }
.ad-banner__id { display: flex; align-items: center; gap: 12px; }
.ad-banner__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ad-banner__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 22px; }
.ad-banner__text { display: block; font-size: 13px; line-height: 18px; color: var(--logo-pale); }
.ad-banner .ad-toggle { display: grid; background: var(--white); }
.ad-banner .ad-toggle button { padding: 0 12px; }
@container (min-width: 640px) { .ad-banner { flex-direction: row; align-items: center; justify-content: space-between; } }
.an-done { align-items: center; text-align: center; }
.an-done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.an-done p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-2); max-width: 52ch; }
.an-done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============ 9 · ADMINISTRATION ============ */
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ad-panel { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: var(--radius-xl); background: var(--surface-1); }
.ad-search { display: flex; flex-direction: column; gap: 10px; }
@container (min-width: 640px) { .ad-search { flex-direction: row; align-items: flex-end; } .ad-search .cp-field { flex: 1; } }
.ad-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container (min-width: 640px) { .ad-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 960px) { .ad-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1180px) { .ad-filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ad-filters .cp-input { min-height: 48px; font-size: 15px; }
/* 2e ligne du panneau : recherche + statut */
.ad-row2 { display: flex; flex-direction: column; gap: 14px; }
.ad-row2 .ad-search { flex: 1 1 auto; min-width: 0; }
.ad-status { display: flex; flex-direction: column; gap: 8px; max-width: 100%; overflow-x: auto; }
.ad-status .ad-toggle { grid-template-columns: repeat(4, auto); }
.ad-status .cp-help { margin: 0; }
@container (min-width: 1180px) { .ad-row2 { flex-direction: row; align-items: flex-end; gap: 24px; } .ad-status { flex: none; } }
.ad-toggle .all[aria-checked="true"] { background: var(--white); color: var(--brand-ink); box-shadow: var(--shadow-segment); }
.ad-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ad-panel__foot .cp-btn--link { font-size: 14px; font-weight: 700; }
.ad-box { overflow-x: auto; border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-card); }
.ad-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ad-table th { position: sticky; top: 0; background: var(--surface-1); text-align: left; font-size: 13px; font-weight: 800; color: var(--ink-2); padding: 12px 14px; border-bottom: 1.5px solid var(--line-2); white-space: nowrap; }
.ad-table td { padding: 0; border-bottom: 1px solid var(--line-3); vertical-align: middle; color: var(--ink); }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover td { background: var(--surface-1); }
.ad-table .ad-c { text-align: center; }
/* chaque cellule contient son propre lien (pas de calque ::after en position absolue sur la ligne) */
.ad-cell { display: flex; flex-wrap: wrap; align-items: center; min-height: 56px; padding: 12px 14px; color: inherit; text-decoration: none; cursor: pointer; }
.ad-cell:hover { color: inherit; text-decoration: none; }
.ad-c .ad-cell { justify-content: center; }
.ad-table td.an-empty { padding: 28px 20px; }
.ad-id { font-weight: 800; color: var(--ink-2); }
.ad-email { white-space: nowrap; color: var(--ink-2); }
.ad-row-link { font-weight: 800; color: var(--ink); text-decoration: none; }
.ad-table tbody tr:hover .ad-row-link { color: var(--brand-ink); text-decoration: underline; }
.ad-yes { color: var(--brand); font-size: 20px; }
.ad-no { color: var(--faint); font-weight: 800; }
.ad-cat { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; font-weight: 600; white-space: nowrap; }
.ad-dots { display: inline-flex; gap: 2px; }
.ad-none { color: var(--muted); font-style: italic; }
.ad-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ============ 10 · CONTACT ============ */
.ct-card { background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); padding: 24px 20px; display: flex; flex-direction: column; gap: 22px; }
@container (min-width: 640px) { .ct-card { padding: 36px; } }
.ct-card .cp-btn--fluid { align-self: flex-start; }

/* ============ 11 · PAGES D’ERREUR (errors/*) ============ */
.nf-wrap { max-width: 784px; padding-block: var(--space-8) 72px; }
.nf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); padding: var(--space-8) 20px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); }
.nf__icon { width: 112px; height: 112px; border-radius: 50%; background: var(--brand-50); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-2); font-size: 52px; line-height: 1; }
.nf__eyebrow { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nf__text { margin: 0; font-size: 17px; line-height: 26px; color: var(--ink-2); max-width: 48ch; }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); width: 100%; margin-top: var(--space-3); }
.nf__actions .cp-btn { flex: 1 1 220px; max-width: 300px; }
@container (min-width: 640px) { .nf { padding: 56px 48px; } }
@container (min-width: 960px) { .nf-wrap { padding-block: 72px 112px; } .nf__icon { width: 128px; height: 128px; font-size: 60px; } }
