/*
 * CSS Module mp_homeslider
 * Layout spécifique sans Tailwind CSS
 * Slider 3/4 + 2 blocs 1/4 - Hauteur 400px
 */

/* ============================================
   CONTAINER PRINCIPAL ET LAYOUT
   ============================================ */

.mp-home-slider-wrapper {
    width: 100%;
    padding: 0;
    background:
        linear-gradient(180deg, rgba(244, 245, 247, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
}

.mp-home-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mp-home-slider-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Layout desktop : 3/4 + 1/4 */
@media (min-width: 1024px) {
    .mp-home-slider-layout {
        grid-template-columns: 3fr 1fr;
    }
}

/* ============================================
   SECTION SLIDER (3/4)
   ============================================ */

.mp-slider-section {
    position: relative;
    height: 100%;
    min-height: 280px;
}

.mp-home-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #111827;
    box-shadow: 0 28px 60px rgba(11, 11, 11, 0.18);
}

/* ============================================
   SLIDES
   ============================================ */

.mp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.mp-slide.mp-slide-active {
    opacity: 1;
    pointer-events: auto;
}

.mp-slide.mp-slide-hidden {
    opacity: 0;
    pointer-events: none;
}

.mp-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.mp-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.68) 48%, rgba(11, 11, 11, 0.24) 100%);
    display: flex;
    align-items: center;
}

.mp-slide-text {
    padding: 2.5rem 4rem;
    width: 100%;
}

.mp-slide-text-content {
    max-width: 38rem;
    color: white;
}

.mp-slide-text-content::before {
    content: "PLATEFORME B2B";
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(242, 74, 11, 0.16);
    color: #f24a0b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.mp-slide-title {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.05;
    color: #ffffff !important;
    text-shadow: 0 8px 24px rgba(11, 11, 11, 0.34) !important;
}

.mp-slide-description {
    font-size: 1.05rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 6px 18px rgba(11, 11, 11, 0.26) !important;
}

.mp-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f24a0b !important;
    color: white;
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 16px 30px rgba(242, 74, 11, 0.24);
}

.mp-slide-button:hover {
    background: #c63a05 !important;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(198, 58, 5, 0.28);
}

/* ============================================
   NAVIGATION SLIDER
   ============================================ */

.mp-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-slide-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.mp-slide-prev {
    left: 0.5rem;
}

.mp-slide-next {
    right: 0.5rem;
}

.mp-slide-nav svg {
    width: 20px;
    height: 20px;
}

/* Points de navigation */
.mp-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.mp-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp-slide-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.mp-slide-dot.mp-dot-active {
    background: #f24a0b;
}

/* ============================================
   SIDEBAR SECTION (1/4)
   ============================================ */

.mp-sidebar-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
}

/* Sur mobile/tablette, affichage horizontal */
@media (min-width: 768px) and (max-width: 1023px) {
    .mp-sidebar-section {
        grid-template-columns: 1fr 1fr;
    }
}

.mp-sidebar-block {
    height: 100%;
    min-height: 0;
}

/* ============================================
   CARTE PROFESSIONNELS
   ============================================ */

.mp-pro-card {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(58, 63, 69, 0.08);
    border-radius: 0;
    padding: 1.35rem;
    box-shadow: 0 18px 38px rgba(11, 11, 11, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mp-pro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(11, 11, 11, 0.12);
}

.mp-card-content {
    flex: 1;
}

.mp-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mp-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mp-icon-pro {
    background: rgba(242, 74, 11, 0.12);
    color: #f24a0b;
}

.mp-card-icon svg {
    width: 20px;
    height: 20px;
}

.mp-card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f24a0b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mp-card-title {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    /* Surcharge des styles h3 globaux pour ce module */
    background: none !important;
    padding: 0 !important;
}

.mp-card-text {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.mp-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    margin-top: 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.mp-button-pro {
    background: #f24a0b !important;
    color: white;
}

.mp-button-pro:hover {
    background: #c63a05 !important;
    color: white;
    text-decoration: none;
}

.mp-button-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.mp-card-button:hover .mp-button-icon {
    transform: translateX(4px);
}

/* ============================================
   CARTE PROMO
   ============================================ */

.mp-promo-card {
    height: 100%;
    background: linear-gradient(135deg, #0b0b0b 0%, #3a3f45 100%);
    border-radius: 0;
    padding: 1.35rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 38px rgba(11, 11, 11, 0.12);
}

/* Décorations d'arrière-plan */
.mp-promo-bg-decoration {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mp-decoration-1 {
    width: 80px;
    height: 80px;
    top: -40px;
    right: -40px;
}

.mp-decoration-2 {
    width: 64px;
    height: 64px;
    bottom: -32px;
    left: -32px;
}

.mp-promo-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.mp-icon-promo {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mp-badge-promo {
    color: #f8b89e;
}

.mp-promo-title {
    color: white;
    /* Surcharge des styles h3 globaux pour ce module */
    background: none !important;
    padding: 0 !important;
}

.mp-promo-code-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.mp-promo-code-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-promo-code-info {
    flex: 1;
}

.mp-promo-code-label {
    font-size: 0.75rem;
    color: #f8b89e;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mp-promo-code-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    color: white;
}

.mp-copy-button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mp-copy-button svg {
    width: 16px;
    height: 16px;
}

.mp-button-promo {
    background: white;
    color: rgb(253, 72, 20);
    position: relative;
    z-index: 2;
}

.mp-button-promo:hover {
    background: #fed7aa;
    color: rgb(224, 62, 0);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile */
@media (max-width: 767px) {
    .mp-home-slider-wrapper {
        padding: 0.5rem 0;
    }
    
    .mp-home-slider-container {
        margin: 0 0.5rem;
    }
    
    .mp-home-slider-layout {
        height: auto;
        gap: 0.75rem;
    }
    

    
    .mp-slide-text {
        padding: 1.5rem;
    }
    
    .mp-slide-title {
        font-size: 1.8rem;
    }
    
    .mp-slide-description {
        font-size: 0.95rem;
    }
    
    .mp-pro-card,
    .mp-promo-card {
        padding: 1rem;
    }
    
    .mp-sidebar-section {
        gap: 0.75rem;
    }
    
    .mp-card-title {
        font-size: 1rem;
    }
    
    .mp-card-text {
        font-size: 0.8rem;
    }
    
    /* Masquer les flèches sur mobile */
    .mp-slide-nav {
        display: none;
    }
    
    /* Réduire l'espacement des cartes sur mobile */
    .mp-card-header {
        margin-bottom: 0.5rem;
    }
    
    .mp-card-button {
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .mp-promo-code-box {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Tablette */
@media (min-width: 768px) and (max-width: 1023px) {
    .mp-pro-card,
    .mp-promo-card {
        padding: 0.875rem;
    }
}

/* ============================================
   ANIMATION DE COPIE
   ============================================ */

.mp-copy-code.copied::after {
    content: "Copié !";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    animation: mp-tooltip-show 2s ease;
    z-index: 1000;
}

@keyframes mp-tooltip-show {
    0% { opacity: 0; transform: translateX(-50%) translateY(0.25rem); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-0.25rem); }
}

/* ============================================
   ÉTATS ET ACCESSIBILITÉ
   ============================================ */

.mp-slide-nav:focus,
.mp-slide-dot:focus,
.mp-copy-button:focus {
    outline: 2px solid rgb(253, 72, 20);
    outline-offset: 2px;
}

.mp-slide-nav:disabled,
.mp-slide-dot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   MENTION PROMO (DISCLAIMER)
   ============================================ */

.mp-promo-disclaimer {
    font-size:0.70rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0 0;
    text-align: left;
    line-height: 1.2;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .mp-home-slider-container {
        display: none !important;
    }
} 
