/* Styles pour la popup d'accueil Seillons */

.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.welcome-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.welcome-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: welcomePopupSlideIn 0.5s ease-out;
}

@keyframes welcomePopupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.welcome-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 15px 15px 0 0;
}

.welcome-popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.welcome-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.welcome-popup-body {
    padding: 1.5rem;
}

/* S'assurer que tous les textes sont visibles */
.welcome-popup-body p {
    color: #333 !important;
}

.welcome-popup-body h4 {
    color: var(--primary-color) !important;
}

.welcome-popup-body h5 {
    color: var(--primary-color) !important;
}

.welcome-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-intro h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.welcome-intro p {
    color: #333 !important;
}

.welcome-main-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333 !important;
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.welcome-presentation {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.welcome-presentation h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.welcome-presentation p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #333 !important;
}

.welcome-presentation p:last-child {
    margin-bottom: 0;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    margin: 0 0 0.4rem 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.feature-text p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.welcome-process {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
}

.welcome-process h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 0.3rem 0;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.welcome-commitment {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.welcome-clarification {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid #ff9800;
}

.welcome-clarification h4 {
    color: #e65100;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.welcome-clarification p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #333 !important;
}

.welcome-clarification p:last-child {
    margin-bottom: 0;
}

.welcome-commitment h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.welcome-commitment p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #333 !important;
}

.welcome-commitment p:last-child {
    margin-bottom: 0;
}

.welcome-signature {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.signature-text {
    margin: 0;
    line-height: 1.6;
}

.signature-text strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.signature-text em {
    color: #666;
    font-size: 1rem;
    font-style: italic;
}

.signature-source {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-popup-footer {
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-note {
    margin: 1rem 0 0 0;
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-popup-content {
        width: 95%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .welcome-popup-header,
    .welcome-popup-body,
    .welcome-popup-footer {
        padding: 1.5rem;
    }
    
    .welcome-popup-header h2 {
        font-size: 1.3rem;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .welcome-presentation,
    .welcome-process,
    .welcome-commitment,
    .welcome-clarification,
    .welcome-signature {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-popup-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .welcome-popup-header,
    .welcome-popup-body,
    .welcome-popup-footer {
        padding: 1rem;
    }
    
    .welcome-popup-header h2 {
        font-size: 1.2rem;
    }
    
    .welcome-intro h3 {
        font-size: 1.1rem;
    }
    
    .welcome-main-text {
        font-size: 1rem;
        padding: 0.8rem;
    }
}
