/* ============================================================
   home-btn.css — Bouton "Accueil" partagé
   Inclus via <link rel="stylesheet" href="/css/home-btn.css">
   sur toutes les apps Metro Center.

   Fournit :
   - Le bouton pilule blanc fixé en haut à gauche
   - Touch target Apple-compliant (44x44 min)
   - safe-area-inset pour iPhone fullscreen / Dynamic Island
   - Compaction sous 600 px et 380 px
   ============================================================ */

.home-btn {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e5e5);
    background: #fff;
    color: var(--gray, #4a4a4a);
    font-family: inherit;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: border-color .2s ease, color .2s ease, transform .2s ease, background-color .2s ease;
}

.home-btn:hover {
    border-color: var(--red, #E60012);
    color: var(--red, #E60012);
    transform: translateX(-2px);
}

.home-btn:active {
    transform: scale(.97);
}

.home-btn:focus-visible {
    outline: 2px solid var(--red, #E60012);
    outline-offset: 2px;
}

/* Tablette / mobile : on garde 44x44 (touch target) mais on resserre le padding */
@media (max-width: 600px) {
    .home-btn {
        padding: 8px 12px;
        font-size: 12.5px;
        gap: 6px;
    }
}

/* Très petits écrans (iPhone SE, etc.) */
@media (max-width: 380px) {
    .home-btn {
        padding: 7px 10px;
        font-size: 12px;
        gap: 6px;
    }
}
