/* Custom Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Animations Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility Classes for JS Observer */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    animation: fadeUp 1s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

/* Slider transition */
#slider-track {
    will-change: transform;
}

/* Accordion Active State */
.accordion-header.active i,
.faq-btn.active i {
    transform: rotate(180deg);
}

.accordion-header.active,
.faq-btn.active {
    color: #ea580c; /* Brand accent color (Orange 600) */
}

.accordion-content,
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Hide scrollbar for cleaner look if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Modal Styles */
#contact-modal,
#legal-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease-out;
}

#contact-modal.open,
#legal-modal.open {
    opacity: 1;
    pointer-events: auto;
}

#contact-modal-overlay,
#legal-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.56);
}

#contact-modal-content,
#legal-modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s ease-out;
    will-change: transform, opacity;
    z-index: 101;
    overflow: hidden;
}

#contact-modal.open #contact-modal-content,
#legal-modal.open #legal-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#legal-modal-content {
    max-width: 860px;
}

.modal-header {
    background: #0f172a; /* Brand Dark */
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: white;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ea580c; /* Brand Accent */
}

.legal-content {
    color: #475569;
    line-height: 1.7;
}

.legal-content p {
    margin: 0 0 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.legal-content li {
    margin-bottom: 0.65rem;
}

.legal-content a {
    color: #ea580c;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    #contact-modal,
    #contact-modal-content,
    .cookie-consent,
    .cookie-consent__panel,
    .cookie-manage,
    .faq-answer,
    .faq-btn i {
        transition: none !important;
        animation: none !important;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom) + 5.75rem);
    z-index: 95;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent__panel {
    width: 100%;
    max-width: 54rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    padding: 1.25rem;
}

.cookie-consent__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ea580c;
}

.cookie-consent__title {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.cookie-consent__text {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.cookie-consent__link {
    display: inline-flex;
    margin-top: 0.75rem;
    color: #ea580c;
    font-weight: 700;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-btn {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn--primary {
    background: #ea580c;
    color: #ffffff;
}

.cookie-btn--primary:hover {
    background: #c2410c;
}

.cookie-btn--secondary {
    background: #0f172a;
    color: #ffffff;
}

.cookie-btn--secondary:hover {
    background: #1e293b;
}

.cookie-btn--ghost {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cookie-btn--ghost:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.cookie-consent__preferences {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.cookie-consent__option + .cookie-consent__option {
    border-top: 1px solid #f1f5f9;
}

.cookie-consent__option-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    color: #0f172a;
}

.cookie-consent__option-text {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.cookie-consent__checkbox {
    margin-top: 0.35rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #ea580c;
    flex-shrink: 0;
}

.cookie-consent__badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.cookie-consent__actions--preferences {
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.cookie-manage {
    position: fixed;
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom) + 5.75rem);
    z-index: 94;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    padding: 0.75rem 1rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cookie-manage.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-manage:hover {
    border-color: #ea580c;
    color: #ea580c;
}

@media (max-width: 767px) {
    .cookie-consent {
        left: 0.75rem;
        right: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom) + 6.25rem);
    }

    .cookie-consent__panel {
        padding: 1rem;
        border-radius: 1rem;
    }

    .cookie-consent__actions,
    .cookie-consent__actions--preferences {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent__option {
        flex-direction: column;
    }

    .cookie-manage {
        right: 0.75rem;
        bottom: calc(env(safe-area-inset-bottom) + 6.25rem);
    }
}

/* Hero Background */
.hero-bg {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('epaviste-paris-hero-enlevement-epave-v1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footers already follow padded sections on these landing pages. */
footer.mt-20,
section.py-16.bg-brand-dark.text-white + footer.mt-20,
section.py-16.bg-brand-light.border-y.border-gray-100 + footer.mt-20 {
    margin-top: 0 !important;
}
