/* ==========================================================================
   Living Rock — Page d'accueil "Stores"
   ========================================================================== */

/* Reset pour la page autonome (ni navbar ni footer du thème) */
body.lr-stores-page {
    margin: 0;
    padding: 0;
}
body.lr-stores-page #wpadminbar {
    position: fixed;   /* la barre admin ne décale pas le plein écran */
}

.lr-stores {
    position: relative;
    width: 100%;
    min-height: 100vh;           /* plein écran */
    min-height: 100svh;          /* mobile : hauteur réelle sans la barre d'URL */
    background-color: #608482;   /* teinte verte conservée */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply; /* fusionne teinte + image (remplace l'overlay) */
    overflow: hidden;
    margin: 0;
}

/* Overlay désactivé (teinte gérée par background-blend-mode ci-dessus) */
.lr-stores__overlay {
    display: none;
}

/* Grille des 3 colonnes */
.lr-stores__grid {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
}

/* Un magasin = une colonne cliquable, largeur égale */
.lr-store {
    flex: 1 1 0;                 /* colonnes strictement égales */
    display: grid;               /* superpose les deux états dans la même cellule */
    place-items: center;         /* centrage horizontal + vertical parfait */
    text-align: center;
    text-decoration: none;
    color: #fff;
    padding: 2rem 1.5rem;
    position: relative;
    min-height: 0;
    transition: background-color 0.4s ease;
}

.lr-store + .lr-store {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lr-store:hover {
    background-color: rgba(30, 46, 42, 0.35);
}

.lr-store--nolink {
    cursor: default;
}

/* --- Empilement des deux états au même endroit (fondu croisé) --- */
.lr-store__rest,
.lr-store__hover {
    grid-area: 1 / 1;            /* les deux occupent la même cellule de grille */
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lr-store__rest {
    opacity: 1;
    transform: translateY(0);
}

.lr-store__hover {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lr-store:hover .lr-store__rest {
    opacity: 0;
    transform: translateY(-8px);
}

.lr-store:hover .lr-store__hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Typo état repos --- */
.lr-store__city {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 1.2rem;
    line-height: 1.1;
}

.lr-store__addr {
    margin-bottom: 0.9rem;
    line-height: 1.7;
}

.lr-store__brand {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.lr-store__lines {
    display: block;
    font-weight: 300;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Typo état survol --- */
.lr-store__services {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    line-height: 2;
}

.lr-store__services li {
    font-size: 1.05rem;
    font-weight: 300;
    color: #fff;
}

.lr-store__btn {
    display: inline-block;
    background: #fff;
    color: #2b3f3a;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.7rem 2rem;
    border-radius: 4px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.lr-store:hover .lr-store__btn:hover {
    background: #dfe7e4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* --- Tablette / mobile : colonnes empilées verticalement --- */
@media (max-width: 900px) {
    .lr-stores,
    .lr-stores__grid {
        min-height: 0;           /* on laisse le contenu définir la hauteur */
    }
    .lr-stores__grid {
        flex-direction: column;
    }

    /* Chaque magasin : on désactive la superposition grid,
       les deux états s'affichent l'un sous l'autre en flux normal */
    .lr-store {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 2.5rem 1.5rem;
    }
    .lr-store + .lr-store {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Les deux blocs reprennent leur place dans le flux (plus de superposition) */
    .lr-store__rest,
    .lr-store__hover {
        grid-area: auto;
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        width: 100%;
    }

    /* Services affichés en permanence, SOUS l'adresse */
    .lr-store__hover {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1.2rem;
    }
}

/* --- Mobile compact (≤568px) : réduire l'espace, limiter le scroll --- */
@media (max-width: 568px) {
    .lr-store {
        padding: 1.6rem 1.2rem;  /* padding réduit */
    }

    .lr-store__city {
        font-size: 1.7rem;
        margin: 0 0 0.6rem;
    }

    .lr-store__addr {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    .lr-store__brand { font-size: 1rem; }
    .lr-store__lines { font-size: 0.9rem; }

    .lr-store__hover {
        margin-top: 0.8rem;
    }

    .lr-store__services {
        margin: 0 0 1rem;
        line-height: 1.7;         /* interligne resserré */
    }
    .lr-store__services li {
        font-size: 0.95rem;
    }

    .lr-store__btn {
        padding: 0.6rem 1.6rem;
        font-size: 0.9rem;
    }
}
