/* static_general/Yatoutapp1/css/boutiques.css */
:root {
    --primary: #FF6B00; /* Orange Yango */
    --primary-hover: #E05A00;
    --secondary: #211666; /* Bleu Yango */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --text-color: #2D3748;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Style général inspiré de Yango */
.magasins-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: flex-start;
}

.magasin-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: calc(50% - 8px); /* 2 colonnes par défaut */
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--medium-gray);
}

.magasin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.magasin-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.magasin-info {
    padding: 12px;
}

.magasin-info h2 {
    color: var(--dark-gray);
    font-size: 1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.magasin-info a.secondary {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
    text-align: center;
}

.magasin-info a.secondary:hover {
    background: var(--primary-hover);
}


/* Nouveaux styles pour le bouton flottant */
.create-magasin {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 1;
}

.create-magasin.scrolled {
    transform: translateX(-100px) translateY(0);
    animation: pulse 2s infinite;
}

.create-magasin a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    max-width: none;
    width: auto;
}

.create-magasin a:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.create-magasin a i {
    font-size: 1rem;
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* Effet de flottement */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.create-magasin a {
    animation: float 3s ease-in-out infinite;
}



/* Badge style Yango */
.magasin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Responsive Yango-like */
@media (min-width: 480px) {
    .magasin-card {
        width: calc(33% - 8px); /* 2 colonnes */
    }
    
}

@media (min-width: 768px) {
    .magasin-card {
        width: calc(33.333% - 11px); /* 3 colonnes */
    }
    
    .magasin-image {
        height: 160px;
    }
}

@media (min-width: 1024px) {
    .magasin-card {
        width: calc(25% - 12px); /* 4 colonnes */
    }
    
    .magasin-image {
        height: 180px;
    }
    
    .magasins-list {
        gap: 20px;
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    .magasin-card {
        width: calc(20% - 16px); /* 5 colonnes */
    }
}


.message-interceptor {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    width: 100%;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.alert-success {
    border-left: 4px solid #16a34a;
}

.alert-error {
    border-left: 4px solid #dc2626;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-alert {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #64748b;
    padding: 0 0 0 10px;
}

/* Ajoutez cette media query à la fin de votre fichier CSS */
@media (max-width: 767px) {
    .create-magasin {
        bottom: 20px;
        right: 20px;
        bottom: 90px; /* <- monte le bouton au-dessus de la navbar */
    }
    
    .create-magasin a {
        padding: 10px 16px; /* Réduction de la taille */
        font-size: 0.8rem; /* Texte plus petit */
        border-radius: 50%; /* Cercle parfait */
        width: 50px; /* Largeur fixe */
        height: 50px; /* Hauteur fixe */
        justify-content: center;
    }
    
    .create-magasin a span {
        display: none; /* Cache le texte sur mobile */
    }
    
    .create-magasin a i {
        font-size: 1.2rem; /* Taille d'icône légèrement augmentée */
        margin-right: 0; /* Supprime l'espacement */
    
    }
    
    .create-magasin.scrolled {
        transform: translateX(-80px) translateY(0); /* Ajustement du décalage */
    }
    
    /* Animation adaptée pour mobile */
    .create-magasin a {
        animation: float-mobile 3s ease-in-out infinite;
    }
    
    @keyframes float-mobile {
        0% { transform: translateY(0px) scale(1); }
        50% { transform: translateY(-3px) scale(1.05); }
        100% { transform: translateY(0px) scale(1); }
    }
}
@media (max-width: 767px) {
  .create-magasin {
    bottom: calc(env(safe-area-inset-bottom) + var(--bottom-nav-h, 64px) + 12px);
  }
}
