/* ════════════════════════════════════════════════════
   ANSANM — le réseau de VIGIDOMTOM PRO
   S'appuie sur vdtp-harmonie.css (couleurs, boutons, champs, cartes).
   ════════════════════════════════════════════════════ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ans-lead { color: #5B6472; font-size: .98rem; line-height: 1.7; margin: .9rem 0 0; max-width: 60ch; }

/* ── En-tête de l'outil ── */
.ans-hero { padding-block: clamp(56px, 7vw, 96px); }
.ans-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ans-hero .vdtp-header__title { max-width: 16ch; }
.ans-hero__eyebrow { margin: 0 0 1.1rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.ans-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.1rem; }
.ans-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.ans-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.ans-btn-ghost:focus-visible { outline-color: #fff; }

/* Grille des territoires (silhouettes réelles, liens vers les pages de territoire) */
.ans-hero__visual { position: relative; padding-bottom: 76px; }
.ans-terr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ans-terr a {
   position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .15rem;
   aspect-ratio: 1 / 1; padding: .7rem .4rem .55rem; border-radius: 16px; text-align: center; text-decoration: none;
   background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff;
   transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ans-terr svg { flex: 1; width: 72%; min-height: 0; fill: #fff; opacity: .95; transition: transform var(--dur) var(--ease); }
.ans-terr span { font-size: .72rem; font-weight: 700; line-height: 1.2; }
.ans-terr small { min-height: 1em; font-size: .66rem; font-weight: 600; color: var(--vdtp-sun); }
.ans-terr a:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.45); transform: translateY(-3px); }
.ans-terr a:hover svg { transform: scale(1.06); }
.ans-terr a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ans-terr a.is-active { background: #fff; color: var(--vdtp-ink); }
.ans-terr a.is-active svg { fill: var(--vdtp-blue); }
.ans-hero__badge {
   position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
   display: flex; align-items: center; gap: .8rem; padding: .7rem 1.2rem .7rem .8rem;
   background: #fff; border-radius: 999px; box-shadow: 0 20px 50px rgba(10,30,80,.28); white-space: nowrap;
}
.ans-hero__badge img { width: 46px; height: 46px; }
.ans-hero__badge b { display: block; font-size: 1.15rem; letter-spacing: .06em; color: var(--vdtp-blue); line-height: 1.1; }
.ans-hero__badge small { font-size: .78rem; font-weight: 600; color: #8A93A3; }
@media (max-width: 991.98px) {
   .ans-hero__grid { grid-template-columns: 1fr; }
   .ans-hero .vdtp-header__title { max-width: none; }
}
@media (max-width: 575.98px) {
   .ans-terr { grid-template-columns: repeat(3, 1fr); gap: 8px; }
   .ans-terr span { font-size: .66rem; }
}

/* Chiffres clés */
.ans-stats-wrap { position: relative; z-index: 3; margin-top: -36px; }
.ans-stats {
   display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
   background: #fff; border: 1px solid #E3E6EE; border-radius: 20px; box-shadow: 0 20px 50px rgba(26,39,68,.08);
}
.ans-stats div { padding: 1.2rem 1.4rem; border-left: 1px solid #E3E6EE; }
.ans-stats div:first-child { border-left: 0; }
.ans-stats dt { order: 2; font-size: .8rem; font-weight: 600; color: #5B6472; }
.ans-stats dd { margin: 0 0 .1rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; color: var(--vdtp-blue); line-height: 1.1; }
.ans-stats div { display: flex; flex-direction: column-reverse; }
@media (max-width: 767.98px) {
   .ans-stats { grid-template-columns: 1fr 1fr; }
   .ans-stats div:nth-child(3) { border-left: 0; }
   .ans-stats div:nth-child(n+3) { border-top: 1px solid #E3E6EE; }
}

/* ── Annuaire ── */
.ans-dir__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ans-tools { display: grid; gap: 1rem; padding: 1rem; margin-bottom: 1.25rem; background: #F6F8FB; border: 1px solid #E3E6EE; border-radius: 20px; }
.ans-tabs { margin: 0; flex-wrap: wrap; max-width: 100%; }
.ans-tabs .vdtp-seg__btn { display: inline-flex; align-items: center; gap: .45rem; }
.ans-count { min-width: 1.4rem; padding: .05rem .4rem; border-radius: 999px; background: var(--vdtp-blue); color: #fff; font-size: .72rem; line-height: 1.4; }
.ans-filters { display: grid; grid-template-columns: 1.6fr 1fr; gap: .75rem; }
.ans-search { position: relative; margin: 0; }
.ans-search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8A93A3; font-size: .9rem; pointer-events: none; }
.ans-search input {
   width: 100%; height: 50px; margin: 0; padding: 0 1rem 0 2.6rem;
   font: inherit; font-size: .95rem; color: var(--vdtp-ink);
   background: #fff; border: 1px solid #D9DEE7; border-radius: 12px;
   transition: border-color .2s ease, box-shadow .2s ease;
}
.ans-search input:focus { outline: none; border-color: var(--vdtp-blue); box-shadow: 0 0 0 4px rgba(0,127,255,.12); }
@media (max-width: 479.98px) {
   .ans-filters { grid-template-columns: 1fr !important; }
}
@media (max-width: 767.98px) {
   .ans-filters { grid-template-columns: 1fr 1fr; }
   .ans-search { grid-column: 1 / -1; }
   .ans-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
   .ans-tabs .vdtp-seg__btn { justify-content: center; border-radius: 14px; padding: .6rem .5rem; font-size: .86rem; }
}

.ans-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.25rem; }
.ans-results { margin: 0; font-weight: 700; color: var(--vdtp-ink); }
.ans-note { margin: 0; font-size: .85rem; color: #5B6472; }
.ans-note i { color: var(--vdtp-blue); margin-right: .25rem; }
.ans-note.is-error { color: #A3261F; }

.ans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 991.98px) { .ans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ans-grid { grid-template-columns: 1fr; } }

.ans-card {
   position: relative; display: flex; flex-direction: column; gap: .9rem;
   padding: 22px; background: #fff; border: 1px solid #E3E6EE; border-radius: 20px;
   animation: ans-in .6s var(--ease) both;
   transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.ans-card:hover { transform: translateY(-4px); border-color: #D3D9E4; box-shadow: 0 16px 40px rgba(26,39,68,.08); }
@keyframes ans-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ans-card__top { display: flex; align-items: center; gap: .85rem; }
.ans-card:has(.ans-tag--example) .ans-card__top { padding-right: 72px; } /* laisse la place au badge « Exemple » */
.ans-avatar {
   flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
   border-radius: 14px; font-weight: 800; font-size: 1rem; letter-spacing: .02em;
}
.ans-avatar[data-tone="0"] { background: #EAF3FF; color: #0062C4; }
.ans-avatar[data-tone="1"] { background: #FFF6CC; color: #7A6100; }
.ans-avatar[data-tone="2"] { background: #E8F5E3; color: #2F6E1F; }
.ans-avatar[data-tone="3"] { background: #E9EDF7; color: #235E98; }
.ans-card__meta { min-width: 0; }
.ans-card__sector { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A93A3; }
.ans-card__place { display: block; font-size: .85rem; color: #5B6472; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-card__place i { color: var(--vdtp-blue); margin-right: .25rem; font-size: .8em; }
.ans-card h3 { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: var(--vdtp-ink); }
.ans-card p { margin: 0; font-size: .92rem; line-height: 1.6; color: #5B6472; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ans-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #E3E6EE; }
.ans-card__open { border: 0; background: none; padding: 0; }
.ans-card__open::after { content: ""; position: absolute; inset: 0; border-radius: 20px; } /* toute la carte est cliquable */
.ans-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #F2F4F8; color: #5B6472; }
.ans-tag--example { position: absolute; top: 18px; right: 18px; background: #FFF6CC; color: #7A6100; }
.ans-fav {
   position: relative; z-index: 2; width: 40px; height: 40px; flex: none;
   display: inline-flex; align-items: center; justify-content: center;
   border: 1px solid #E3E6EE; border-radius: 50%; background: #fff; color: #8A93A3;
   transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s var(--ease);
}
.ans-fav:hover { color: #E0435B; border-color: #F3C1CA; }
.ans-fav[aria-pressed="true"] { color: #E0435B; background: #FDECEF; border-color: #F3C1CA; }
.ans-fav:active { transform: scale(.9); }
.ans-fav:focus-visible, .ans-card__open:focus-visible::after { outline: 3px solid var(--vdtp-ink); outline-offset: 2px; }

.ans-empty { max-width: 460px; margin: 1rem auto 0; padding: 2.5rem 1.5rem; text-align: center; border: 1px dashed #D3D9E4; border-radius: 20px; }
.ans-empty h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 700; color: var(--vdtp-ink); }
.ans-empty p { margin: 0 0 1.4rem; color: #5B6472; }

/* ── Pastilles de territoire ── */
.ans-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem .1rem .35rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
@media (min-width: 992px) { .ans-chips { flex-wrap: wrap; overflow: visible; padding: 0; } }
.ans-chip {
   flex: none; display: inline-flex; align-items: center; gap: .45rem; scroll-snap-align: start;
   padding: .45rem .85rem .45rem .5rem; border: 1px solid #D9DEE7; border-radius: 999px; background: #fff;
   font-size: .85rem; font-weight: 600; color: #3E4658; white-space: nowrap;
   transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ans-chip svg { width: 22px; height: 22px; fill: var(--vdtp-blue); }
.ans-chip i { width: 22px; text-align: center; color: var(--vdtp-blue); }
.ans-chip b { font-size: .7rem; font-weight: 700; color: #8A93A3; }
.ans-chip:hover { border-color: var(--vdtp-blue); color: var(--vdtp-ink); }
.ans-chip[aria-pressed="true"] { background: var(--vdtp-blue); border-color: var(--vdtp-blue); color: #fff; }
.ans-chip[aria-pressed="true"] svg { fill: #fff; }
.ans-chip[aria-pressed="true"] i, .ans-chip[aria-pressed="true"] b { color: #fff; }
.ans-chip:focus-visible { outline: 3px solid var(--vdtp-ink); outline-offset: 2px; }

/* ── Cartes enrichies ── */
.ans-card { overflow: hidden; isolation: isolate; }
.ans-card__shape { position: absolute; right: -14px; bottom: 34px; width: 120px; height: 120px; fill: var(--vdtp-blue); opacity: .06; z-index: -1; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ans-card:hover .ans-card__shape { opacity: .1; transform: scale(1.05) rotate(-3deg); }
.ans-avatar { font-size: 1.15rem; }
.ans-avatar[data-tone="0"] { background: #EAF3FF; color: #0062C4; }
.ans-avatar[data-tone="1"] { background: #FFF6CC; color: #7A6100; }
.ans-avatar[data-tone="2"] { background: #E8F5E3; color: #2F6E1F; }
.ans-avatar[data-tone="3"] { background: #FDECEF; color: #B3364C; }
.ans-avatar[data-tone="4"] { background: #EFEAFB; color: #5B3FB0; }
.ans-avatar[data-tone="5"] { background: #E3F6F7; color: #0E7480; }
.ans-avatar[data-tone="6"] { background: #FFEFE3; color: #B2530F; }
.ans-avatar[data-tone="7"] { background: #EEF0F4; color: #4A5468; }
.ans-card h3 a { color: inherit; text-decoration: none; }
.ans-type { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; color: #5B6472; }
.ans-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vdtp-blue); }
.ans-type[data-kind="offer"]::before { background: #2FA84F; }
.ans-type[data-kind="need"]::before { background: #E8B400; }
.ans-card__actions { display: flex; align-items: center; gap: .6rem; }
.ans-credit { font-size: .8rem !important; color: #8A93A3 !important; }

/* Logo d'une fiche : à la place de l'icône de secteur, sur fond blanc, sans déformation */
.ans-avatar--logo { background: #fff; border: 1px solid #E3E6EE; padding: 4px; overflow: hidden; }
.ans-avatar--logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 9px; }
.ans-entry__head .ans-avatar.ans-avatar--logo { width: 76px; height: 76px; padding: 6px; border-radius: 18px; }
.ans-card .ans-avatar--logo { width: 56px; height: 56px; }

/* Champ « Logo ou image » du formulaire */
.ans-upload__label { font-size: .85rem; font-weight: 600; color: var(--vdtp-ink); }
.ans-upload__label small { font-weight: 400; color: #8A93A3; margin-left: .25rem; }
.ans-upload__box { display: flex; align-items: center; gap: 1rem; padding: .85rem; border: 1px dashed #C9D1DE; border-radius: 14px; background: #F9FAFC; transition: border-color .2s ease, background-color .2s ease; }
.ans-upload__box:hover, .ans-upload__box:focus-within { border-color: var(--vdtp-blue); background: #F3F8FF; }
.ans-upload__thumb { flex: none; width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #fff; border: 1px solid #E3E6EE; color: #B4BCCB; font-size: 1.6rem; overflow: hidden; }
.ans-upload__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ans-upload__body { min-width: 0; }
.ans-upload__body p { margin: .45rem 0 0; font-size: .8rem; line-height: 1.5; color: #8A93A3; }
.ans-upload__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.ans-upload__actions .btn { min-height: 38px; padding: 0 16px; font-size: 13px; cursor: pointer; }
.ans-upload__remove { border: 0; background: none; padding: 0; font-size: .85rem; color: #A3261F; }
.ans-upload__remove:hover { color: #7E1C16; }
.ans-upload__box:has(input:focus-visible) [data-upload-pick] { outline: 3px solid var(--vdtp-ink); outline-offset: 2px; }
@media (max-width: 479.98px) { .ans-upload__box { align-items: flex-start; } .ans-upload__thumb { width: 60px; height: 60px; } }
#dlg-entry { isolation: isolate; }
.ans-entry__shape { position: absolute; right: 24px; top: 70px; width: 150px; height: 150px; fill: var(--vdtp-blue); opacity: .06; z-index: -1; pointer-events: none; }
.ans-entry__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #E3E6EE; }
.ans-entry__links button.vdtp-link { border: 0; background: none; padding: 0; }

/* ── Pages publiques : territoire et fiche (/reseau/…) ── */
.ans-page-hero { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ans-page-hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.ans-page-hero__shape { width: min(260px, 100%); aspect-ratio: 1 / 1; fill: #fff; opacity: .95; filter: drop-shadow(0 20px 40px rgba(10,30,80,.25)); }
.ans-page-hero__icon { font-size: 9rem; color: rgba(255,255,255,.9); }
.ans-page-hero__count { position: absolute; right: 0; bottom: 0; padding: .55rem 1rem; border-radius: 999px; background: #fff; color: var(--vdtp-ink); font-weight: 600; box-shadow: 0 12px 30px rgba(10,30,80,.2); }
.ans-page-hero__count b { color: var(--vdtp-blue); font-size: 1.15rem; }
.ans-hero--page .vdtp-header__title { max-width: 22ch; }
.ans-hero--page .vdtp-header__lead i { color: var(--vdtp-sun); }
@media (max-width: 767.98px) {
   .ans-page-hero { grid-template-columns: 1fr; }
   .ans-page-hero__visual { order: -1; justify-content: flex-start; }
   .ans-page-hero__shape { width: 120px; }
   .ans-page-hero__icon { font-size: 5rem; }
   .ans-page-hero__count { position: static; margin-left: 1rem; }
}
.ans-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0 0 1.4rem; padding: 0; font-size: .82rem; }
.ans-crumbs li { color: rgba(255,255,255,.75); }
.ans-crumbs li + li::before { content: "›"; margin-right: .5rem; color: rgba(255,255,255,.5); }
.ans-crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.ans-crumbs a:hover { text-decoration-color: #fff; }

.ans-fiche { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ans-fiche__main, .ans-fiche__side { padding: clamp(22px, 3vw, 36px); background: #fff; border: 1px solid #E3E6EE; border-radius: 24px; }
.ans-fiche__main .ans-entry__head { margin-right: 0; }
.ans-fiche__side { position: sticky; top: 110px; background: #F6F8FB; }
.ans-fiche__side h2 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 700; color: var(--vdtp-ink); }
.ans-fiche__side > p { color: #5B6472; font-size: .94rem; line-height: 1.6; margin: 0 0 1.25rem; }
@media (max-width: 991.98px) { .ans-fiche { grid-template-columns: 1fr; } .ans-fiche__side { position: static; } }

.ans-related { margin-top: clamp(40px, 5vw, 64px); }
.ans-dir > .container > .ans-related:first-child, .ans-dir > .container > .ans-empty:first-child { margin-top: 0; }
.ans-related .sec-title { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ans-related__count { display: inline-flex; min-width: 2rem; justify-content: center; padding: .1rem .55rem; border-radius: 999px; background: #EAF3FF; color: var(--vdtp-blue); font-size: .95rem; }
.ans-related__sub { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; color: var(--vdtp-ink); }
.ans-terr-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ans-terr-links .ans-chip { text-decoration: none; }

/* ── Notre ambition ── */
.ans-why { background: #F6F8FB; }
.ans-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ans-steps li { display: flex; gap: 1.25rem; padding: 1.5rem; background: #fff; border: 1px solid #E3E6EE; border-radius: 20px; }
.ans-steps li > span { flex: none; font-size: .95rem; font-weight: 800; color: var(--vdtp-blue); padding-top: .15rem; }
.ans-steps h3 { margin: 0 0 .35rem; font-size: 1.12rem; font-weight: 700; color: var(--vdtp-ink); }
.ans-steps p { margin: 0; color: #5B6472; font-size: .94rem; line-height: 1.65; }

/* ── Appel final ── */
.ans-cta { padding: clamp(48px, 6vw, 88px) 0; }
.ans-cta__box {
   display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
   padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: var(--vdtp-blue); color: #fff;
}
.ans-cta__box h2 { margin: .4rem 0 .6rem; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; line-height: 1.25; max-width: 22ch; }
.ans-cta__box p { margin: 0; color: rgba(255,255,255,.9); }
.ans-cta__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ans-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.ans-cta__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.ans-cta__links button { border: 0; background: none; padding: 0; color: #fff; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.ans-cta__links button:hover { opacity: 1; }

/* ── Fenêtres ── */
.ans-dlg {
   width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto;
   padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 24px; background: #fff; color: var(--vdtp-ink);
   box-shadow: 0 40px 100px rgba(10,20,50,.3); overflow: auto; overscroll-behavior: contain;
}
.ans-dlg--small { width: min(520px, calc(100% - 24px)); }
.ans-dlg::backdrop { background: rgba(14,22,44,.55); backdrop-filter: blur(3px); }
.ans-dlg[open] { animation: ans-pop .45s var(--ease); }
@keyframes ans-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ans-dlg__close {
   position: sticky; top: 0; float: right; margin: -8px -8px 0 0; z-index: 3;
   width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
   border: 1px solid #E3E6EE; border-radius: 50%; background: #fff; color: var(--vdtp-ink); font-size: 1.05rem;
}
.ans-dlg__close:hover { background: #F2F4F8; }
.ans-dlg__close:focus-visible { outline: 3px solid var(--vdtp-ink); outline-offset: 2px; }
.ans-dlg__title { margin: .3rem 0 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.25; color: var(--vdtp-ink); }
.ans-dlg .vdtp-form { margin-top: 1.5rem; }
.ans-form-1col { grid-template-columns: 1fr; }

.ans-kind { margin: 0; padding: 0; border: 0; min-width: 0; }
.ans-kind legend { float: none; width: auto; margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; color: var(--vdtp-ink); }
.ans-kind .vdtp-seg { margin: 0; flex-wrap: wrap; }
.ans-kind .vdtp-seg__btn { margin: 0; cursor: pointer; }
.ans-kind .vdtp-seg__btn { position: relative; }
.ans-kind input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ans-kind .vdtp-seg__btn:has(input:checked) { background: #fff; color: var(--vdtp-blue); box-shadow: 0 2px 8px rgba(26,39,68,.1); }
.ans-kind .vdtp-seg__btn:has(input:focus-visible) { outline: 3px solid var(--vdtp-ink); outline-offset: 2px; }
.ans-counter { align-self: flex-end; font-size: .75rem; color: #8A93A3; }
.ans-inline { border: 0; background: none; padding: 0; color: var(--vdtp-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.ans-codes { margin-top: 1.5rem; padding: 1.25rem; border-radius: 16px; background: #FFF9DB; border: 1px solid #F3E28A; }
.ans-codes p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.6; color: #5B4A00; }
.ans-codes button.vdtp-link { border: 0; background: none; padding: 0; }
.ans-codes dl { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 .9rem; }
.ans-codes dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A7A2A; }
.ans-codes dd { margin: .2rem 0 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.15rem; font-weight: 700; color: var(--vdtp-ink); user-select: all; }

/* Bouton secondaire bleu filaire (fiche détaillée) */
.ans-btn-outline { background: #fff; color: var(--vdtp-blue); box-shadow: inset 0 0 0 1.5px var(--vdtp-blue); }
.ans-btn-outline:hover { background: #EAF3FF; color: var(--vdtp-blue-d); transform: translateY(-2px); }

/* Fiche détaillée */
.ans-entry__head { display: flex; gap: 1rem; align-items: center; margin: .2rem 3rem 1.25rem 0; }
.ans-entry__head .ans-avatar { width: 60px; height: 60px; font-size: 1.15rem; border-radius: 16px; }
.ans-entry__desc { margin: 0 0 1.5rem; color: #3E4658; line-height: 1.75; white-space: pre-line; word-break: break-word; }
.ans-entry__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 1.5rem; background: #E3E6EE; border: 1px solid #E3E6EE; border-radius: 16px; overflow: hidden; }
.ans-entry__facts div { padding: .85rem 1rem; background: #fff; }
.ans-entry__facts dt { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A93A3; }
.ans-entry__facts dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 600; word-break: break-word; }
.ans-entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ans-entry__actions .ans-fav { width: 52px; height: 52px; }
.ans-entry__note { margin: 1.25rem 0 0; font-size: .8rem; color: #8A93A3; }

.ans-prose { margin-top: 1rem; }
.ans-prose p { margin: 0 0 .9rem; font-size: .94rem; line-height: 1.7; color: #3E4658; }
.ans-prose a { color: var(--vdtp-blue); font-weight: 600; }

/* ── Aperçu sur l'accueil ── */
.ans-teaser { padding: clamp(56px, 7vw, 100px) 0; }
.ans-teaser__box {
   display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center;
   padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--vdtp-blue); color: #fff; overflow: hidden;
}
.ans-teaser__box .sec-title { color: #fff; }
.ans-teaser__box .sub-title { color: var(--vdtp-sun); }
.ans-teaser__box p { color: rgba(255,255,255,.9); line-height: 1.7; margin: 1rem 0 1.75rem; max-width: 52ch; }
.ans-teaser__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ans-teaser__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ans-teaser__list li { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.ans-teaser__list i { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: var(--vdtp-blue); }
.ans-teaser__list b { display: block; font-size: 1rem; }
.ans-teaser__list span { font-size: .88rem; color: rgba(255,255,255,.85); }
@media (max-width: 991.98px) { .ans-teaser__box { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
   .ans-card, .ans-dlg[open] { animation: none; }
   .ans-card:hover { transform: none; }
}
