/* Main Styles for DetectNuisible.fr 
 * Developer: AI Assistant
 * Version: 1.0
 */

/* ====== BASE STYLES ====== */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --accent-color: #8BC34A;
    --text-color: #333333;
    --text-light: #757575;
    --background-color: #FFFFFF;
    --background-light: #F5F5F5;
    --background-dark: #E0E0E0;
    --grey-dark: #616161;
    --grey-medium: #9E9E9E;
    --danger-color: #F44336;
    --success-color: #4CAF50;
    --info-color: #2196F3;
    --warning-color: #FF9800;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-color);
}

p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
}

section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== UTILITIES ====== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.2rem;
}

/* ====== BUTTONS ====== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 12px 24px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1.1rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* ====== NAVBAR ====== */
.site-header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    padding: 10px 15px;
    font-weight: 500;
    color: var(--text-color);
    transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link.btn {
    margin-left: 15px;
    color: white;
}

/* ====== HERO SECTION ====== */
.hero {
    padding: 100px 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.hero-text {
    padding-right: 30px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-image img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03);
}

/* ====== FEATURES SECTION ====== */
.features {
    background-color: var(--background-light);
}

.feature-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 35px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ====== COMMON PESTS SECTION ====== */
.common-pests {
    background-color: var(--background-color);
}

.pest-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: transform var(--transition-speed) ease;
}

.pest-card:hover {
    transform: translateY(-8px);
}

.pest-image {
    height: 250px;
    overflow: hidden;
}

.pest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pest-card:hover .pest-image img {
    transform: scale(1.1);
}

.pest-info {
    padding: 20px;
}

.pest-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ====== BENEFITS SECTION ====== */
.benefits {
    background-color: var(--background-light);
}

.benefits-content {
    padding: 0 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.benefits-list li {
    display: flex;
    margin-bottom: 25px;
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 20px;
    margin-top: 5px;
}

.benefits-list h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ====== TESTIMONIALS SECTION ====== */
.testimonials {
    background-color: var(--background-color);
}

.testimonial-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    height: 100%;
    transition: transform var(--transition-speed) ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-content {
    font-style: italic;
    position: relative;
    padding: 0 15px;
}

.testimonial-content:before,
.testimonial-content:after {
    content: '"';
    font-size: 60px;
    color: var(--primary-light);
    position: absolute;
    line-height: 1;
}

.testimonial-content:before {
    top: -20px;
    left: -15px;
}

.testimonial-content:after {
    bottom: -40px;
    right: -15px;
}

.testimonial-author {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--background-dark);
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.rating {
    color: #FFD700;
    margin: 10px 0;
}

/* ====== CTA SECTION ====== */
.cta {
    background-color: var(--primary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta h2, .cta p {
    color: white;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    margin-top: 20px;
}

.cta .btn:hover {
    background-color: var(--background-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ====== DETECTION PAGE ====== */
.detection-header {
    background-color: var(--primary-light);
    padding: 50px 0;
}

.detection-form {
    background-color: var(--background-color);
    padding: 50px 0 80px;
}

/* ====== SERVICES PAGE ====== */
.service-header {
    background-color: var(--primary-light);
    padding: 50px 0;
}

.featured-badge {
    text-align: center;
    margin-bottom: 20px;
}

.featured-badge span {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
}

.featured-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: highlight 2s infinite alternate;
}

@keyframes highlight {
    from {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
    }
    to {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
    }
}

.service-image {
    margin-bottom: 20px;
}

.service-content {
    padding: 0 20px;
}

.service-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.service-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-info {
    display: flex;
    margin-bottom: 25px;
}

.contact-info div {
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    height: 100%;
    transition: transform var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-body {
    padding: 20px;
}

.service-body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.why-professional {
    background-color: var(--background-light);
}

.reason-item {
    display: flex;
    margin-bottom: 30px;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.reason-icon i {
    font-size: 25px;
    color: var(--primary-color);
}

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

.cta-section {
    background-color: var(--primary-light);
    padding: 70px 0;
}

/* ====== FOOTER ====== */
.site-footer {
    background-color: var(--grey-dark);
    color: white;
    padding: 80px 0 40px;
}

.site-footer h5 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.site-footer p, .site-footer li {
    color: #BBBBBB;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #BBBBBB;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links i {
    color: white;
}

.copyright-text {
    margin-bottom: 0;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.legal-links li {
    margin-left: 20px;
}

/* ====== ANIMATIONS ====== */
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-in-out forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-in-out forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 1199.98px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .benefits-content {
        padding: 0;
        margin-top: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        margin-bottom: 15px;
    }
}

@media (max-width: 767.98px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .testimonial-card {
        margin-bottom: 30px;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-info div {
        margin-bottom: 15px;
    }
    
    .legal-links {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .legal-links li {
        margin-left: 0;
        margin-right: 20px;
    }
}

@media (max-width: 575.98px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .featured-card {
        padding: 20px;
    }
    
    .service-content {
        padding: 0;
    }
}

/* Flash messages */
.flash-messages {
    margin-top: 70px;
}
