/* Annuaire des pages personnelles (page d'accueil du site public). */
[hidden] { display: none !important; }
:root { --bleu: #3d4a9a; --bleu-fonce: #232c66; --bleu-clair: #e9ebf7; --encre: #1d1d1b; --texte: #2c2c2a; --doux: #5f616b;
  --fond: #f6f7fb; --surface: #fff; --trait: #e1e3ec; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root { --bleu: #a7b1f0; --bleu-fonce: #151a3d; --bleu-clair: #23284a; --encre: #f2f2f0; --texte: #e3e3e0; --doux: #a8aab4;
    --fond: #111218; --surface: #1a1c24; --trait: #2c2f3b; color-scheme: dark; }
  .an-marque img { filter: brightness(0) invert(1); }
}
* { box-sizing: border-box; }
body.an { margin: 0; font: 400 16px/1.55 "Inter", system-ui, sans-serif; color: var(--texte); background: var(--fond); -webkit-font-smoothing: antialiased; }
.an-int { width: min(1160px, 100% - 2.5rem); margin: 0 auto; }
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }

.an-haut { background: var(--surface); border-bottom: 1px solid var(--trait); }
.an-haut .an-int { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.an-marque img { display: block; height: 40px; width: auto; }
.an-creer { font-weight: 600; font-size: .92rem; text-decoration: none; padding: .55rem 1rem; border: 1px solid var(--trait); border-radius: 99px; color: var(--encre); }
.an-creer:hover { border-color: var(--bleu); color: var(--bleu); }

.an-heros { background: var(--bleu-fonce); color: #fff; padding: 4.5rem 0 3.25rem; position: relative; overflow: hidden; }
.an-heros::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(900px 300px at 85% -10%, rgba(167, 177, 240, .35), transparent 70%), radial-gradient(600px 260px at 0% 120%, rgba(61, 74, 154, .6), transparent 70%); }
.an-heros .an-int { position: relative; }
.an-heros h1 { font: 600 clamp(2.4rem, 6vw, 4.2rem)/1.02 "Fraunces", Georgia, serif; letter-spacing: -.025em; margin: 0 0 .9rem; color: #fff; }
.an-chapo { font-size: 1.12rem; max-width: 56ch; margin: 0 0 2rem; color: #d9ddf4; }
.an-recherche { position: relative; max-width: 680px; }
.an-recherche input { width: 100%; height: 60px; padding: 0 3.5rem 0 3.4rem; border: 0; border-radius: 16px; font: 500 1.08rem "Inter", system-ui, sans-serif;
  color: #1d1d1b; background: #fff; box-shadow: 0 18px 40px rgba(5, 8, 30, .35); }
.an-recherche input:focus { outline: 3px solid #a7b1f0; outline-offset: 2px; }
.an-recherche input::-webkit-search-cancel-button { cursor: pointer; }
.an-loupe { position: absolute; left: 1.15rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: #5f616b; stroke-width: 2; stroke-linecap: round; }
.an-touche { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 600 .8rem "Inter", sans-serif; color: #5f616b;
  border: 1px solid #d5d7e0; border-bottom-width: 2px; border-radius: 6px; padding: .1rem .45rem; background: #f6f7fb; }
.an-recherche input:focus ~ .an-touche { display: none; }

.an-outils { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 .25rem; }
.an-lettres { display: flex; flex-wrap: wrap; gap: .2rem; }
.an-lettres a { min-width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--doux); }
.an-lettres a:hover { background: var(--bleu-clair); color: var(--bleu); }
.an-lettres a.vide { opacity: .3; pointer-events: none; }
.an-tri { display: inline-flex; border: 1px solid var(--trait); border-radius: 99px; padding: 3px; background: var(--surface); }
.an-tri button { border: 0; background: none; font: 500 .85rem "Inter", sans-serif; color: var(--doux); padding: .35rem .85rem; border-radius: 99px; cursor: pointer; }
.an-tri button.actif { background: var(--bleu); color: #fff; }
@media (prefers-color-scheme: dark) { .an-tri button.actif { color: #111218; } }
.an-etat { color: var(--doux); font-size: .9rem; margin-top: .5rem; margin-bottom: 0; min-height: 1.4em; }

.an-groupe { margin: 1.5rem 0 2.25rem; scroll-margin-top: 1rem; }
.an-groupe h2 { font: 600 1.35rem "Fraunces", Georgia, serif; color: var(--encre); margin: 0 0 .9rem; display: flex; align-items: center; gap: .9rem; }
.an-groupe h2::after { content: ""; flex: 1; height: 1px; background: var(--trait); }
.an-cartes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.an-carte a { display: flex; align-items: center; gap: .95rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--trait); border-radius: 14px;
  text-decoration: none; color: var(--texte); transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%; }
.an-carte a:hover, .an-carte a:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bleu) 45%, var(--trait)); box-shadow: 0 10px 26px rgba(29, 29, 27, .08); }
.an-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; font: 600 1.05rem "Inter", sans-serif; letter-spacing: .02em; }
.an-avatar.t0 { background: #e6e9fb; color: #2f3c8f; } .an-avatar.t1 { background: #e3f2ee; color: #1d5a4a; }
.an-avatar.t2 { background: #fbeee2; color: #8a4a0c; } .an-avatar.t3 { background: #f6e5ec; color: #7a1f45; }
.an-avatar.t4 { background: #e5f0f8; color: #0f5a8a; } .an-avatar.t5 { background: #efe8f8; color: #5b3596; }
.an-avatar.t6 { background: #f3f2df; color: #5f5a12; } .an-avatar.t7 { background: #e8eceb; color: #36464a; }
@media (prefers-color-scheme: dark) { .an-avatar { filter: saturate(.9) brightness(.92); } }
.an-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.an-nom { color: var(--encre); font-weight: 600; font-size: 1.02rem; }
.an-desc { color: var(--doux); font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-adresse { color: var(--bleu); font-size: .8rem; margin-top: .15rem; font-feature-settings: "tnum"; }
.an-fleche { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--doux); stroke-width: 2; transition: transform .15s; }
.an-carte a:hover .an-fleche { transform: translateX(3px); stroke: var(--bleu); }
mark { background: color-mix(in srgb, var(--bleu) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 .05em; }
.an-vide { padding: 2.5rem 0 3rem; max-width: 60ch; }
.an-vide code { background: var(--bleu-clair); padding: .1em .4em; border-radius: 5px; }
.an-pied { border-top: 1px solid var(--trait); margin-top: 2rem; padding: 1.75rem 0 2.5rem; color: var(--doux); font-size: .86rem; }
.an-pied p { margin: 0 0 .35rem; }
@media (max-width: 600px) { .an-heros { padding: 3rem 0 2.5rem; } .an-cartes { grid-template-columns: 1fr; } .an-touche { display: none; } .an-creer { font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) { .an-carte a, .an-fleche { transition: none; } }
