/* =====================================================================
   accueil.css — Styles spécifiques à la page d'accueil
   ===================================================================== */

@import url('instagram.css');

/* ── Boutons hero ── */
.hero-btn-vert,
.hero-btn-blanc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    padding: 11px 22px;
    min-height: 44px;
    white-space: nowrap;
    border-width: 2px;
    border-style: solid;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero-btn-vert {
    background: #C0392B;
    border-color: #C0392B;
    color: #fff;
}

.hero-btn-vert:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.hero-btn-blanc {
    background: #fff;
    border-color: #fff;
    color: #1A1A1A;
}

.hero-btn-blanc:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

@media (min-width: 640px) {
    .hero-btn-vert,
    .hero-btn-blanc {
        font-size: 11px;
        padding: 12px 28px;
    }
}
/* Très petits écrans (<360px) : autoriser le retour à la ligne */
@media (max-width: 360px) {
    .hero-btn-vert,
    .hero-btn-blanc {
        white-space: normal;
        text-align: center;
        font-size: 9px;
        padding: 10px 14px;
    }
}

/* ── Grille boutiques accueil ── */
.hp-boutiques-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .hp-boutiques-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hp-boutiques-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ── Card boutique ──
   Hover target = <a> qui ne bouge JAMAIS (évite le jitter cursor-quitte).
   box-shadow ET transform sont sur le même inner → même couche GPU → 0 tremblement. */
.hp-boutique-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 1rem;
    /* Pas de transition ici : box-shadow sur l'outer cause des repaints
       qui interfèrent avec le transform de l'inner → tremblements */
}

/* L'inner porte TOUT : transform + box-shadow sur la même couche composite */
.hp-boutique-card__inner {
    border-radius: 1rem;
    overflow: hidden;
    background: #E3E3E3;
    display: flex;
    flex-direction: column;
    will-change: transform;                /* promote to own GPU layer */
    transition: transform .32s cubic-bezier(.22, 1, .36, 1),
                box-shadow .32s ease;
}

.hp-boutique-card:hover .hp-boutique-card__inner {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .11);
}

/* Image */
.hp-boutique-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hp-boutique-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.hp-boutique-card:hover .hp-boutique-card__img img {
    transform: scale(1.06);
}

/* Overlay dégradé bas */
.hp-boutique-card__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .25) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.hp-boutique-card:hover .hp-boutique-card__img::after {
    opacity: 1;
}

/* Footer : nom + flèche */
.hp-boutique-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
}

/* Nom */
.hp-boutique-card__name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
}

/* Flèche */
.hp-boutique-card__arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-vert, #4e7733);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.hp-boutique-card:hover .hp-boutique-card__arrow {
    opacity: 1;
    transform: translateX(0);
}
