/*
 * annoncesgratuites.eu — Bottom-nav mobile
 *
 * Refonte 2026-05-03 : abandon du paradigme "wooden chalkboard" (Caveat font,
 * bois marché, ardoise noire) qui jurait avec la charte du site (Bootstrap 5,
 * blanc/rouge `--ag-primary`, sans-serif système). Alignement sur la palette
 * `--ag-*` définie dans ag.css.
 *
 * Préfixe `ag-mkt-` conservé pour stabilité (utilisé dans footer.php).
 */

.ag-mkt-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    height: calc(60px + env(safe-area-inset-bottom, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #fff;
    border-top: 1px solid var(--ag-border, #e3e3e3);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
    display: flex;
    align-items: stretch;
}

.ag-mkt-slate {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 2px;
    color: var(--ag-muted, #6c757d);
    background: transparent;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    border: 0;
    border-top: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.ag-mkt-slate svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ag-mkt-slate:hover {
    color: var(--ag-primary, #c1272d);
    text-decoration: none;
}

.ag-mkt-slate:active {
    background: rgba(193, 39, 45, .04);
}

.ag-mkt-slate[aria-current="page"] {
    color: var(--ag-primary, #c1272d);
    border-top-color: var(--ag-primary, #c1272d);
}

body.ag-mkt-padded { padding-bottom: 80px; }

@media (min-width: 768px) {
    .ag-mkt-bar { display: none; }
    body.ag-mkt-padded { padding-bottom: 0; }
}
