/* ═══════════════════════════════════════════════════════════════════
   /accueil-assets/accueil.css — le socle de l’accueil (et des essais A et B)
   Les variantes posent les variables et la mise en page ; ce fichier
   porte la recherche et la liste « Nouveau », identiques des deux côtés.
   Variables attendues : --fond --encre --doux --ligne --carte --accent
   --accent-fort --sur-accent --ombre-teinte
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; background: var(--fond); color: var(--encre); font-family: 'DM Sans', system-ui, sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent-fort); outline-offset: 3px; border-radius: 6px; }
.ac-serif { font-family: 'Fraunces', Georgia, serif; }

/* ── Le champ de recherche ───────────────────────────────────────── */
.ac-recherche { position: relative; width: 100%; max-width: 640px; }
.ac-champ { display: flex; align-items: center; gap: 12px; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r-pill, 999px); padding: 0 20px; height: 58px; box-shadow: 0 1px 2px rgba(var(--ombre-teinte), .06), 0 10px 30px -12px rgba(var(--ombre-teinte), .25); transition: border-color .15s, box-shadow .15s; }
.ac-champ:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 14px 36px -12px rgba(var(--ombre-teinte), .3); }
.ac-champ svg { flex: none; width: 20px; height: 20px; color: var(--doux); }
.ac-champ input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--encre); font: inherit; font-size: 1.05rem; height: 100%; }
.ac-champ input::placeholder { color: var(--doux); }
.ac-champ kbd { flex: none; font: inherit; font-size: .78rem; color: var(--doux); border: 1px solid var(--ligne); border-radius: 6px; padding: 1px 8px; }
@media (pointer: coarse) { .ac-champ kbd { display: none; } }

.ac-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 10px); list-style: none; background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--r-xl, 20px); padding: 8px; box-shadow: 0 2px 4px rgba(var(--ombre-teinte), .08), 0 24px 60px -16px rgba(var(--ombre-teinte), .4); text-align: left; max-height: min(70vh, 520px); overflow-y: auto; }
.ac-item.est-actif .ac-lien { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ac-lien { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md, 12px); }
.ac-ico { flex: none; width: 1.6em; text-align: center; font-size: 1.25rem; line-height: 1; }
.ac-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-titre { font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-detail { font-size: .82rem; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-rub { flex: none; font-size: .72rem; color: var(--doux); border: 1px solid var(--ligne); border-radius: 999px; padding: 2px 9px; }
.ac-vide { padding: 16px; color: var(--doux); font-size: .92rem; line-height: 1.6; }
.ac-guide { margin-top: 6px; display: inline-block; font-weight: 700; color: var(--accent-fort); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .ac-rub { display: none; } .ac-champ { height: 54px; padding: 0 16px; } }


/* ── « Nouveau » ─────────────────────────────────────────────────── */
.ac-nouveau h2 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--doux); margin-bottom: 10px; }
.ac-nouveau ul { list-style: none; display: grid; gap: 4px; }
.ac-new-lien { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md, 12px); transition: background .15s; }
.ac-new-lien:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ac-new-txt { flex: 1; min-width: 0; font-weight: 500; }
.ac-new-date { flex: none; font-size: .8rem; color: var(--doux); }
.ac-nouveau .ac-suite { margin-top: 4px; }
.ac-etage[hidden] { display: none; }
.ac-etage .ac-etage { margin-top: 2px; }
.ac-plus { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; padding: 10px 14px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--accent-fort); background: transparent; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--r-md, 12px); cursor: pointer; transition: background .15s; }
.ac-plus:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ac-plus:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ac-plus-fleche { display: inline-block; transition: transform .2s; }
.ac-plus.est-ouvert .ac-plus-fleche { transform: rotate(180deg); }

/* ── Pied minimal ────────────────────────────────────────────────── */
.ac-pied { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: .85rem; color: var(--doux); padding: 40px 20px 48px; }
.ac-pied a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Recherche : pourquoi ça remonte, et le jaune du site ──────── */
.ac-ou { font-size: .78rem; color: var(--doux); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-info { padding: 6px 12px 2px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--doux); }
.ac-mot { font: inherit; font-weight: 700; color: var(--accent-fort); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* Le jaune de /prompts/ et de /shared/search-highlight.js : .42, et .28 sur fond sombre. */
.ac-res mark.lb-hl { background: rgba(250, 204, 21, .42); color: inherit; border-radius: 3px; padding: 0 1px; }
.ac-res.ac-sombre mark.lb-hl { background: rgba(250, 204, 21, .28); }
