/* Modern Home Page Styles for DetectNuisible.fr */

/* Global styles for modern homepage */
.modern-home {
    overflow-x: hidden;
    background-color: #fafafa;
}

.modern-home section {
    position: relative;
}

/* Hero section */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #e6f7ea 100%);
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234CAF50' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.8;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.2);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

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

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.2s forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.4s forwards;
}

.hero-title span {
    color: #4CAF50;
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(76, 175, 80, 0.2);
    z-index: -1;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: lineExpand 0.4s 1.2s forwards;
}

@keyframes lineExpand {
    to {
        transform: scaleY(1);
    }
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s 0.8s forwards;
}

.btn-modern {
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    z-index: -1;
    transition: all 0.6s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-modern:hover::before {
    transform: scaleX(1.1) scaleY(1.2);
    opacity: 0.8;
}

.hero-image-container {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s 1s forwards;
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 20% 50% 30% 40%;
    z-index: -1;
    animation: morphBg 15s linear infinite alternate;
}

@keyframes morphBg {
    0% {
        border-radius: 20% 50% 30% 40%;
    }
    25% {
        border-radius: 40% 30% 50% 20%;
    }
    50% {
        border-radius: 30% 40% 20% 50%;
    }
    75% {
        border-radius: 50% 20% 40% 30%;
    }
    100% {
        border-radius: 20% 50% 30% 40%;
    }
}

.hero-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.6s ease;
}

.hero-image-container:hover .hero-image {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards, bounce 2s 1.5s infinite;
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: #4CAF50;
}

/* How it works section */
.how-it-works {
    padding: 120px 0;
    background-color: white;
}

.section-heading {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
}

.section-title {
    font-size: 2.5rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
}

.step-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.1);
}

.step-card::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: 0;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.step-icon i {
    font-size: 2rem;
    color: white;
}

.step-number {
    position: absolute;
    right: 30px;
    top: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(76, 175, 80, 0.1);
    line-height: 1;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.step-description {
    color: #666;
    position: relative;
    z-index: 1;
}

/* Pest types section */
.pest-types {
    padding: 120px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.pest-types::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -150px;
    left: -150px;
}

.pest-types::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -200px;
    right: -200px;
}

.pest-slider {
    margin-top: 60px;
    position: relative;
}

.pest-card-modern {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 20px 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pest-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pest-icon-container {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

.pest-icon-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pest-card-modern .pest-icon {
    width: 80px;
    height: 80px;
    transition: all 0.5s ease;
}

.pest-card-modern:hover .pest-icon {
    transform: scale(1.1) rotate(5deg);
}

.pest-card-modern h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.pest-card-modern p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Benefits section */
.benefits-modern {
    padding: 120px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.benefits-modern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234CAF50' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.benefits-image {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
}

.benefits-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.benefits-image::before {
    content: '';
    position: absolute;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border: 2px dashed rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    top: 20px;
    left: 20px;
    z-index: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.benefits-content {
    padding-left: 50px;
    opacity: 0;
    transform: translateX(50px);
}

.benefit-item {
    display: flex;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.benefit-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.2);
}

.benefit-icon i {
    font-size: 1.8rem;
    color: white;
}

.benefit-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.benefit-text p {
    color: #666;
    margin-bottom: 0;
}

/* CTA section */
.cta-modern {
    padding: 120px 0;
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
}

.btn-cta {
    background-color: white;
    color: #4CAF50;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    transform: translateY(30px);
    display: inline-flex;
    align-items: center;
}

.btn-cta i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: #4CAF50;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .hero-modern {
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image-container {
        margin-top: 60px;
    }
    
    .benefits-content {
        padding-left: 0;
        margin-top: 60px;
    }
    
    .how-it-works, .pest-types, .benefits-modern, .cta-modern {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .step-card {
        margin-bottom: 40px;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-tagline {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-modern {
        padding: 12px 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}