/* ============================================================================
   annoncesphp v2 — site.css : ossature commune aux six déclinaisons.
   Une mise en page CLASSIQUE de site de petites annonces (cf. docs/REFERENCES.md) :
   fond de page sombre, conteneur centré ~1060 px, en-tête à deux rangées (logo + slogan,
   puis barre de menu), contenu à gauche + colonne latérale à droite, titres en bandeaux,
   annonces en lignes à vignette carrée, pagination « Début ‹ 1 2 3 › Fin », pied de page en
   colonnes. Mobile d'abord ; desktop à partir de 900 px. Tout se pilote par --an-* ;
   skins.css les surcharge par déclinaison (.skin-1 … .skin-6), design.css par site.

   VARIABLES :
     --an-accent            couleur du site (posée par le layout depuis site.config.json)
     --an-accent-ink        accent foncé (liens, titres)     --an-accent-soft  fond teinté clair
     --an-accent-line       bordure teintée                  --an-on-accent    texte sur l'accent
     --an-body-bg           fond DE LA PAGE (derrière le conteneur), --an-body-image optionnel
     --an-page-bg           fond du conteneur                --an-page-border  bordure du conteneur
     --an-bg / --an-bg-2 / --an-bg-3   surfaces (contenu / blocs / champs, encadrés)
     --an-ink / --an-ink-2 / --an-ink-3   texte principal / secondaire / discret
     --an-line / --an-line-strong         filets / bordures marquées
     --an-title-ink         couleur des H1 et des titres de ligne
     --an-header-bg / --an-header-ink     rangée du logo
     --an-nav-bg / --an-nav-ink / --an-nav-cur-bg / --an-nav-cur-ink   barre de menu
     --an-band-bg / --an-band-ink         bandeaux de titre (blocs, colonne, sections)
     --an-footer-bg / --an-footer-ink / --an-footer-ink-2   pied de page
     --an-font / --an-font-head / --an-font-logo / --an-font-meta   piles système
     --an-radius / --an-radius-s / --an-radius-btn
     --an-ligne-sep         filet entre deux lignes d'annonces   --an-thumb-border  cadre des vignettes
     --an-wrap / --an-side-w / --an-header-h / --an-photo-w
   ============================================================================ */

:root {
  --an-accent: #c2185b;
  --an-accent-ink: color-mix(in srgb, var(--an-accent) 80%, #000);
  --an-accent-soft: color-mix(in srgb, var(--an-accent) 8%, #fff);
  --an-accent-line: color-mix(in srgb, var(--an-accent) 35%, #fff);
  --an-on-accent: #fff;
  --an-body-bg: color-mix(in srgb, var(--an-accent) 28%, #1a1014);
  --an-body-image: none;
  --an-page-bg: #f7f5f2;
  --an-page-border: transparent;
  --an-page-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 20px 60px -20px rgba(0, 0, 0, .6);
  --an-bg: #f7f5f2;
  --an-bg-2: #fff;
  --an-bg-3: #efece7;
  --an-ink: #1f1c1e;
  --an-ink-2: #4c474b;
  --an-ink-3: #6d676c;
  --an-line: #ddd8d2;
  --an-line-strong: #c4bdb5;
  --an-title-ink: var(--an-accent-ink);
  --an-header-bg: #221d20;
  --an-header-ink: #fff;
  --an-nav-bg: color-mix(in srgb, var(--an-accent) 55%, #1d1518);
  --an-nav-ink: #fff;
  --an-nav-cur-bg: rgba(255, 255, 255, .16);
  --an-nav-cur-ink: #fff;
  --an-band-bg: var(--an-accent);
  --an-band-ink: #fff;
  --an-footer-bg: #221d20;
  --an-footer-ink: #e9e4e6;
  --an-footer-ink-2: #a9a1a6;
  --an-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --an-font-head: var(--an-font);
  --an-font-logo: Georgia, "Times New Roman", serif;
  --an-font-meta: var(--an-font);
  --an-radius: 6px;
  --an-radius-s: 4px;
  --an-radius-btn: 5px;
  --an-ligne-sep: 1px solid var(--an-line);
  --an-thumb-border: var(--an-line-strong);
  --an-gate-bg: rgba(14, 8, 12, .86);
  --an-gate-box: #fff;
  --an-wrap: 1060px;
  --an-side-w: 290px;
  --an-header-h: 60px;
  --an-photo-w: 112px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--an-font); color: var(--an-ink); background: var(--an-body-bg); background-image: var(--an-body-image); min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--an-accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--an-accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .45em; font-family: var(--an-font-head); font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .9em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: .55em .7em; border: 1px solid var(--an-line-strong); border-radius: var(--an-radius-s); background-color: var(--an-bg-2); font-size: 16px; line-height: 1.3; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--an-accent); outline-offset: 1px; border-color: var(--an-accent); }
input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: #c62828; outline-color: #c62828; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7em center; }
input[type=checkbox], input[type=radio] { width: 1.05em; height: 1.05em; display: inline-block; margin: 0 .45em 0 0; vertical-align: -2px; accent-color: var(--an-accent); padding: 0; }
input[type=file] { padding: .4em 0; border: 0; background: none; }
input[type=number] { -moz-appearance: textfield; }
textarea { min-height: 7em; resize: vertical; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3em; }
fieldset { border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 1rem 1rem .4rem; margin: 0 0 1.2rem; min-width: 0; background: var(--an-bg-2); }
legend { font-weight: 700; padding: 0 .5em; font-family: var(--an-font-head); }
:focus-visible { outline: 2px solid var(--an-accent); outline-offset: 2px; }
.an-sr, .an-skip { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.an-skip:focus { left: 8px; top: 8px; width: auto; height: auto; padding: .5em 1em; background: #fff; color: #000; z-index: 1000; border-radius: 6px; }
.an-count { font-size: .78rem; color: var(--an-ink-3); font-family: var(--an-font-meta); font-variant-numeric: tabular-nums; }
.an-count::before { content: "("; }
.an-count::after { content: ")"; }
.an-badge { display: inline-block; background: var(--an-accent); color: var(--an-on-accent); padding: .1em .55em; border-radius: var(--an-radius-s); font-size: .72rem; font-weight: 700; letter-spacing: .03em; vertical-align: middle; text-transform: uppercase; }

/* bandeau de titre : blocs, colonne latérale, sections de fiche et de formulaire */
.an-bandeau { display: flex; align-items: center; justify-content: space-between; gap: .6em; flex-wrap: wrap; margin: 0 0 .8rem; padding: .5em .85em; background: var(--an-band-bg); color: var(--an-band-ink); font-family: var(--an-font-head); font-size: .95rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; border-radius: var(--an-radius-s); }
.an-bandeau a { color: inherit; }
.an-bandeau .an-count { color: inherit; opacity: .85; font-size: .8em; }
.an-bandeau .an-bloc__lien { font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------------------------------------------------------------- boutons */
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .55em 1.1em; border-radius: var(--an-radius-btn); border: 1px solid transparent; text-decoration: none; font-weight: 700; cursor: pointer; line-height: 1.2; text-align: center; font-family: var(--an-font-head); letter-spacing: .01em; background-image: linear-gradient(rgba(255, 255, 255, .14), rgba(0, 0, 0, .06)); box-shadow: 0 1px 1px rgba(0, 0, 0, .12); transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.an-btn--main { background-color: var(--an-accent); color: var(--an-on-accent); border-color: var(--an-accent-ink); }
.an-btn--main:hover { background-color: var(--an-accent-ink); color: var(--an-on-accent); }
.an-btn--second { background-color: var(--an-bg-2); color: var(--an-accent-ink); border-color: var(--an-accent); background-image: none; }
.an-btn--second:hover { background-color: var(--an-accent-soft); color: var(--an-accent-ink); }
.an-btn--ghost { background: transparent; color: var(--an-ink-2); border-color: var(--an-line-strong); box-shadow: none; }
.an-btn--ghost:hover { color: var(--an-ink); border-color: var(--an-ink-3); }
.an-btn--big { font-size: 1.05rem; padding: .7em 1.4em; min-height: 50px; }
.an-btn--block { width: 100%; }
.an-btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------- conteneur */
.an-page { background: var(--an-page-bg); border: 1px solid var(--an-page-border); max-width: var(--an-wrap); margin: 0 auto; min-height: 100vh; }

/* ---------------------------------------------------------------- en-tête (2 rangées) */
.an-header { position: sticky; top: 0; z-index: 60; }
.an-header__top { background: var(--an-header-bg); color: var(--an-header-ink); min-height: var(--an-header-h); display: flex; align-items: center; gap: .8rem; padding: .5rem 1rem; }
.an-logo { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: inherit; min-width: 0; max-width: 72%; }
.an-logo:hover { color: inherit; }
.an-logo__text { font-family: var(--an-font-logo); font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-logo__cap { color: var(--an-accent); }
.an-logo__mark { display: inline-flex; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 6px; background: var(--an-accent); color: var(--an-on-accent); }
.an-logo__mark svg { width: 18px; height: 18px; }
.an-logo__bulle { fill: currentColor; }
.an-logo__lignes { stroke: var(--an-accent); stroke-width: 2.2; fill: none; }
.an-header__slogan { display: none; margin: 0; font-size: .82rem; opacity: .85; }
.an-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--an-radius-s); cursor: pointer; color: inherit; flex: none; }
.an-burger span:not(.an-sr) { display: block; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; transform-origin: center; }
.an-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.an-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.an-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.an-header__cta { display: none; }
/* barre de menu : tiroir plein écran sous l'en-tête sur mobile, rangée horizontale sur desktop */
.an-nav { position: fixed; top: var(--an-header-h); left: 0; right: 0; bottom: 0; z-index: 59; background: var(--an-nav-bg); color: var(--an-nav-ink); padding: 1.1rem 1.25rem calc(1.5rem + 72px); overflow: auto; visibility: hidden; transform: translateY(-6px); opacity: 0; }
.an-nav.is-open { visibility: visible; transform: none; opacity: 1; }
.an-nav__titre { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin: 0 0 .5rem; font-family: var(--an-font-meta); }
.an-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.an-nav__list a { display: block; padding: .75rem 0; text-decoration: none; color: inherit; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .15); font-family: var(--an-font-head); }
.an-nav__list a:hover { opacity: .85; }
.an-nav__list a[aria-current] { background: var(--an-nav-cur-bg); color: var(--an-nav-cur-ink); padding-left: .6rem; padding-right: .6rem; }
.an-nav__list .an-nav__cat a { font-weight: 500; font-size: .98rem; padding-left: 1rem; }
.an-nav__foot { margin: 1.2rem 0 0; }
.an-nav__signup { width: 100%; }

/* ---------------------------------------------------------------- corps */
.an-main { padding: 1rem 1rem 1.6rem; background: var(--an-bg); }
.an-crumbs__list { list-style: none; padding: 0; margin: 0 0 .7rem; display: flex; flex-wrap: wrap; gap: .25em .4em; font-size: .8rem; color: var(--an-ink-3); font-family: var(--an-font-meta); }
.an-crumbs__item + .an-crumbs__item::before { content: "›"; margin-right: .4em; color: var(--an-ink-3); }
.an-crumbs__list a { color: var(--an-ink-2); text-decoration: none; }
.an-crumbs__list a:hover { color: var(--an-accent); text-decoration: underline; }
.an-crumbs__list [aria-current] { color: var(--an-ink); font-weight: 600; }
.an-titre { margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px dotted var(--an-line-strong); }
.an-titre__h1 { margin-bottom: .25em; color: var(--an-title-ink); }
.an-titre__intro { color: var(--an-ink-2); margin: 0; font-size: .95rem; max-width: 80ch; }
.an-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.an-layout__main { min-width: 0; }
.an-side { min-width: 0; }
.an-side__bloc { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); margin-bottom: 1rem; overflow: hidden; }
.an-side__h { margin: 0; border-radius: 0; }
.an-side__body { padding: .85rem .9rem .3rem; }
.an-side__body .an-form__row { margin-bottom: .7rem; }
.an-side__p { font-size: .92rem; color: var(--an-ink-2); }
.an-side__actions { margin: 0 0 .6rem; }
.an-side__list { list-style: none; padding: .35rem .9rem .5rem; margin: 0; }
.an-side__list li { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; padding: .3em 0 .3em .9em; border-bottom: 1px dotted var(--an-line); position: relative; font-size: .92rem; }
.an-side__list li::before { content: "›"; position: absolute; left: 0; top: .2em; color: var(--an-accent); font-weight: 700; }
.an-side__list li:last-child { border-bottom: 0; }
.an-side__list a { text-decoration: none; color: var(--an-ink); min-width: 0; overflow-wrap: anywhere; }
.an-side__list a:hover { color: var(--an-accent); text-decoration: underline; }
.an-side__list--villes { max-height: 380px; overflow: auto; }
.an-side__cur a { font-weight: 700; color: var(--an-accent-ink); }
.an-side__points { list-style: none; padding: 0 .9rem .6rem; margin: 0; font-size: .92rem; }
.an-side__points li { padding: .45em 0; border-bottom: 1px dotted var(--an-line); color: var(--an-ink-2); }
.an-side__points li:last-child { border-bottom: 0; }
.an-side__points strong { color: var(--an-ink); }

/* ---------------------------------------------------------------- accueil : tête + blocs */
.an-hero { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); margin: 0 0 1.2rem; overflow: hidden; }
.an-hero__h2 { margin: 0; border-radius: 0; font-size: 1.05rem; }
.an-hero__body { padding: 1rem 1rem .4rem; }
.an-hero__kicker { font-size: .82rem; color: var(--an-accent-ink); font-weight: 700; margin: 0 0 .35em; font-family: var(--an-font-meta); }
.an-hero__texte { color: var(--an-ink-2); font-size: .95rem; margin: 0 0 .9em; }
.an-hero__ou { font-size: .9rem; color: var(--an-ink-3); margin: .6em 0 .6em; }
.an-hero__cta { margin: 0 0 .8em; }
.an-form--hero .an-form__actions .an-btn { width: 100%; }
.an-tete { margin-bottom: 1.2rem; }
.an-tete--duo { display: grid; gap: 1rem; }
.an-tete .an-hero, .an-tete .an-moteur { margin: 0; }
.an-moteur { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); overflow: hidden; margin: 0 0 1.2rem; }
.an-moteur__h2 { margin: 0; border-radius: 0; font-size: 1.05rem; }
.an-moteur__body { padding: .9rem 1rem .2rem; }
.an-hero__compteurs { list-style: none; padding: 0; margin: .6rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .3em 1.4em; font-size: .88rem; color: var(--an-ink-2); font-family: var(--an-font-meta); }
.an-hero__compteurs strong { color: var(--an-accent-ink); font-size: 1.05rem; }
.an-bloc { margin: 0 0 1.4rem; }
.an-bloc__head { margin: 0 0 .8rem; }
.an-bloc__head .an-bloc__h { margin: 0; }
.an-bloc__sub { margin: .5rem 0 0; color: var(--an-ink-2); font-size: .92rem; }
.an-bloc__more { margin: .8rem 0 0; text-align: center; }
.an-vide { color: var(--an-ink-2); background: var(--an-bg-2); border: 1px dashed var(--an-line-strong); padding: 1rem; border-radius: var(--an-radius); }
.an-cats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; }
.an-cats__link { display: flex; justify-content: space-between; align-items: baseline; gap: .6em; padding: .45em .2em .45em 1em; border-bottom: 1px dotted var(--an-line); text-decoration: none; color: var(--an-ink); position: relative; font-weight: 600; font-size: .95rem; }
.an-cats__link::before { content: "›"; position: absolute; left: .1em; color: var(--an-accent); font-weight: 700; }
.an-cats__link:hover { color: var(--an-accent-ink); text-decoration: underline; }
.an-geo { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.2rem; }
.an-geo li { display: flex; justify-content: space-between; gap: .5em; padding: .3em .2em .3em .9em; border-bottom: 1px dotted var(--an-line); break-inside: avoid; position: relative; font-size: .92rem; }
.an-geo li::before { content: "›"; position: absolute; left: .1em; color: var(--an-accent); font-weight: 700; }
.an-geo a { text-decoration: none; color: var(--an-ink); min-width: 0; overflow-wrap: anywhere; }
.an-geo a:hover { color: var(--an-accent); text-decoration: underline; }
.an-etapes, .an-reassurance { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.an-etapes__item, .an-reassurance__item { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: .9rem .9rem .9rem 3.8rem; position: relative; }
.an-etapes__ico, .an-reassurance__ico { position: absolute; left: .8rem; top: .85rem; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--an-radius-s); background: var(--an-accent-soft); color: var(--an-accent-ink); }
.an-etapes__ico svg, .an-reassurance__ico svg { width: 22px; height: 22px; }
.an-etapes__t, .an-reassurance__t { display: block; font-family: var(--an-font-head); font-size: .98rem; margin-bottom: .1em; color: var(--an-title-ink); }
.an-etapes__p, .an-reassurance__p { color: var(--an-ink-2); font-size: .9rem; }
.an-bloc--texte { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 1rem 1.1rem .2rem; font-size: .95rem; color: var(--an-ink-2); }
.an-bloc--texte h2 { font-size: 1.02rem; color: var(--an-title-ink); }
.an-faq { margin: 0; }
.an-faq__item { border-bottom: 1px dotted var(--an-line); padding: .6rem 0; }
.an-faq__item:last-child { border-bottom: 0; }
.an-faq__q { font-weight: 700; font-family: var(--an-font-head); margin-bottom: .2em; color: var(--an-title-ink); }
.an-faq__r { margin: 0; color: var(--an-ink-2); font-size: .93rem; }
.an-deposer-cta { background: var(--an-accent-soft); border: 1px solid var(--an-accent-line); border-radius: var(--an-radius); padding: 1.2rem 1rem; text-align: center; }
.an-deposer-cta p { max-width: 60ch; margin-left: auto; margin-right: auto; color: var(--an-ink-2); }
.an-deposer-cta .an-bloc__h { background: none; color: var(--an-title-ink); padding: 0; justify-content: center; font-size: 1.1rem; }
.an-deposer-cta__t { font-weight: 700; font-family: var(--an-font-head); font-size: 1.05rem; color: var(--an-title-ink); }
.an-deposer-cta__btn { margin: 0; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- moteur / filtres */
.an-outils { margin-bottom: .9rem; background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: .7rem .8rem .1rem; }
.an-filters { display: grid; grid-template-columns: 1fr; gap: .55rem; margin: 0 0 .6rem; }
.an-filters__field span { display: block; font-weight: 700; font-size: .8rem; color: var(--an-accent-ink); margin-bottom: .2em; font-style: italic; }
.an-filters__go { min-height: 42px; }
.an-list__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin: 0 0 .5rem; flex-wrap: wrap; font-size: .92rem; color: var(--an-ink-2); }
.an-list__count { margin: 0; }
.an-list__count strong { color: var(--an-ink); }
.an-list__deposer-lien { min-height: 36px; padding: .35em .9em; font-size: .88rem; }
.an-list__deposer { margin: 1.4rem 0 0; }

/* ---------------------------------------------------------------- lignes (la valeur du site : la liste d'annonces) */
.an-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 1rem; background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 0 .8rem; }
.an-ligne { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "media body" "extrait extrait" "action action"; gap: .25rem .8rem; padding: .8rem 0; border-bottom: var(--an-ligne-sep); position: relative; }
.an-ligne:last-child { border-bottom: 0; }
.an-ligne__media { grid-area: media; display: block; position: relative; width: 88px; align-self: start; }
.an-ligne__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--an-thumb-border); padding: 2px; background: var(--an-bg-2); border-radius: var(--an-radius-s); }
.an-ligne__photos { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .7rem; padding: .15em .45em; border-radius: 3px; display: inline-flex; align-items: center; gap: .3em; font-family: var(--an-font-meta); }
.an-ligne__body { grid-area: body; min-width: 0; }
.an-ligne__head { margin: 0 0 .15em; display: flex; align-items: center; gap: .5em; flex-wrap: wrap; font-size: .76rem; font-family: var(--an-font-meta); color: var(--an-ink-3); }
.an-ligne__cat { color: var(--an-accent-ink); font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; position: relative; z-index: 1; }
.an-ligne__cat:hover { text-decoration: underline; }
.an-ligne__new { background: var(--an-accent); color: var(--an-on-accent); font-weight: 700; padding: .05em .45em; border-radius: 3px; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.an-ligne__date { margin-left: auto; white-space: nowrap; }
.an-ligne__title { margin: 0 0 .2em; font-size: 1.02rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.an-ligne__title a { color: var(--an-title-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.an-ligne__title a::after { content: ""; position: absolute; inset: 0; }
.an-ligne__title a:hover { color: var(--an-accent); }
.an-ligne__who { margin: 0; font-size: .85rem; color: var(--an-ink-3); font-family: var(--an-font-meta); }
.an-ligne__pseudo { font-weight: 700; color: var(--an-ink-2); }
.an-ligne__sep { margin: 0 .35em; }
.an-ligne__lieu { color: var(--an-accent-ink); }
.an-ligne__mid { color: var(--an-ink-3); }
.an-ligne__extrait { grid-area: extrait; margin: 0; font-size: .9rem; color: var(--an-ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.an-ligne__action { grid-area: action; margin: 0; text-align: right; }
.an-ligne__lire.an-btn { min-height: 0; padding: .15em .1em; border: 0; background: none; box-shadow: none; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; color: var(--an-accent-ink); position: relative; z-index: 1; }
.an-ligne__lire.an-btn:hover { color: var(--an-accent); }
.an-ligne--sans-photo .an-ligne__img { opacity: .8; }

/* ---------------------------------------------------------------- pagination « Début ‹ 1 2 3 › Fin » */
.an-pager { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; justify-content: center; margin: 1rem 0 1.4rem; font-family: var(--an-font-meta); font-size: .9rem; }
.an-pager__pages { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.an-pager a, .an-pager span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: .25em .55em; border: 1px solid var(--an-line-strong); border-radius: var(--an-radius-s); background: var(--an-bg-2); text-decoration: none; color: var(--an-ink); font-weight: 600; }
.an-pager a:hover { border-color: var(--an-accent); color: var(--an-accent-ink); }
.an-pager__cur { background: var(--an-accent) !important; color: var(--an-on-accent) !important; border-color: var(--an-accent-ink) !important; }
.an-pager__first, .an-pager__last { font-size: .82rem; }

/* ---------------------------------------------------------------- fiche d'annonce */
.an-fiche { position: relative; }
.an-fiche__head { margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 1px dotted var(--an-line-strong); }
.an-fiche__sur { margin: 0 0 .3em; display: flex; align-items: center; gap: .6em; flex-wrap: wrap; font-size: .78rem; font-family: var(--an-font-meta); }
.an-fiche__cat { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; text-decoration: none; color: var(--an-accent-ink); }
.an-fiche__h1 { margin: 0 0 .3em; color: var(--an-title-ink); }
.an-fiche__meta { color: var(--an-ink-2); font-size: .9rem; margin: 0; font-family: var(--an-font-meta); display: flex; flex-wrap: wrap; gap: .15em .4em; align-items: center; }
.an-fiche__pseudo { font-weight: 700; color: var(--an-ink); }
.an-fiche__sep { color: var(--an-ink-3); }
.an-fiche__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0 0 1.4rem; }
.an-fiche__media { order: 1; min-width: 0; }
.an-fiche__aside { order: 2; min-width: 0; }
.an-fiche__main { order: 3; min-width: 0; }
.an-gallery { margin: 0; }
/* scène : hauteur bornée, la photo n'est JAMAIS agrandie au-delà de sa taille native ; copie floutée en fond */
.an-gallery__stage { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 340px; border-radius: var(--an-radius-s); background: var(--an-bg-3); border: 1px solid var(--an-thumb-border); padding: 3px; isolation: isolate; }
.an-gallery__fond { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(22px) saturate(1.1); opacity: .7; z-index: 0; }
.an-gallery__main { position: relative; z-index: 1; width: auto; height: auto; max-width: min(100%, 420px); max-height: 100%; object-fit: contain; }
.an-gallery--vide .an-gallery__main { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.an-gallery__thumbs { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.an-gallery__thumb { padding: 2px; border: 1px solid var(--an-thumb-border); border-radius: var(--an-radius-s); background: var(--an-bg-2); cursor: pointer; width: 62px; height: 62px; overflow: hidden; }
.an-gallery__thumb.is-active { border-color: var(--an-accent); outline: 1px solid var(--an-accent); }
.an-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.an-gallery--vide figcaption { font-size: .82rem; color: var(--an-ink-3); margin-top: .4rem; text-align: center; }
/* tableau d'identité */
.an-fiche__id { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0 0 1rem; border: 1px solid var(--an-line); border-radius: var(--an-radius-s); overflow: hidden; font-size: .9rem; background: var(--an-bg-2); }
.an-fiche__id dt { padding: .4em .7em; background: var(--an-bg-3); font-weight: 700; color: var(--an-ink-2); border-bottom: 1px solid var(--an-line); white-space: nowrap; }
.an-fiche__id dd { margin: 0; padding: .4em .7em; border-bottom: 1px solid var(--an-line); min-width: 0; overflow-wrap: anywhere; }
.an-fiche__id dt:last-of-type, .an-fiche__id dd:last-of-type { border-bottom: 0; }
.an-fiche__id .an-fiche__genre, .an-fiche__id .an-fiche__lieu a { color: var(--an-accent-ink); font-weight: 700; }
.an-fiche__texte { font-size: 1rem; line-height: 1.65; }
.an-fiche__texte p:last-child { margin-bottom: 0; }
.an-fiche__partenaires { font-weight: 700; margin: 1rem 0; padding: .6em .9em; background: var(--an-accent-soft); border-left: 4px solid var(--an-accent); border-radius: 0 var(--an-radius-s) var(--an-radius-s) 0; font-size: .95rem; }
.an-fiche__bloc { margin: 1.1rem 0 0; }
.an-fiche__h2 { font-size: .88rem; }
.an-fiche__physique { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .4rem .6rem; margin: 0; }
.an-fiche__physique > div { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius-s); padding: .4em .65em; }
.an-fiche__physique dt { font-size: .7rem; color: var(--an-ink-3); text-transform: uppercase; letter-spacing: .05em; font-family: var(--an-font-meta); }
.an-fiche__physique dd { margin: 0; font-weight: 600; font-size: .92rem; }
.an-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.an-chip { background: var(--an-bg-3); border: 1px solid var(--an-line); border-radius: var(--an-radius-s); padding: .25em .7em; font-size: .85rem; display: inline-flex; align-items: center; gap: .3em; }
.an-chip--check { cursor: pointer; font-weight: 500; margin: 0; }
.an-chip--check:has(input:checked) { background: var(--an-accent-soft); border-color: var(--an-accent); color: var(--an-accent-ink); }
.an-fiche__contact { background: var(--an-bg-2); border: 1px solid var(--an-accent-line); border-radius: var(--an-radius); overflow: hidden; }
.an-fiche__contact-h { margin: 0; font-family: var(--an-font-head); font-weight: 700; font-size: 1.05rem; display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; padding: .55em .9em; background: var(--an-band-bg); color: var(--an-band-ink); }
.an-fiche__contact-age { font-weight: 500; font-size: .9rem; opacity: .9; }
.an-fiche__contact-lieu { margin: 0; padding: .6em .9em 0; color: var(--an-ink-2); font-size: .88rem; font-family: var(--an-font-meta); }
.an-cta { display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: .7rem .9rem .8rem; }
.an-cta .an-btn { width: 100%; }
.an-cta__sous { margin: 0 0 .5rem; font-size: .8rem; color: var(--an-ink-3); text-align: center; }
.an-reponse { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); overflow: hidden; margin: 0 0 1.2rem; scroll-margin-top: calc(var(--an-header-h) + 1rem); }
.an-reponse__head { margin: 0; }
.an-reponse__h { margin: 0; border-radius: 0; font-size: 1rem; }
.an-reponse__delai { color: var(--an-ink-2); font-size: .9rem; margin: 0; padding: .8rem .9rem 0; }
.an-reponse .an-form { padding: .8rem .9rem .9rem; }
.an-reponse__ok { text-align: center; padding: 1.2rem .9rem; }
.an-reponse__ok-msg { font-weight: 700; font-size: 1.05rem; }
.an-reponse__ok-sous { color: var(--an-ink-2); }
.an-fiche__signaler { font-size: .82rem; color: var(--an-ink-3); margin: 0 0 1.4rem; }
.an-fiche__signaler-aide { display: block; }
/* barre d'actions basse (mobile) : fiche + listes */
.an-fiche__bar, .an-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--an-bg-2); border-top: 1px solid var(--an-line-strong); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .3); }
.an-fiche__bar .an-btn, .an-bar .an-btn { min-height: 48px; max-height: 60px; padding: .3em .6em; font-size: .9rem; line-height: 1.15; white-space: normal; overflow: hidden; }
.an-page-annonce, .an-has-bar { padding-bottom: 74px; }

/* ---------------------------------------------------------------- formulaires */
.an-form__row { margin: 0 0 .9rem; }
.an-form__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
.an-form__cols > * { min-width: 0; }
select { max-width: 100%; }
.an-form__radios label { display: inline-flex; align-items: center; margin: 0 1em .5em 0; font-weight: 500; }
.an-form__radios--seg { display: flex; flex-wrap: wrap; gap: .35rem; border: 0; padding: 0; background: none; margin-bottom: .9rem; }
.an-form__radios--seg legend { padding: 0; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; font-family: var(--an-font); }
.an-form__radios--seg label { margin: 0; position: relative; }
.an-form__radios--seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.an-form__radios--seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .9em; border: 1px solid var(--an-line-strong); border-radius: var(--an-radius-btn); background: var(--an-bg-2); cursor: pointer; font-weight: 600; font-size: .92rem; transition: background-color .15s, color .15s, border-color .15s; }
.an-form__radios--seg input:checked + span { background: var(--an-accent); border-color: var(--an-accent-ink); color: var(--an-on-accent); }
.an-form__radios--seg input:focus-visible + span { outline: 2px solid var(--an-accent); outline-offset: 2px; }
.an-form__legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; }
.an-form__check label { font-weight: 500; display: flex; align-items: flex-start; gap: .2em; }
.an-form__check input { margin-top: .3em; flex: none; }
.an-form__hp { position: absolute; left: -9999px; }
.an-form__err { display: block; color: #b00020; font-size: .85rem; margin-top: .25em; font-weight: 600; }
.an-form__msg { padding: .7em 1em; border-radius: var(--an-radius-s); background: #fff6d6; border: 1px solid #f2d98a; margin: 0 0 1rem; }
.an-form__msg--err { background: #fde8e8; border-color: #f0b3b3; color: #7a1414; }
.an-form__msg--info { background: #e6f3fb; border-color: #b6d9ee; color: #143f5c; }
.an-form__small { font-size: .82rem; color: var(--an-ink-3); }
.an-form__aide { display: block; font-size: .8rem; color: var(--an-ink-3); margin-top: .3em; font-weight: 400; }
.an-form__count { font-size: .8rem; color: var(--an-ink-3); font-variant-numeric: tabular-nums; }
.an-form__previews { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.an-form__previews img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--an-radius-s); border: 1px solid var(--an-thumb-border); padding: 2px; background: var(--an-bg-2); }
.an-form__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-form__chips .an-form__legend { flex-basis: 100%; }
.an-form__chips label { display: inline-flex; margin: 0; }
.an-form__chips input { margin: 0; }
.an-form__ages { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.an-form__ages .an-form__legend { flex-basis: 100%; }
.an-form__inline { display: inline; margin: 0; font-weight: 500; }
.an-form__num { width: 5.5em; }
.an-form__actions { margin: 1rem 0 0; }
.an-form--depot { counter-reset: section; }
.an-form--depot > .an-form__actions .an-btn { width: 100%; }
/* sections numérotées, titre en bandeau (le legend flotte en pleine largeur) */
.an-form__group { padding: 0 0 .3rem; counter-increment: section; }
.an-form__group > legend { float: left; width: 100%; margin: 0 0 .9rem; padding: .5em .85em; background: var(--an-band-bg); color: var(--an-band-ink); font-size: .95rem; border-radius: 0; }
.an-form__group > legend::before { content: counter(section) ". "; }
.an-form__group > :not(legend) { margin-left: .9rem; margin-right: .9rem; clear: both; }
.an-form__group > .an-form__cols { display: grid; }
.an-gestion__actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.an-gestion__photo { display: inline-block; margin: 0 .5em .5em 0; }
.an-gestion__photo img { border-radius: var(--an-radius-s); margin-bottom: .3em; border: 1px solid var(--an-thumb-border); padding: 2px; }
.an-gestion__statut { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius-s); padding: .7em 1em; }
.an-404 > p { max-width: 70ch; }
.an-merci__lien a { overflow-wrap: anywhere; }
.an-tchat__cta, .an-merci__cta { margin: 1.2rem 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.an-legal h2 { margin-top: 1.4em; font-size: 1.05rem; color: var(--an-title-ink); }
.an-legal, .an-contact, .an-tchat, .an-merci, .an-gestion { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 1.1rem 1.1rem .3rem; }
.an-404 > p:first-child { font-size: 1.05rem; color: var(--an-ink-2); }
.an-404 .an-bloc__h { margin: 1.4rem 0 .8rem; }
.an-tchat .an-bloc { margin-top: 1.2rem; }

/* ---------------------------------------------------------------- pop-up + age gate */
.an-popup { position: fixed; inset: 0; background: rgba(12, 9, 16, .7); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 1rem; }
.an-popup[hidden] { display: none; }
.an-popup__box { position: relative; background: var(--an-bg-2); color: var(--an-ink); border-radius: var(--an-radius); padding: 0 0 1rem; max-width: 420px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); border: 1px solid var(--an-line-strong); }
.an-popup__close { position: absolute; top: .45rem; right: .5rem; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 0; border-radius: 999px; cursor: pointer; color: var(--an-band-ink); z-index: 1; }
.an-popup__close:hover { background: rgba(255, 255, 255, .32); }
.an-popup__head { margin: 0 0 1rem; padding: .9rem 3rem .8rem 1.2rem; background: var(--an-band-bg); color: var(--an-band-ink); }
.an-popup__marque { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; font-weight: 700; margin: 0 0 .2em; font-family: var(--an-font-meta); }
.an-popup__h { margin-bottom: .15em; font-size: 1.15rem; }
.an-popup__sub { opacity: .9; font-size: .88rem; margin: 0; }
.an-popup .an-form, .an-popup__none, .an-prelinker { padding: 0 1.2rem; }
.an-popup__mentions { margin: .8rem 0 0; line-height: 1.4; }
.an-popup__none { margin: 0; }
.an-gate { position: fixed; inset: 0; z-index: 950; background: var(--an-gate-bg); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; }
.an-gate-ok .an-gate, .an-gate.is-hidden { display: none; }
.an-gate__box { background: var(--an-gate-box); color: var(--an-ink); border-radius: var(--an-radius); padding: 1.4rem 1.2rem 1.2rem; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); border-top: 6px solid var(--an-accent); }
.an-gate__art { display: flex; justify-content: center; margin-bottom: .6rem; }
.an-gate__art svg { width: 72px; height: 72px; }
.an-gate__art-fond { fill: var(--an-accent); }
.an-gate__art-18 { fill: var(--an-on-accent); font-family: var(--an-font-head); }
.an-gate__logo { font-weight: 700; font-size: 1.1rem; font-family: var(--an-font-logo); color: var(--an-title-ink); margin: 0 0 .3rem; }
.an-gate__h { font-size: 1.3rem; color: var(--an-accent-ink); }
.an-gate__p { color: var(--an-ink-2); font-size: .95rem; }
.an-gate__actions { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 .7rem; }
.an-gate__enter { width: 100%; }
.an-gate__note { font-size: .76rem; color: var(--an-ink-3); margin: 0; }
.an-prelinker { min-height: 120px; }
.an-prelinker__wait { text-align: center; color: var(--an-ink-3); padding: 2rem 0; }

/* ---------------------------------------------------------------- pied de page en colonnes */
.an-footer { background: var(--an-footer-bg); color: var(--an-footer-ink); padding: 1.4rem 1rem 1rem; font-size: .88rem; }
.an-footer a { color: inherit; text-decoration: none; }
.an-footer a:hover { color: var(--an-accent); text-decoration: underline; }
.an-footer__inner { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
.an-footer__logo { display: flex; align-items: center; gap: .5em; font-weight: 700; font-family: var(--an-font-logo); font-size: 1.15rem; margin: 0 0 .5rem; }
.an-footer__apropos { color: var(--an-footer-ink-2); margin: 0 0 .5rem; max-width: 42ch; }
.an-footer__membres { font-weight: 700; margin: 0 0 .8rem; }
.an-footer__actions { margin: 0; }
.an-footer__actions .an-btn { min-height: 40px; font-size: .9rem; }
.an-footer__h { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--an-footer-ink); font-family: var(--an-font-meta); font-weight: 700; }
.an-footer__list { list-style: none; padding: 0; margin: 0; }
.an-footer__list li { padding: .12em 0; display: flex; gap: .4em; align-items: baseline; }
.an-footer__list--geo { columns: 2; column-gap: 1rem; }
.an-footer__list--geo li { break-inside: avoid; }
.an-footer .an-count { color: var(--an-footer-ink-2); }
.an-footer__bottom { margin: 1.4rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--an-footer-ink-2); font-size: .78rem; }
.an-footer__bottom p { margin: 0 0 .4em; }
.an-footer__copy { margin-top: .6em !important; }

/* ---------------------------------------------------------------- desktop (≥ 900 px) */
@media (min-width: 900px) {
  :root { --an-header-h: 64px; }
  body { padding: 1.25rem 1rem; }
  .an-page { min-height: 0; box-shadow: var(--an-page-shadow); border-radius: var(--an-radius); overflow: hidden; }
  .an-header { position: static; }
  .an-header__top { padding: .7rem 1.25rem; gap: 1.2rem; }
  .an-logo__text { font-size: 1.7rem; }
  .an-logo__mark { width: 34px; height: 34px; }
  .an-header__slogan { display: block; flex: 1; min-width: 0; text-align: right; }
  .an-burger { display: none; }
  .an-nav { position: static; visibility: visible; transform: none; opacity: 1; padding: 0 .75rem; overflow: visible; display: flex; align-items: stretch; gap: .5rem; min-height: 44px; }
  .an-nav__titre, .an-nav__foot { display: none; }
  .an-nav__list { flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 0; flex: 1; min-width: 0; }
  .an-nav__list a, .an-nav__list .an-nav__cat a { display: flex; align-items: center; padding: .7em .8em; border: 0; font-size: .88rem; font-weight: 600; white-space: nowrap; border-radius: 0; }
  .an-nav__list .an-nav__cat a { font-weight: 500; }
  .an-nav__list a:hover, .an-nav__list a[aria-current] { background: var(--an-nav-cur-bg); color: var(--an-nav-cur-ink); }
  .an-nav__list .an-nav__deposer { font-weight: 700; }
  .an-header__cta { display: inline-flex; margin-left: auto; white-space: nowrap; min-height: 40px; padding: .45em 1.1em; font-size: .9rem; align-self: center; }
  .an-main { padding: 1.25rem 1.25rem 1.8rem; }
  .an-layout { grid-template-columns: minmax(0, 1fr) var(--an-side-w); gap: 1.4rem; }
  .an-side__list--villes { max-height: 460px; }
  .an-tete--duo { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .an-form--hero .an-form__actions .an-btn { width: auto; min-width: 240px; }
  .an-form__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .an-side .an-form__cols { grid-template-columns: minmax(0, 1fr); }
  .an-etapes { grid-template-columns: repeat(3, 1fr); }
  .an-reassurance { grid-template-columns: repeat(2, 1fr); }
  .an-cats { grid-template-columns: 1fr 1fr; }
  .an-geo { columns: 3; }
  .an-filters { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; }
  .an-moteur .an-filters { grid-template-columns: 1.2fr 1fr 1fr auto; }
  .an-side .an-filters { grid-template-columns: 1fr; }
  .an-ligne { grid-template-columns: var(--an-photo-w) minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "media body action" "media extrait action"; gap: .2rem 1rem; padding: .9rem 0; }
  .an-ligne__media { width: var(--an-photo-w); }
  .an-ligne__title { font-size: 1.08rem; -webkit-line-clamp: 1; }
  .an-ligne__action { align-self: center; }
  .an-ligne__extrait { font-size: .9rem; }
  /* fiche : la géométrie vient de la disposition tirée par site (body.an-fiche-N, plus bas) */
  .an-fiche__grid { gap: 1.2rem; align-items: start; }
  .an-fiche__media, .an-fiche__aside, .an-fiche__main { order: 0; }
  .an-gallery__stage { aspect-ratio: 1 / 1; max-height: 320px; }
  .an-fiche__bar, .an-bar { display: none; }
  .an-page-annonce, .an-has-bar { padding-bottom: 0; }
  .an-form--depot > .an-form__actions .an-btn { width: auto; min-width: 280px; }
  .an-gate__actions { flex-direction: row; justify-content: center; }
  .an-gate__enter { width: auto; min-width: 240px; }
  .an-gate__box { padding: 1.8rem 1.8rem 1.4rem; }
  .an-footer { padding: 1.6rem 1.25rem 1rem; }
  .an-footer__inner { grid-template-columns: 1.25fr 1fr 1fr .9fr; gap: 1.6rem; }
}
/* trop d'entrées pour une rangée : 3 catégories jusqu'à 1000 px, 5 au-delà */
@media (min-width: 900px) and (max-width: 999px) { .an-nav__list li.an-nav__cat:nth-child(n+5) { display: none; } }
@media (min-width: 1000px) { .an-nav__list li.an-nav__cat:nth-child(n+7) { display: none; } }

/* ---------------------------------------------------------------- mouvement (coupé si l'utilisateur le demande) */
@media (prefers-reduced-motion: no-preference) {
  .an-nav { transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s; }
  .an-nav.is-open { transition: transform .22s ease, opacity .22s ease, visibility 0s; }
  .an-popup__box, .an-gate__box { animation: an-pop .22s cubic-bezier(.2, .8, .3, 1.1) both; }
  .an-ligne__img { transition: border-color .2s; }
  .an-ligne:hover .an-ligne__img { border-color: var(--an-accent); }
  @keyframes an-pop { from { transform: translateY(12px) scale(.97); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- compositions par site (docs/SPEC-VARIANTES.md §3) : body.an-compo-N (ordre et présence
   des blocs de l'accueil et de la colonne, rendus par home.php / sidebar.php) et body.an-fiche-N
   (disposition de la fiche), indépendantes de la déclinaison. */
.an-duo { display: grid; gap: 0; }
.an-compo-2 .an-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-compo-2 .an-cats__item { flex: 0 1 auto; }
.an-compo-2 .an-cats__link { border: 1px solid var(--an-line-strong); border-radius: var(--an-radius-btn); background: var(--an-bg-2); padding: .4em .8em; }
.an-compo-2 .an-cats__link::before { display: none; }
.an-compo-3 .an-etapes { grid-template-columns: 1fr; }
.an-compo-3 .an-bloc--comment .an-etapes { background: var(--an-bg-2); border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: .6rem; gap: 0; }
.an-compo-3 .an-etapes__item { background: transparent; border: 0; border-bottom: 1px dotted var(--an-line); border-radius: 0; }
.an-compo-3 .an-etapes__item:last-child { border-bottom: 0; }
.an-compo-4 .an-bloc--deposer .an-deposer-cta { text-align: left; }
.an-compo-4 .an-deposer-cta .an-bloc__h { justify-content: flex-start; }
.an-compo-4 .an-deposer-cta__btn { justify-content: flex-start; }
.an-compo-4 .an-deposer-cta p { margin-left: 0; }
.an-compo-5 .an-geo--villes { columns: 1; display: flex; flex-wrap: wrap; gap: .35rem; }
.an-compo-5 .an-geo--villes li { border-bottom: 0; padding: 0; }
.an-compo-5 .an-geo--villes li::before { display: none; }
.an-compo-5 .an-geo--villes a { background: var(--an-bg-2); border: 1px solid var(--an-line-strong); border-radius: var(--an-radius-btn); padding: .25em .7em; }
.an-compo-5 .an-geo--villes .an-count { display: none; }
.an-compo-6 .an-reassurance__item { padding: .8rem .8rem .8rem 3.4rem; }
.an-compo-6 .an-bloc--reassurance .an-bloc__head { display: none; }
@media (min-width: 900px) {
  .an-duo { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .an-duo .an-geo { columns: 2; }
  .an-duo .an-cats { grid-template-columns: 1fr; }
  .an-duo .an-etapes, .an-duo .an-reassurance { grid-template-columns: 1fr; }
  /* fiche 1 : photo en bandeau au-dessus du texte (colonne large), contact collant à droite */
  .an-fiche-1 .an-fiche__grid { grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: auto 1fr; grid-template-areas: "media aside" "main aside"; }
  .an-fiche-1 .an-fiche__aside { position: sticky; top: 1rem; align-self: start; }
  .an-fiche-1 .an-gallery__stage { aspect-ratio: 16 / 9; max-height: 300px; }
  .an-fiche-1 .an-gallery__main { max-width: min(100%, 520px); }
  /* fiche 2 : photo puis contact empilés à gauche, identité + texte à droite */
  .an-fiche-2 .an-fiche__grid { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "media main" "aside main"; }
  /* fiche 3 : contact en bandeau au-dessus (pseudo à gauche, boutons à droite), photo à gauche, texte à droite */
  .an-fiche-3 .an-fiche__grid { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "aside aside" "media main"; }
  .an-fiche-3 .an-fiche__contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h cta" "lieu cta"; align-items: center; }
  .an-fiche-3 .an-fiche__contact-h { grid-area: h; background: none; color: var(--an-title-ink); padding: .7em .9em 0; font-size: 1.15rem; }
  .an-fiche-3 .an-fiche__contact-lieu { grid-area: lieu; padding: 0 .9em .7em; }
  .an-fiche-3 .an-cta { grid-area: cta; flex-direction: row; align-items: center; gap: .6rem; padding: .6rem .9rem; }
  .an-fiche-3 .an-cta .an-btn { width: auto; }
  .an-fiche-3 .an-cta__sous { display: none; }
  .an-fiche-3 .an-gallery__stage { aspect-ratio: 4 / 3; max-height: 300px; }
  .an-fiche__media { grid-area: media; }
  .an-fiche__main { grid-area: main; }
  .an-fiche__aside { grid-area: aside; }
}
