: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;
}

/* Reset et base */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Header avec photo de couverture */
.magasin-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.couverture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo de profil positionnée en bas */
.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-picture-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--medium-gray);
    font-size: 2rem;
}

/* Section profil fixe (non déroulante) */
.profile-section {
    padding: 60px 15px 15px;
    background: var(--white);
    margin-top: -20px;
    position: relative;
    z-index: 5;
}

.profile-container {
    display: flex;
    flex-direction: column;
}

.magasin-name {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 10px 0 5px;
    font-weight: 700;
}

.magasin-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Boutons d'action */
.profile-actions {
    margin: 10px 0;
}

.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-edit-profile:hover {
    background: var(--primary-hover);
}

/* Section évaluation */
.rating-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.rating-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1rem;
}

.star.filled {
    color: #FFC107;
}

.rating-value {
    font-size: 0.9rem;
    margin-left: 5px;
    font-weight: 600;
}

.btn-leave-review {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Cartes articles fixes (style Yango comme demandé) */
.articles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px;
    margin-top: 20px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.images-slider {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.slides-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-details {
    padding: 10px;
}

.nom_article {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0 0 5px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.acheter-btn {
    color: #25D366;
    font-size: 1.2rem;
    transition: var(--transition);
}

.acheter-btn:hover {
    transform: scale(1.1);
}

/* Section informations de contact */
.contact-info-section {
    background: var(--white);
    margin: 15px;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-info-container h3 {
    margin-top: 0;
    color: var(--secondary);
    font-size: 1.2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: var(--light-gray);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(33, 22, 102, 0.05);
}

.contact-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.contact-icon {
    width: 30px;
    height: 30px;
    background: rgba(33, 22, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--secondary);
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--text-color);
    text-transform: uppercase;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Bouton principal */
.primair {
    display: block;
    width: calc(100% - 30px);
    margin: 20px auto;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.primair:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Responsive pour tablettes */
@media (min-width: 768px) {
    .magasin-header {
        height: 250px;
    }
    
    .profile-picture-wrapper {
        width: 120px;
        height: 120px;
        bottom: -60px;
    }
    
    .magasin-name {
        font-size: 1.8rem;
    }
    
    .articles-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .images-slider {
        height: 150px;
    }
}

/* Responsive pour desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
    
    .profile-section {
        padding: 70px 30px 30px;
    }
    
    .articles-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.toggle-info-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.toggle-info-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.toggle-info-btn.expanded i {
    transform: rotate(180deg);
}

/* Responsive pour petits écrans */
@media (max-width: 480px) {
    .profile-picture-wrapper {
        width: 80px;
        height: 80px;
        bottom: -40px; /* Ajustement pour mobile */
    }
    
    .toggle-info-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* static_general/Yatoutapp1/css/detail_magasin.css */

/* Photo de profil à 50% dans la couverture */
.profile-picture-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50px; /* Ajustement pour positionner en bas de la couverture */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    overflow: hidden;
}

/* Style du bouton toggle */
.toggle-info-btn {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #f46413;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* Section contact masquée initialement */
.contact-info-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    opacity: 0;
}

/* Classe ajoutée par JavaScript quand visible */
.contact-info-section.expanded {
    max-height: 1000px; /* Valeur suffisamment grande */
    opacity: 1;
    margin-top: 20px;
}

/* Animation pour l'intercepteur de messages */
.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;
}
