/* ════════════════════════════════════════════════════════════
   ANNUAIRE DES PROS DE L'HABITAT – Prestaprod
   Pages : annuaire.php (accueil, métiers, recherche), fiche.php
   Feuille autonome (préfixe .an-), couleurs de la marque :
   bleu nuit #1f283e, or #B58A1A / #c9a96e
   ════════════════════════════════════════════════════════════ */
.an-page {
    --an-nuit: #1f283e;
    --an-nuit-2: #2a3552;
    --an-or: #B58A1A;
    --an-or-clair: #c9a96e;
    --an-or-pale: #f6efdc;
    --an-fond: #f5f6f8;
    --an-carte: #ffffff;
    --an-texte: #1e2433;
    --an-gris: #5d6578;
    --an-gris-clair: #8a91a2;
    --an-trait: #e3e6ec;
    --an-vert: #1a7a4a;
    --an-rayon: 14px;
    --an-ombre: 0 1px 2px rgba(31, 40, 62, .06), 0 8px 24px rgba(31, 40, 62, .06);
    --an-ombre-forte: 0 14px 34px rgba(31, 40, 62, .14);
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--an-fond);
    color: var(--an-texte);
    -webkit-font-smoothing: antialiased;
}
.an-page h1, .an-page h2, .an-page h3 { font-family: inherit; color: var(--an-nuit); letter-spacing: -.01em; }

/* ─── En-tête du site (même bandeau que la page des articles) ─── */
.an-page #header {
    background: var(--an-nuit);
    box-shadow: rgba(0, 0, 0, .24) 0 3px 8px;
    border-bottom: 2px solid var(--an-or-clair);
}
.an-page .navbar { width: auto !important; }
.an-page .navbar li a { color: #fff; }
.an-page .navbar .dropdown ul a { color: #000; }
.an-page .navbar .dropdown ul a:hover { color: #f14400; }
.an-page .navbar .text-muted { color: #fff !important; }
.an-page .mobile-nav-toggle .bar { background: #fff; }
.an-page .logo-resp { margin: 0; }

/* ─── Mise en page ───────────────────────────────────────── */
.an-conteneur, .an-conteneur *, .an-conteneur *::before, .an-conteneur *::after, .an-apercu { box-sizing: border-box; }
.an-hero, .an-page main { text-align: left; }
.an-page img { max-width: 100%; }
.an-conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.an-section { padding-top: 64px; padding-bottom: 64px; }
.an-section--claire { background: #fff; border-top: 1px solid var(--an-trait); border-bottom: 1px solid var(--an-trait); }
.an-section--fin { padding-top: 0; }
.an-section-tete { margin-bottom: 32px; }
.an-section-tete h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; margin: 6px 0 0; }
.an-section-tete--ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.an-surtitre {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--an-or);
}

/* ─── Boutons ────────────────────────────────────────────── */
.an-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.an-btn:hover { transform: translateY(-1px); }
.an-btn--or { background: var(--an-or); color: #fff; }
.an-btn--or:hover { background: #9c7614; color: #fff; box-shadow: 0 8px 18px rgba(181, 138, 26, .3); }
.an-btn--nuit { background: var(--an-nuit); color: #fff; }
.an-btn--nuit:hover { background: var(--an-nuit-2); color: #fff; }
.an-btn--clair { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; }
.an-btn--clair:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.an-btn--plein { width: 100%; }
.an-btn:disabled { opacity: .55; cursor: default; transform: none; }
.an-lien-fleche { color: var(--an-nuit); font-weight: 600; text-decoration: none; }
.an-lien-fleche i { margin-left: 6px; transition: transform .2s; }
.an-lien-fleche:hover { color: var(--an-or); }
.an-lien-fleche:hover i { transform: translateX(3px); }

/* ─── Bandeau du haut ────────────────────────────────────── */
.an-hero {
    margin-top: 70px;
    padding: 56px 0 64px;
    color: #fff;
    background:
        radial-gradient(1100px 380px at 85% -10%, rgba(201, 169, 110, .22), transparent 60%),
        radial-gradient(700px 300px at 0% 110%, rgba(255, 255, 255, .06), transparent 60%),
        var(--an-nuit);
}
.an-hero--compact { padding: 40px 0 44px; }
.an-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: 1.12;
    max-width: 820px;
    margin: 12px 0 16px;
}
.an-hero--compact h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 22px; }
.an-h1-lieu { color: var(--an-or-clair); font-weight: 400; }
.an-hero-intro { max-width: 700px; font-size: 1.1rem; line-height: 1.6; color: rgba(255, 255, 255, .78); margin: 0 0 30px; }
.an-hero .an-surtitre { color: var(--an-or-clair); }
.an-hero-chiffres { display: flex; flex-wrap: wrap; gap: 10px 36px; list-style: none; margin: 30px 0 0; padding: 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.an-hero-chiffres strong { color: #fff; font-size: 1.2rem; font-weight: 600; margin-right: 4px; }

.an-ariane { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 22px; color: rgba(255, 255, 255, .55); }
.an-ariane a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.an-ariane a:hover { color: #fff; }
.an-ariane i { font-size: .6rem; opacity: .6; }
.an-ariane span { color: rgba(255, 255, 255, .9); }

/* ─── Recherche ──────────────────────────────────────────── */
.an-recherche {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 6px;
    max-width: 860px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.an-recherche-champ { position: relative; display: flex; align-items: center; margin: 0; }
.an-recherche-champ + .an-recherche-champ { border-left: 1px solid var(--an-trait); }
.an-recherche-champ i { position: absolute; left: 16px; color: var(--an-or); pointer-events: none; }
.an-recherche select, .an-recherche input {
    width: 100%;
    height: 52px;
    padding: 0 14px 0 44px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--an-texte);
    outline: none;
    text-align: left;
    text-align-last: left;
    appearance: none;
    -webkit-appearance: none;
}
.an-recherche select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #8a91a2 50%), linear-gradient(135deg, #8a91a2 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.an-recherche button {
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: var(--an-or);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.an-recherche button:hover { background: #9c7614; }
.an-recherche--grand { max-width: 900px; }

/* ─── Familles de métiers (accueil) ──────────────────────── */
.an-familles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.an-famille {
    background: var(--an-carte);
    border: 1px solid var(--an-trait);
    border-radius: var(--an-rayon);
    padding: 22px 22px 14px;
    box-shadow: var(--an-ombre);
}
.an-famille h3 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; }
.an-famille-icone {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--an-or-pale);
    color: var(--an-or);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.an-famille ul { list-style: none; margin: 0; padding: 0; }
.an-famille li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    margin: 0 -8px;
    border-radius: 8px;
    color: var(--an-texte);
    text-decoration: none;
    font-size: .95rem;
    transition: background .15s, color .15s;
}
.an-famille li a i { width: 18px; text-align: center; color: var(--an-gris-clair); font-size: .9rem; }
.an-famille li a:hover { background: var(--an-fond); color: var(--an-nuit); }
.an-famille li a:hover i { color: var(--an-or); }
.an-nb {
    margin-left: auto;
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 20px;
    background: var(--an-or-pale);
    color: var(--an-or);
    font-size: .75rem;
    font-weight: 600;
    text-align: center;
}

/* ─── Cartes des professionnels ──────────────────────────── */
.an-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.an-grille--2 { grid-template-columns: repeat(2, 1fr); }
.an-carte { height: 100%; }
.an-carte-lien {
    display: flex;
    gap: 18px;
    height: 100%;
    padding: 20px;
    background: var(--an-carte);
    border: 1px solid var(--an-trait);
    border-radius: var(--an-rayon);
    box-shadow: var(--an-ombre);
    color: var(--an-texte);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.an-carte-lien:hover { transform: translateY(-3px); box-shadow: var(--an-ombre-forte); border-color: var(--an-or-clair); color: var(--an-texte); }
.an-carte-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--an-trait);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--an-or);
    font-size: 1.5rem;
}
.an-carte-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.an-carte-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.an-carte-metier { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--an-or); }
.an-carte-nom { font-size: 1.15rem; font-weight: 600; line-height: 1.25; color: var(--an-nuit); }
.an-carte-accroche {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--an-gris);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.an-carte-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--an-gris); }
.an-carte-pied i { color: var(--an-or); margin-right: 6px; }
.an-carte-voir { font-weight: 600; color: var(--an-nuit); white-space: nowrap; }
.an-carte-voir i { color: var(--an-nuit); margin: 0 0 0 4px; transition: transform .2s; }
.an-carte-lien:hover .an-carte-voir i { transform: translateX(3px); }

/* ─── Garanties ──────────────────────────────────────────── */
.an-garanties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.an-garantie { padding: 26px; background: var(--an-carte); border: 1px solid var(--an-trait); border-radius: var(--an-rayon); }
.an-garantie-icone {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--an-nuit);
    color: var(--an-or-clair);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.an-garantie h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 8px; }
.an-garantie p { margin: 0; color: var(--an-gris); line-height: 1.6; font-size: .95rem; }

/* ─── Appel aux professionnels ───────────────────────────── */
.an-appel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 36px 40px;
    border-radius: 18px;
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(600px 240px at 100% 0%, rgba(201, 169, 110, .25), transparent 60%),
        var(--an-nuit);
}
.an-section--fin .an-appel { margin-top: 0; }
.an-appel-texte { max-width: 640px; }
.an-appel .an-surtitre { color: var(--an-or-clair); }
.an-appel h2 { color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; margin: 6px 0 10px; }
.an-appel p { margin: 0; line-height: 1.6; }
.an-appel-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Page métier / recherche ────────────────────────────── */
.an-liste { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.an-filtres {
    position: sticky;
    top: 90px;
    padding: 14px;
    background: var(--an-carte);
    border: 1px solid var(--an-trait);
    border-radius: var(--an-rayon);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.an-filtres-tous { display: block; padding: 10px 10px 12px; font-weight: 600; color: var(--an-nuit); text-decoration: none; border-bottom: 1px solid var(--an-trait); margin-bottom: 6px; }
.an-filtres-tous:hover { color: var(--an-or); }
.an-filtres-famille summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--an-gris);
    cursor: pointer;
    list-style: none;
}
.an-filtres-famille summary::-webkit-details-marker { display: none; }
.an-filtres-famille summary i { color: var(--an-or); width: 16px; text-align: center; }
.an-filtres-famille summary::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; transition: transform .2s; }
.an-filtres-famille[open] summary::after { transform: rotate(180deg); }
.an-filtres-famille ul { list-style: none; margin: 0 0 6px; padding: 0; }
.an-filtres-famille li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 36px;
    border-radius: 8px;
    color: var(--an-texte);
    text-decoration: none;
    font-size: .92rem;
}
.an-filtres-famille li a:hover { background: var(--an-fond); }
.an-filtres-famille li a.actif { background: var(--an-nuit); color: #fff; }
.an-filtres-famille li a.actif .an-nb { background: rgba(255, 255, 255, .16); color: #fff; }

.an-resultats > .an-grille, .an-resultats > .an-vide { margin-bottom: 32px; }
.an-resultats .an-appel { margin-top: 0; }
.an-resultats-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--an-gris); }
.an-resultats-tete p { margin: 0; }
.an-resultats-tete strong { color: var(--an-nuit); }
.an-lien-effacer { color: var(--an-gris); text-decoration: none; font-size: .9rem; }
.an-lien-effacer:hover { color: #c0392b; }

.an-vide { text-align: center; padding: 48px 24px; background: var(--an-carte); border: 1px dashed #cfd4de; border-radius: var(--an-rayon); }
.an-vide-icone { width: 64px; height: 64px; border-radius: 50%; background: var(--an-or-pale); color: var(--an-or); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.an-vide h2 { font-size: 1.3rem; font-weight: 600; margin: 0 0 8px; }
.an-vide p { color: var(--an-gris); max-width: 480px; margin: 0 auto 20px; }

/* ─── Fiche ──────────────────────────────────────────────── */
.an-apercu { margin-top: 70px; padding: 12px 24px; background: #fff8e8; border-bottom: 1px solid #f0d9a8; font-size: .92rem; text-align: center; }
.an-apercu + .an-hero { margin-top: 0; }
.an-apercu a { margin-left: 10px; font-weight: 600; color: var(--an-nuit); }

.an-hero--fiche { padding: 40px 0 48px; }
.an-fiche-identite { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.an-fiche-logo {
    width: 128px;
    height: 128px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--an-or);
    font-size: 2.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.an-fiche-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.an-fiche-titre h1 { margin: 10px 0 8px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.an-fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.an-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
}
a.an-badge:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.an-badge i { color: var(--an-or-clair); }
.an-badge--verifie { background: rgba(26, 122, 74, .25); border-color: rgba(76, 190, 130, .45); }
.an-badge--verifie i { color: #6fdca2; }
.an-fiche-accroche { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 640px; }
.an-fiche-infos { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.an-fiche-infos i { color: var(--an-or-clair); margin-right: 8px; }
.an-fiche-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }

.an-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.an-bloc {
    background: var(--an-carte);
    border: 1px solid var(--an-trait);
    border-radius: var(--an-rayon);
    padding: 30px 32px;
    box-shadow: var(--an-ombre);
}
.an-bloc + .an-bloc { margin-top: 24px; }
.an-bloc-titre { font-size: 1.3rem; font-weight: 600; margin: 0 0 18px; }
.an-texte { font-size: 1.02rem; line-height: 1.75; color: #2c3344; }
.an-texte p { margin: 0 0 1em; }
.an-texte p:last-child { margin-bottom: 0; }

.an-galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.an-galerie--1 { grid-template-columns: 1fr; }
.an-galerie--2 { grid-template-columns: repeat(2, 1fr); }
.an-galerie-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--an-fond); }
.an-galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.an-galerie-item:hover img { transform: scale(1.05); }

.an-articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.an-article { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--an-trait); border-radius: 12px; text-decoration: none; color: var(--an-texte); transition: border-color .2s, box-shadow .2s; }
.an-article:hover { border-color: var(--an-or-clair); box-shadow: var(--an-ombre); color: var(--an-texte); }
.an-article img, .an-article-ph { width: 88px; height: 66px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.an-article-ph { background: var(--an-fond); color: var(--an-gris-clair); display: flex; align-items: center; justify-content: center; }
.an-article-corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.an-article-date { font-size: .78rem; color: var(--an-gris-clair); }
.an-article-titre { font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--an-nuit); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.an-fiche-cote { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.an-panneau { background: var(--an-carte); border: 1px solid var(--an-trait); border-radius: var(--an-rayon); padding: 24px; box-shadow: var(--an-ombre); }
.an-panneau-titre { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; }
.an-coord { list-style: none; margin: 0; padding: 0; }
.an-coord li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef0f4; font-size: .95rem; line-height: 1.45; }
.an-coord li:first-child { padding-top: 0; }
.an-coord li:last-child { border-bottom: 0; padding-bottom: 0; }
.an-coord li > i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--an-or-pale); color: var(--an-or); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.an-coord span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--an-gris-clair); margin-bottom: 2px; }
.an-coord a { color: var(--an-nuit); font-weight: 600; text-decoration: none; word-break: break-word; }
.an-coord a:hover { color: var(--an-or); }

.an-champ { display: block; margin-bottom: 12px; font-size: .85rem; font-weight: 500; color: var(--an-nuit); }
.an-champ span { color: #c0392b; }
.an-champ input, .an-champ textarea {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 13px;
    border: 1px solid #d6dae2;
    border-radius: 10px;
    background: #fbfbfd;
    font: inherit;
    font-size: .95rem;
    color: var(--an-texte);
    transition: border-color .2s, box-shadow .2s;
}
.an-champ textarea { resize: vertical; min-height: 120px; }
.an-champ input:focus, .an-champ textarea:focus { outline: none; border-color: var(--an-or); box-shadow: 0 0 0 3px var(--an-or-pale); background: #fff; }
.an-accord { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--an-gris); margin: 4px 0 16px; cursor: pointer; }
.an-accord input { margin-top: 3px; flex-shrink: 0; accent-color: var(--an-nuit); }
.an-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.an-form-msg { font-size: .9rem; margin-bottom: 12px; padding: 10px 12px; border-radius: 8px; }
.an-form-msg:empty { display: none; }
.an-form-msg.ok { background: #e8f6ee; color: var(--an-vert); }
.an-form-msg.erreur { background: #fdecea; color: #b03a2e; }
.an-mention { margin: 12px 0 0; font-size: .76rem; line-height: 1.45; color: var(--an-gris-clair); text-align: center; }

/* ─── Adaptation écrans ──────────────────────────────────── */
@media (max-width: 1100px) {
    .an-familles { grid-template-columns: repeat(2, 1fr); }
    .an-grille { grid-template-columns: repeat(2, 1fr); }
    .an-fiche { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 991px) {
    .an-liste { grid-template-columns: 1fr; }
    .an-filtres { position: static; max-height: none; }
    .an-filtres-famille:not([open]) { border-bottom: 1px solid #f0f1f4; }
    .an-fiche { grid-template-columns: 1fr; }
    .an-fiche-cote { position: static; }
    .an-fiche-identite { grid-template-columns: auto minmax(0, 1fr); }
    .an-fiche-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .an-garanties { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .an-section { padding-top: 44px; padding-bottom: 44px; }
    .an-hero { padding: 36px 0 44px; }
    .an-recherche { grid-template-columns: 1fr; }
    .an-recherche-champ + .an-recherche-champ { border-left: 0; border-top: 1px solid var(--an-trait); }
    .an-familles, .an-grille, .an-grille--2, .an-articles { grid-template-columns: 1fr; }
    .an-fiche-identite { grid-template-columns: 1fr; gap: 18px; }
    .an-fiche-logo { width: 96px; height: 96px; }
    .an-fiche-actions .an-btn { flex: 1 1 100%; }
    .an-bloc { padding: 22px 20px; }
    .an-galerie, .an-galerie--2 { grid-template-columns: repeat(2, 1fr); }
    .an-appel { padding: 28px 24px; }
}

/* ─── Fenêtre d'inscription rapide ───────────────────────── */
.an-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; font-family: 'Outfit', system-ui, sans-serif; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.an-modal-tete {
    position: relative;
    padding: 26px 28px 22px;
    color: rgba(255, 255, 255, .78);
    background: radial-gradient(500px 200px at 100% 0%, rgba(201, 169, 110, .28), transparent 60%), var(--an-nuit, #1f283e);
}
.an-modal-tete .an-surtitre { color: var(--an-or-clair, #c9a96e); }
.an-modal-tete h2 { color: #fff; font-size: 1.5rem; font-weight: 600; margin: 6px 0 6px; }
.an-modal-tete p { margin: 0; font-size: .92rem; line-height: 1.5; }
.an-modal-tete .btn-close { position: absolute; top: 18px; right: 18px; }
.an-modal-corps { padding: 24px 28px 26px; }
.an-modal-corps, .an-modal-corps * { box-sizing: border-box; }
.an-champ select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 13px;
    border: 1px solid #d6dae2;
    border-radius: 10px;
    background: #fbfbfd;
    font: inherit;
    font-size: .95rem;
    color: var(--an-texte, #1e2433);
}
.an-champ select:focus { outline: none; border-color: var(--an-or, #B58A1A); box-shadow: 0 0 0 3px var(--an-or-pale, #f6efdc); background: #fff; }
.an-info {
    display: flex;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--an-or-pale, #f6efdc);
    color: #5c4a1c;
    font-size: .84rem;
    line-height: 1.5;
}
.an-info i { color: var(--an-or, #B58A1A); margin-top: 3px; }
.an-accord a { color: var(--an-nuit, #1f283e); font-weight: 600; }
.an-mention a { color: var(--an-nuit, #1f283e); font-weight: 600; }
.an-lien-renvoi { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--an-nuit, #1f283e); font-weight: 600; text-decoration: underline; cursor: pointer; }
.an-modal-ok { text-align: center; padding: 10px 6px 4px; }
.an-modal-ok-icone { width: 68px; height: 68px; border-radius: 50%; background: #e8f6ee; color: #1a7a4a; display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 14px; }
.an-modal-ok h3 { font-size: 1.3rem; font-weight: 600; color: var(--an-nuit, #1f283e); margin: 0 0 10px; }
.an-modal-ok p { color: #5d6578; line-height: 1.6; margin: 0 0 8px; }

/* ─── Haut du bandeau : fil d'Ariane + bouton d'inscription ─── */
.an-hero-haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.an-hero-haut .an-ariane { margin-bottom: 0; }
.an-btn--petit { padding: 9px 16px; font-size: .88rem; border-radius: 9px; }
@media (max-width: 700px) {
    .an-hero-haut { flex-direction: column-reverse; align-items: flex-start; }
}
.an-hero-boutons { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Suggestions de communes (champ ville) ──────────────── */
.an-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--an-trait, #e3e6ec);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(31, 40, 62, .18);
    text-align: left;
}
.an-suggest li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--an-texte, #1e2433);
}
.an-suggest li:hover, .an-suggest li.actif { background: var(--an-or-pale, #f6efdc); }
.an-suggest-nom { font-weight: 500; }
.an-suggest-cp { font-size: .82rem; color: var(--an-gris-clair, #8a91a2); white-space: nowrap; }
@media (max-width: 700px) { .an-suggest { top: 100%; } }
.an-suggest li.an-suggest-dep .an-suggest-nom { font-weight: 600; color: var(--an-nuit, #1f283e); }
.an-suggest li.an-suggest-dep .an-suggest-cp { color: var(--an-or, #B58A1A); font-weight: 500; }
.an-suggest li.an-suggest-dep + li:not(.an-suggest-dep) { border-top: 1px solid var(--an-trait, #e3e6ec); margin-top: 4px; padding-top: 12px; }
