/* Styles pour le widget Elementor Mercedes Gammes - Etape 1 : Base minimaliste */

/* Section principale */
.mb-gammes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
}

/* Titre principal - minimaliste */
.mb-gammes-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 300;
    line-height: 1.3;
}

/* Boutons centrés */
.mb-gammes-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mb-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}

.mb-button-primary {
    background: #0078d6;
    color: white;
    border: 1px solid #0078d6;
}

.mb-button-primary:hover {
    background: #005a9e;
    border-color: #005a9e;
    color: white;
}

.mb-button-secondary {
    background: white;
    color: #333;
    border: 1px solid #333;
}

.mb-button-secondary:hover {
    background: #333;
    color: white;
}

/* Grille responsive */
.mb-gammes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 48rem) {
    .mb-gammes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 80rem) {
    .mb-gammes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Etape 1 : Simple div avec fond coloré */
.mb-gammes-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.mb-gammes-title {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    color: #333 !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
}

.mb-gammes-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-bottom: 3rem !important;
}

.mb-button {
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
}

.mb-button-primary {
    background: #0078d6 !important;
    color: white !important;
    border: 1px solid #0078d6 !important;
}

.mb-button-primary:hover {
    background: #005a9e !important;
    border-color: #005a9e !important;
    color: white !important;
}

.mb-button-secondary {
    background: white !important;
    color: #333 !important;
    border: 1px solid #333 !important;
}

.mb-button-secondary:hover {
    background: #333 !important;
    color: white !important;
}

.mb-gammes-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

@media (max-width: 768px) {
    .mb-gammes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .mb-gammes-grid {
        grid-template-columns: 1fr !important;
    }
}

.mb-gamme-card {
    background-image: url('/wp-content/themes/theme-bones-mercedes/library/images/mre-card.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 100px !important;
    padding: 1rem !important;
}

/* Texte avec polices Mercedes - sans fond */
.mb-gamme-text {
    background: none transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0.5rem 0 !important;
}

.mb-gamme-subtitle {
    display: block !important;
    font-size: 0.75rem !important;
    color: #666 !important;
    margin-bottom: 0.25rem !important;
    font-weight: 400 !important;
    font-family: var(--wb-typography-font-family-mercedes-benz-copy, "MBCorpo Text", DaimlerCS-Regular, DaimlerCSArab-Regular, Arial, sans-serif) !important;
    background: none transparent !important;
    background-color: transparent !important;
}

.mb-gamme-name {
    margin: 0 !important;
    font-size: 1.125rem !important;
    color: #333 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    font-family: var(--wb-typography-font-family-mercedes-benz-heading-serif, "MBCorpo Title", DaimlerCAC-Regular, DaimlerCACArab-Regular, serif) !important;
    background: none transparent !important;
    background-color: transparent !important;
}

/* Image positionnée en haut à droite qui dépasse du cadre */
.mb-gamme-image-container {
    position: absolute !important;
    top: -50px !important;
    right: -10px !important;
    width: 218px !important;
    height: 146px !important;
    z-index: 100 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
}

.mb-gamme-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    transition: opacity 0.3s ease !important;
}

/* Item et lien avec espace pour l'image qui dépasse */
.mb-gamme-item {
    position: relative !important;
    margin-top: 30px !important;
    overflow: visible !important;
}

.mb-gamme-link {
    overflow: visible !important;
}

/* Effet premium sur hover du lien */
.mb-gamme-link .mb-gamme-card {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.mb-gamme-link:hover .mb-gamme-card {
    background-color: rgba(0, 0, 0, 0.85) !important;
    background-blend-mode: multiply !important;
}

/* Texte en blanc au hover */
.mb-gamme-link .mb-gamme-text {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.mb-gamme-link:hover .mb-gamme-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

.mb-gamme-link:hover .mb-gamme-name {
    color: white !important;
}
