/*
  annuaire.univers.fr — composants SPÉCIFIQUES au projet (Phase UX/UI).
  Le chrome (nav, hero, bande, footer, badges) vient de la charte partagée .v7-* ;
  les cartes, boutons et badges viennent des composants Front vendored. Ce fichier ne
  porte QUE ce que Front n'a pas — sur les tokens de la charte, jamais de couleur en dur.
  Motif de carte et indicateurs de présence : lead-adns MotifEntrepriseFront / AdnsCardFront.
*/

/* ── Barre de recherche (accueil + en-tête résultats) ─────────────────── */
.ann-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    padding: .35rem .35rem .35rem .9rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.ann-search:focus-within {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem var(--adns-accent-soft-bg);
}
.ann-search .bi-search { color: var(--adns-text-muted); font-size: 1.05rem; }
.ann-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05rem;
    color: var(--adns-text-strong);
}
.ann-search-hero { max-width: 720px; }

/* ── Puces d'exemple ──────────────────────────────────────────────────── */
.ann-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ann-chip {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 999px;
    padding: .4rem .85rem;
    color: var(--adns-text-strong);
    text-decoration: none;
    font-size: .9rem;
}
.ann-chip:hover { background: var(--adns-accent-soft-bg); color: var(--bs-primary); border-color: var(--bs-primary); }

.ann-card-meta { font-size: .82rem; color: var(--adns-text-muted); }

/* ── Liste dense d'entreprises (défaut résultats — densité §2.4, alignement §3) ──
   Rangées uniformes en grille : vignette carrée fixe → titres/pieds alignés au pixel,
   quelle que soit la présence d'un aperçu. Aucune zone vide décorative. */
.ann-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); overflow: hidden; background: #fff; }
.ann-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--bs-border-color);
}
.ann-row:first-child { border-top: 0; }
.ann-row:hover { background: var(--adns-accent-soft-bg); }
/* Vignette uniforme (aperçu OU pastille de repli — MÊME taille : l'alignement ne bouge jamais) */
.ann-thumb { width: 56px; height: 56px; border-radius: var(--bs-border-radius-sm); object-fit: cover; object-position: top; background: var(--bs-light); border: 1px solid var(--bs-border-color); }
.ann-thumb-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--bs-primary); background: var(--adns-accent-soft-bg); }
.ann-row-title { font-weight: 600; color: var(--adns-text-strong); font-size: .98rem; display: flex; align-items: center; gap: 8px; }
.ann-row-title .dom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-row-activite { font-size: .88rem; color: var(--bs-body-color); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-row-meta { font-size: .82rem; color: var(--adns-text-muted); margin-top: 3px; }
.ann-row-side { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
@media (max-width: 575px) {
    .ann-row { grid-template-columns: 44px minmax(0,1fr); }
    .ann-thumb { width: 44px; height: 44px; }
    .ann-row-side { display: none; }
}

/* ── Indicateurs de présence de contact (langage graphique lead-adns) ─── */
.ann-ind {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem;
}
.ann-ind.is-present { background: var(--bs-primary); color: #fff; }
.ann-ind.is-absent  { background: transparent; color: var(--bs-border-color); }

/* ── Badge « active » (état INSEE) ────────────────────────────────────── */
.ann-active { color: var(--bs-success); font-weight: 500; }
.ann-active .bi { vertical-align: -1px; }

/* ── Résultats : grille facettes + cartes ─────────────────────────────── */
.ann-facets h4 {
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--adns-text-muted); margin: 1rem 0 .5rem;
}
.ann-facets h4:first-child { margin-top: 0; }

/* ── Fiche entreprise : grille d'identité ─────────────────────────────── */
.ann-def-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px 24px;
}
.ann-def-label { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--adns-text-muted); }
.ann-def-value { font-size: 1rem; color: var(--adns-text-strong); margin-top: 2px; }
.ann-def-value.mono { font-family: var(--adns-font-numeric); }
.ann-fiche-resume { font-size: 1.05rem; line-height: 1.65; color: var(--bs-body-color); }
.ann-fiche-preview { width: 100%; border-radius: var(--bs-border-radius); border: 1px solid var(--bs-border-color); }

/* ── Coordonnées gatées : teaser « verrouillé » (donner envie sans rien révéler) ──
   Lignes floutées GÉNÉRIQUES et identiques pour toutes les fiches : aucune présence
   réelle exposée (rien à scraper), mais on montre qu'il y a quelque chose à débloquer. */
.ann-locked { position: relative; border-radius: var(--bs-border-radius); overflow: hidden; background: linear-gradient(180deg, var(--adns-accent-soft-bg), #fff); border: 1px solid var(--bs-border-color); }
.ann-locked-rows { padding: 18px 20px; }
.ann-locked-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--adns-text-strong); font-family: var(--adns-font-numeric); font-size: 1.05rem; filter: blur(5px); user-select: none; pointer-events: none; }
.ann-locked-line .bi { color: var(--bs-primary); filter: none; }
.ann-locked-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; background: rgba(255,255,255,.55); backdrop-filter: blur(1px); padding: 16px; }
.ann-locked-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--bs-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

@media (max-width: 991px) {
    .ann-search input { font-size: 16px; } /* anti-zoom iOS (D-F6) */
}
