/* =====================================================================
   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: #fff;
    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);
}

/* ══════════════════════════════════════════
   FEED INSTAGRAM — cartes maison
   ══════════════════════════════════════════ */

/* Grille */
.ig-embed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 900px) {
    .ig-embed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ig-embed-grid { grid-template-columns: 1fr; }
}

/* Carte */
.ig-card {
    background: #ede7dc;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .25s;
    outline-offset: 3px;
}
.ig-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.10);
    transform: translateY(-4px);
}
.ig-card:focus-visible {
    outline: 2px solid var(--color-vert, #4e7733);
}

/* Zone image — ratio 4/5 portrait */
.ig-card-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e2dbd0;
}
.ig-card-media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.ig-card:hover .ig-card-media img { transform: scale(1.04); }

/* Overlay hover avec icône Instagram */
.ig-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.ig-card:hover .ig-card-overlay { background: rgba(0,0,0,.22); }
.ig-card-overlay-icon {
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s, transform .25s;
    color: #fff;
    width: 36px; height: 36px;
}
.ig-card:hover .ig-card-overlay-icon { opacity: 1; transform: scale(1); }

/* Corps */
.ig-card-body {
    padding: .75rem 1rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    background: #ede7dc;
}

/* En-tête : avatar + username + logo IG */
.ig-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ig-card-avatar {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.ig-avatar-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg,#fd5949,#d6249f,#285AEB);
    flex-shrink: 0;
}
.ig-card-username {
    font-size: .73rem;
    font-weight: 700;
    color: #2a2520;
    letter-spacing: .01em;
}
.ig-logo {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: .55;
}

/* Légende tronquée à 3 lignes */
.ig-card-caption {
    font-size: .78rem;
    color: #5a5248;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bouton "Nous suivre" (déjà utilisé en bas de section) */
.ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    border: 1.5px solid #2a2520;
    border-radius: 2rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #2a2520;
    transition: background .2s, color .2s;
    min-height: 44px;
}
.ig-follow-btn:hover { background: #2a2520; color: #fff; }
.ig-follow-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   LIGHTBOX INSTAGRAM
   ══════════════════════════════════════════ */
.iglb {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(10,10,10,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    animation: iglbFadeIn .2s ease;
}
@keyframes iglbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.iglb[hidden] { display: none; }

/* Carte centrale : image + infos côte à côte sur desktop */
.iglb-card {
    display: flex;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    max-width: min(900px, calc(100vw - 160px));
    max-height: calc(100vh - 80px);
    box-shadow: 0 12px 60px rgba(0,0,0,.5);
    animation: iglbImgIn .2s ease;
}
@keyframes iglbImgIn {
    from { transform: scale(.96); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.iglb-stage {
    flex: 1 1 60%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.iglb-img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    display: block;
}

/* Colonne infos */
.iglb-info {
    flex: 0 0 300px;
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}
.iglb-account {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ece8e1;
}
.iglb-username {
    font-size: .85rem;
    font-weight: 700;
    color: #2a2520;
}
.iglb-caption {
    font-size: .85rem;
    color: #5a5248;
    line-height: 1.6;
    white-space: pre-line;
    flex: 1;
}
.iglb-caption[hidden] { display: none; }
.iglb-link {
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 700;
    color: var(--color-vert, #4e7733);
    text-decoration: none;
    letter-spacing: .02em;
}
.iglb-link:hover { text-decoration: underline; }

/* Boutons */
.iglb-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    z-index: 1;
}
.iglb-close:hover { background: rgba(255,255,255,.25); }
.iglb-nav {
    flex-shrink: 0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}
.iglb-nav:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.iglb-nav:disabled { opacity: .25; cursor: default; }

/* Mobile : passage en colonne, infos sous l'image */
@media (max-width: 740px) {
    .iglb { padding: 0; gap: 0; }
    .iglb-card {
        flex-direction: column;
        max-width: 100vw;
        max-height: 100vh;
        width: 100%; height: 100%;
        border-radius: 0;
    }
    .iglb-stage { flex: 1 1 auto; }
    .iglb-img { max-height: 60vh; }
    .iglb-info { flex: 0 0 auto; }
    .iglb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
    .iglb-prev { left: .5rem; }
    .iglb-next { right: .5rem; }
}
