/*
 * 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: 1rem 0;
}

.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.5rem;
    background: #f5f5f5;
}

/* ============================================
   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: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.mp-slide-text {
    padding: 2rem 5rem;
    width: 100%;
}

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

.mp-slide-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.mp-slide-description {
    font-size: 1.125rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
    color: white;
}

.mp-slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(253, 72, 20) !important;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.mp-slide-button:hover {
    background: rgb(224, 62, 0) !important;
    color: white;
    text-decoration: none;
}

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

.mp-slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    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: white;
}

/* ============================================
   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: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
}

.mp-pro-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.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: rgb(255 230 222 / var(--tw-bg-opacity, 1));
    color: rgb(253, 72, 20);
}

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

.mp-card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(253, 72, 20);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-card-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin: 0 0 0.5rem 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.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.mp-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-top: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

.mp-button-pro {
    background: rgb(253, 72, 20) !important;
    color: white;
}

.mp-button-pro:hover {
    background: rgb(224, 62, 0) !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, rgb(253, 72, 20) 0%, rgb(224, 62, 0) 100%);
    border-radius: 0.5rem;
    padding: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 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: #fed7aa;
}

.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.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.625rem;
    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: #fed7aa;
    margin: 0 0 0.25rem 0;
}

.mp-promo-code-text {
    font-size: 1.125rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    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: 1rem 1.5rem;
    }
    
    .mp-slide-title {
        font-size: 1.5rem;
    }
    
    .mp-slide-description {
        font-size: 0.875rem;
    }
    
    .mp-pro-card,
    .mp-promo-card {
        padding: 0.75rem;
    }
    
    .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;
    }
} 