/* Custom CSS for Orléans Nuisibles */

:root {
    --bleu-primaire: #1E3A8A;
    --orange-action: #F97316;
    --gris-texte: #334155;
    --gris-clair: #F8FAFC;
    --vert-eco: #10B981;
    --rouge-urgence: #EF4444;
}

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    color: var(--gris-texte);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--bleu-primaire);
    line-height: 1.2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--bleu-primaire), var(--orange-action));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

header.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header.-translate-y-full {
    transform: translateY(-100%);
}

/* Navigation Dropdown */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card .service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* CTA Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--orange-action), #ea580c);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--bleu-primaire);
    border: 2px solid var(--bleu-primaire);
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bleu-primaire);
    color: white;
}

.btn-urgence {
    background: var(--rouge-urgence);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--bleu-primaire) 0%, #1e40af 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

/* FAQ Accordion */
.faq-button {
    position: relative;
}

.faq-button i {
    transition: transform 0.3s ease;
}

.faq-button i.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 500px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    color: #fbbf24;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--orange-action);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input.error {
    border-color: var(--rouge-urgence);
}

.form-label {
    font-weight: 600;
    color: var(--gris-texte);
    margin-bottom: 5px;
    display: block;
}

/* Zone Cards */
.zone-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.zone-card:hover {
    border-color: var(--orange-action);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(90deg, var(--rouge-urgence), #dc2626);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    animation: slideInLeft 0.5s ease;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #1f2937, #111827);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--orange-action);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--orange-action);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: var(--vert-eco);
    color: white;
}

.badge-urgent {
    background: var(--rouge-urgence);
    color: white;
    animation: pulse 2s infinite;
}

.badge-info {
    background: var(--bleu-primaire);
    color: white;
}

/* Process Timeline */
.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--orange-action);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-gradient {
        padding: 60px 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .service-card {
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    header, footer, .emergency-banner, .btn-primary, .btn-secondary {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bleu-primaire);
    color: white;
    padding: 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary, .btn-secondary, .btn-urgence {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --gris-texte: #e5e7eb;
        --gris-clair: #1f2937;
    }

    body {
        background-color: #111827;
        color: var(--gris-texte);
    }

    .service-card, .zone-card, .testimonial-card {
        background: #1f2937;
        border-color: #374151;
    }
}