/* 
 * Styles specifiques pour la nouvelle page d'accueil VefaConnect 
 * Utilise les variables CSS definies dans style.css et main.css
 */

/* Hero Section */
.hero-redesign {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-color, #ffffff) 0%, #f0f8ff 100%);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-redesign::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 60%);
    animation: rotateBackground 60s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading, 'Arial', sans-serif);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color, #3498db);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-on-light-bg, #333);
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-search-container {
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    max-width: 600px;
    margin: 0 auto 40px auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
}

.hero-search-input {
    border: none;
    background: transparent;
    padding: 15px 25px;
    flex-grow: 1;
    font-size: 1.1rem;
    outline: none;
}

.hero-search-btn {
    background: var(--primary-color, #3498db);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search-btn:hover {
    background: var(--navbar-link-hover-color, #ff4000);
    transform: scale(1.05);
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-premium {
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-premium-primary {
    background: var(--primary-color, #3498db);
    color: white;
    border: 2px solid var(--primary-color, #3498db);
}

.btn-premium-primary:hover {
    background: var(--navbar-link-hover-color, #ff4000);
    border-color: var(--navbar-link-hover-color, #ff4000);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 64, 0, 0.3);
}

.btn-premium-secondary {
    background: white;
    color: var(--primary-color, #3498db);
    border: 2px solid var(--primary-color, #3498db);
}

.btn-premium-secondary:hover {
    background: var(--primary-color, #3498db);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

/* Features Section (Value Proposition) */
.features-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--title-color, #292929);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color, #3498db);
    border-radius: 2px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(52, 152, 219, 0.05) 0%, transparent 100%);
    transition: height 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-color, #3498db);
    transform: scale(1.1);
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color, #3498db);
    transition: color 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper i {
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--title-color, #292929);
}

.feature-desc {
    color: var(--secondary-color, #6C757D);
    font-size: 1rem;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

@media (min-width: 992px) {
    .step-item {
        margin-bottom: 0;
        padding-top: 40px;
        /* Ajout d'un padding pour repousser le contenu et éviter le chevauchement avec la flèche */
    }

    .step-item:not(:last-child)::after {
        content: '\f105';
        /* FontAwesome angle-right */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 35px;
        /* Aligné avec le milieu du cercle (hauteur: 70px) */
        right: -15px;
        font-size: 24px;
        color: #dee2e6;
        transform: translateY(-50%);
        z-index: 0;
    }
}

.step-number {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    /* Match the background of the section */
    border: 3px solid var(--primary-color, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color, #3498db);
    margin: 0 auto 20px auto;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    position: relative;
    left: auto;
    transform: none;
    z-index: 2;
}

@media (min-width: 992px) {
    .step-number {
        margin-bottom: 25px;
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-item:hover .step-number {
    background: var(--primary-color, #3498db);
    color: white;
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--secondary-color, #6C757D);
    line-height: 1.6;
}

/* Final CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, #2980b9 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-final {
    background: white;
    color: var(--primary-color, #3498db);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-cta-final:hover {
    background: var(--navbar-link-hover-color, #ff4000);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn-premium {
        width: 100%;
    }

    .hero-search-container {
        flex-direction: column;
        border-radius: 20px;
    }

    .hero-search-btn {
        border-radius: 50px;
        margin-top: 10px;
        justify-content: center;
    }
}