/* ============================================
   CD FERMETURES - PREMIUM DESIGN SYSTEM
   ============================================ */

/* === Base === */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Roboto', sans-serif; overflow-x: hidden; max-width: 100vw; }

/* === Custom Cursor === */
.cursor-dot {
    width: 8px; height: 8px; background: #ED6C0E;
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9999; transition: transform 0.1s;
}
.cursor-ring {
    width: 40px; height: 40px; border: 2px solid rgba(237,108,14,0.5);
    border-radius: 50%; position: fixed; pointer-events: none;
    z-index: 9998; transition: all 0.15s ease-out;
}
.cursor-ring.hover { transform: scale(1.5); border-color: #ED6C0E; }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } }

/* === Magnetic Buttons === */
.btn-magnetic {
    display: inline-flex; align-items: center; gap: 8px;
    background: #ED6C0E; color: #fff; padding: 16px 36px;
    font-size: 1.05rem; font-weight: 500; border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; overflow: hidden; cursor: pointer;
    text-decoration: none; border: none;
}
.btn-magnetic::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.15);
    border-radius: 50%; transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.btn-magnetic:hover::before { width: 400px; height: 400px; }
.btn-magnetic:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(237,108,14,0.4); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #fff; padding: 16px 36px;
    font-size: 1.05rem; font-weight: 500; border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.4); cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

.btn-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: #002A5E; color: #fff; padding: 14px 32px;
    font-size: 1rem; font-weight: 500; border-radius: 4px;
    transition: all 0.3s ease; text-decoration: none;
}
.btn-dark:hover { background: #001d42; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,42,94,0.3); }

/* === Text Reveal Animation === */
.text-reveal { overflow: hidden; }
.text-reveal span {
    display: inline-block; transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal.revealed span { transform: translateY(0); }

/* === Parallax Section === */
.parallax-bg {
    background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover;
}
@media (max-width: 768px) { .parallax-bg { background-attachment: scroll; } }

/* === Glassmorphism Cards === */
.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px; padding: 32px;
    transition: all 0.4s ease;
}
.glass-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* === 3D Tilt Cards === */
.tilt-card {
    background: #fff; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden; transition: all 0.5s ease;
    transform-style: preserve-3d; perspective: 1000px;
}
.tilt-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.tilt-card .card-content { transform: translateZ(30px); }

/* === Product Cards with Reveal === */
.product-card {
    position: relative; overflow: hidden; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover img { transform: scale(1.12); }
.product-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,42,94,0.9) 100%);
    transition: all 0.5s ease;
}
.product-card:hover .overlay {
    background: linear-gradient(180deg, transparent 10%, rgba(237,108,14,0.9) 100%);
}
.product-card .card-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px; color: #fff;
    transform: translateY(20px); transition: all 0.5s ease;
}
.product-card:hover .card-info { transform: translateY(0); }
.product-card .card-info .discover {
    opacity: 0; transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}
.product-card:hover .card-info .discover { opacity: 1; transform: translateY(0); }

/* === Floating Elements === */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.floating { animation: float 4s ease-in-out infinite; }
.floating-slow { animation: float-slow 6s ease-in-out infinite; }

/* === Scroll Progress Bar === */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, #ED6C0E, #f36b24);
    z-index: 9999; transition: width 0.1s;
}

/* === Page Hero Banner (sub-pages) === */
.page-hero {
    position: relative; min-height: 45vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%;
    height: 80px; background: linear-gradient(to bottom, transparent, #fff);
    z-index: 2;
}
.page-hero .hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.4);
    transition: transform 8s ease;
}
.page-hero:hover .hero-bg { transform: scale(1.05); }
.page-hero .hero-content {
    position: relative; z-index: 3; text-align: center;
    color: #fff; padding: 0 20px;
}
.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.page-hero .breadcrumb {
    font-size: 0.95rem; opacity: 0.8;
}
.page-hero .breadcrumb a { color: #ED6C0E; text-decoration: none; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* === Section Titles === */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #002A5E; font-weight: 700;
    position: relative; margin-bottom: 2rem;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: #ED6C0E; margin-top: 12px; border-radius: 2px;
    transition: width 0.5s ease;
}
.section-title:hover::after { width: 120px; }
.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* === Advantage Items === */
.advantage-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.advantage-item:hover { padding-left: 8px; border-color: #ED6C0E; }
.advantage-item i { color: #ED6C0E; margin-top: 4px; flex-shrink: 0; }

/* === Gallery Lightbox === */
.gallery-grid .gallery-item {
    overflow: hidden; border-radius: 12px; cursor: pointer;
    position: relative;
}
.gallery-grid .gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-grid .gallery-item:hover img { transform: scale(1.1); }
.gallery-grid .gallery-item::after {
    content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(237,108,14,0.7); color: #fff; font-size: 2rem;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery-grid .gallery-item:hover::after { opacity: 1; }

.lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 90vw; max-height: 85vh; object-fit: contain;
    border-radius: 8px; animation: zoomIn 0.3s ease;
}
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* === Navbar === */
.topbar { background: #000; color: #fff; font-size: 0.875rem; }
.navbar {
    background: rgba(255,255,255,0.97); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 2px solid #000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-item:hover .dropdown { display: block; opacity: 1; transform: translateY(0); }
.dropdown {
    display: none; opacity: 0; transform: translateY(10px);
    position: absolute; top: 100%; left: 0;
    background: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 0 0 12px 12px; min-width: 220px; z-index: 50;
    border-top: 3px solid #ED6C0E;
    transition: all 0.3s ease;
}
.dropdown a {
    display: block; padding: 12px 20px; font-size: 0.9rem;
    color: #333; transition: all 0.2s ease;
}
.dropdown a:hover { background: #ED6C0E; color: #fff; padding-left: 28px; }
.nav-link {
    position: relative; display: block; padding: 16px 20px;
    font-size: 1rem; color: #333; transition: color 0.3s;
    text-decoration: none;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: #ED6C0E; transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-link:hover { color: #ED6C0E; }
.nav-link:hover::after { width: 80%; }

/* === Mobile Menu === */
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.mobile-menu.open { max-height: 1200px; }

/* === Footer === */
.footer { background: #0a0a0a; color: #9ca3af; }
.footer a { color: #9ca3af; transition: color 0.3s; text-decoration: none; }
.footer a:hover { color: #ED6C0E; }
.footer h4 { color: #fff; font-weight: 700; margin-bottom: 16px; }

/* === Tabs === */
.tab-btn {
    padding: 14px 28px; font-size: 1rem; font-weight: 500;
    border: 2px solid #e5e7eb; border-radius: 8px;
    background: #fff; color: #666; cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover { border-color: #ED6C0E; color: #ED6C0E; }
.tab-btn.active { background: #ED6C0E; color: #fff; border-color: #ED6C0E; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === Before/After Slider === */
.before-after {
    position: relative; overflow: hidden; border-radius: 16px;
    cursor: ew-resize; user-select: none;
}
.before-after img { width: 100%; display: block; }
.before-after .after-img {
    position: absolute; inset: 0; overflow: hidden;
}
.before-after .slider-handle {
    position: absolute; top: 0; bottom: 0; width: 4px;
    background: #ED6C0E; cursor: ew-resize; z-index: 10;
}
.before-after .slider-handle::after {
    content: ''; position: absolute; top: 50%;
    left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: #ED6C0E;
    border-radius: 50%; border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* === Animated Numbers === */
.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; color: #ED6C0E;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* === Process/Timeline === */
.process-step {
    position: relative; padding-left: 60px; padding-bottom: 40px;
}
.process-step::before {
    content: ''; position: absolute; left: 20px; top: 40px;
    width: 2px; height: calc(100% - 40px);
    background: linear-gradient(to bottom, #ED6C0E, #e5e7eb);
}
.process-step:last-child::before { display: none; }
.process-step .step-number {
    position: absolute; left: 0; top: 0;
    width: 42px; height: 42px; border-radius: 50%;
    background: #ED6C0E; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(237,108,14,0.3);
}

/* === Scroll To Top === */
.scroll-top-btn {
    position: fixed; bottom: 24px; right: 24px;
    width: 48px; height: 48px; border-radius: 50%;
    background: #ED6C0E; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 90;
    opacity: 0; pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237,108,14,0.4);
}
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(237,108,14,0.5); }

/* === Marquee === */
.marquee-track {
    display: flex; gap: 60px; animation: marquee 30s linear infinite;
    width: max-content;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === Form Styles === */
.form-input {
    width: 100%; padding: 14px 18px; border: 2px solid #e5e7eb;
    border-radius: 8px; font-size: 1rem; font-family: inherit;
    transition: all 0.3s ease; background: #fff;
}
.form-input:focus {
    outline: none; border-color: #ED6C0E;
    box-shadow: 0 0 0 4px rgba(237,108,14,0.1);
}
.form-label {
    display: block; font-size: 0.9rem; font-weight: 500;
    color: #374151; margin-bottom: 6px;
}

/* === Preloader === */
.preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: #002A5E;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    width: 180px; height: auto; animation: preloaderPulse 1.2s ease-in-out infinite;
    filter: brightness(2);
}
.preloader-bar {
    width: 200px; height: 3px; background: rgba(255,255,255,0.15);
    border-radius: 3px; margin-top: 30px; overflow: hidden;
}
.preloader-bar-inner {
    height: 100%; background: #ED6C0E; border-radius: 3px;
    animation: preloaderBar 1.5s ease-in-out forwards;
}
@keyframes preloaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes preloaderBar { 0% { width: 0; } 100% { width: 100%; } }

/* === WhatsApp Button === */
.whatsapp-btn {
    position: fixed; bottom: 24px; left: 24px; z-index: 91;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease; text-decoration: none;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-btn:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-btn .tooltip {
    position: absolute; left: 70px; top: 50%; transform: translateY(-50%);
    background: #fff; color: #333; padding: 8px 16px; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0; pointer-events: none; transition: all 0.3s ease;
}
.whatsapp-btn:hover .tooltip { opacity: 1; left: 75px; }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
    color: #fff; padding: 20px; border-top: 2px solid #ED6C0E;
    transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner .cookie-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.9rem; line-height: 1.5; opacity: 0.85; flex: 1; min-width: 250px; }
.cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
    background: #ED6C0E; color: #fff; border: none; padding: 10px 24px;
    border-radius: 6px; font-weight: 500; cursor: pointer; font-size: 0.9rem;
    transition: all 0.3s ease;
}
.cookie-accept:hover { background: #d45e0c; transform: translateY(-1px); }
.cookie-reject {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 24px; border-radius: 6px; font-weight: 500; cursor: pointer;
    font-size: 0.9rem; transition: all 0.3s ease;
}
.cookie-reject:hover { border-color: #fff; }

/* === Promo Banner === */
.promo-banner {
    background: linear-gradient(90deg, #ED6C0E, #f36b24, #ED6C0E);
    background-size: 200% 100%; animation: promoShimmer 3s ease infinite;
    color: #fff; padding: 10px 20px; text-align: center;
    font-size: 0.9rem; font-weight: 500;
    position: relative; z-index: 101;
}
.promo-banner a { color: #fff; text-decoration: underline; font-weight: 700; }
.promo-banner .promo-close {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #fff; font-size: 1.2rem;
    cursor: pointer; opacity: 0.7; transition: opacity 0.3s;
}
.promo-banner .promo-close:hover { opacity: 1; }
.promo-banner .countdown { font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes promoShimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* === Dark Mode === */
.dark-toggle {
    width: 44px; height: 24px; border-radius: 12px;
    background: #e5e7eb; position: relative; cursor: pointer;
    transition: background 0.3s ease; border: none;
    display: flex; align-items: center;
}
.dark-toggle::after {
    content: ''; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; position: absolute; left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.dark-toggle.active { background: #ED6C0E; }
.dark-toggle.active::after { left: 23px; }
.dark-toggle .toggle-icon { position: absolute; font-size: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.dark-toggle .sun-icon { right: 5px; }
.dark-toggle .moon-icon { left: 5px; }

/* Dark mode - base */
body.dark { background: #111; color: #e5e7eb; }

/* Dark mode - navbar */
body.dark .navbar { background: rgba(17,17,17,0.97); border-color: #333; }
body.dark .topbar { background: #000; }
body.dark .nav-link { color: #ccc; }
body.dark .nav-link:hover { color: #ED6C0E; }
body.dark .dropdown { background: #1a1a1a; border-color: #ED6C0E; }
body.dark .dropdown a { color: #ccc; }
body.dark .dropdown a:hover { background: #ED6C0E; color: #fff; }
body.dark .mobile-menu { background: #111; }
body.dark .mobile-menu a { color: #ccc; }
body.dark .mobile-menu .bg-gray-50,
body.dark .mobile-menu ul ul { background: #1a1a1a; }

/* Dark mode - sections & backgrounds */
body.dark section { background-color: inherit; }
body.dark .bg-white { background-color: #111 !important; }
body.dark .bg-gray-50 { background-color: #161616 !important; }
body.dark .bg-gray-100 { background-color: #1a1a1a !important; }

/* Dark mode - text */
body.dark .text-gray-900 { color: #e5e7eb !important; }
body.dark .text-gray-800 { color: #d1d5db !important; }
body.dark .text-gray-700 { color: #b0b5bd !important; }
body.dark .text-gray-600 { color: #9ca3af !important; }
body.dark .text-gray-500 { color: #8891a0 !important; }
body.dark .text-bleu { color: #7db0e0 !important; }
body.dark .section-title { color: #fff; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4 { color: #f3f4f6; }
body.dark p { color: #b0b5bd; }
body.dark li { color: #b0b5bd; }
body.dark strong { color: #e5e7eb; }

/* Dark mode - cards & containers */
body.dark .tilt-card { background: #1a1a1a; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark .glass-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
body.dark .product-card { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark .rounded-2xl, body.dark .rounded-xl, body.dark .rounded-lg {
    border-color: #333;
}

/* Dark mode - borders */
body.dark .border-gray-200 { border-color: #333 !important; }
body.dark .border-gray-300 { border-color: #333 !important; }
body.dark .border-t { border-color: #333; }
body.dark .border-b { border-color: #333; }

/* Dark mode - forms */
body.dark .form-input { background: #1a1a1a; border-color: #333; color: #e5e7eb; }
body.dark select { background: #1a1a1a; border-color: #333; color: #e5e7eb; }
body.dark textarea { background: #1a1a1a; border-color: #333; color: #e5e7eb; }
body.dark .form-label { color: #ccc; }
body.dark input::placeholder, body.dark textarea::placeholder { color: #666; }

/* Dark mode - tabs */
body.dark .tab-btn { background: #1a1a1a; border-color: #333; color: #999; }
body.dark .tab-btn:hover { border-color: #ED6C0E; color: #ED6C0E; }
body.dark .tab-btn.active { background: #ED6C0E; color: #fff; border-color: #ED6C0E; }

/* Dark mode - advantage items */
body.dark .advantage-item { border-color: #2a2a2a; }
body.dark .advantage-item:hover { border-color: #ED6C0E; }

/* Dark mode - page hero */
body.dark .page-hero::after { background: linear-gradient(to bottom, transparent, #111); }

/* Dark mode - footer */
body.dark .footer { background: #000; }

/* Dark mode - shadows on images */
body.dark .shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important; }
body.dark .shadow-xl { box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important; }
body.dark .shadow-2xl { box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important; }

/* Dark mode - process steps */
body.dark .process-step::before { background: linear-gradient(to bottom, #ED6C0E, #333); }

/* Dark mode - promo banner stays as-is (already orange) */
/* Dark mode - cookie banner stays as-is (already dark) */
/* Dark mode - WhatsApp button stays as-is (already green) */

/* Dark mode - scrollbar */
body.dark::-webkit-scrollbar { width: 8px; }
body.dark::-webkit-scrollbar-track { background: #111; }
body.dark::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
body.dark::-webkit-scrollbar-thumb:hover { background: #ED6C0E; }

/* Dark mode - misc Tailwind overrides */
body.dark .bg-orange\/10 { background-color: rgba(237,108,14,0.15) !important; }
body.dark .bg-bleu\/10 { background-color: rgba(0,42,94,0.15) !important; }
body.dark .bg-black\/60 { background-color: rgba(0,0,0,0.8) !important; }
body.dark [class*="from-gray"] { --tw-gradient-from: #161616 !important; }
body.dark [class*="to-gray"] { --tw-gradient-to: #1a1a1a !important; }

/* === Page Transition === */
.page-transition {
    position: fixed; inset: 0; z-index: 99998;
    background: #002A5E; transform: scaleX(0);
    transform-origin: left; pointer-events: none;
}
.page-transition.enter { animation: ptEnter 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
.page-transition.exit { animation: ptExit 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
@keyframes ptEnter { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes ptExit { 0% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* === FAQ Accordion === */
.faq-item { border-bottom: 1px solid #e5e7eb; }
body.dark .faq-item { border-color: #333; }
.faq-question {
    width: 100%; padding: 20px 0; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.05rem; font-weight: 500; color: #333;
    cursor: pointer; text-align: left; font-family: inherit;
    transition: color 0.3s;
}
body.dark .faq-question { color: #e5e7eb; }
.faq-question:hover { color: #ED6C0E; }
.faq-question i { transition: transform 0.3s ease; color: #ED6C0E; flex-shrink: 0; margin-left: 12px; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 0; color: #666;
}
body.dark .faq-answer { color: #aaa; }
.faq-answer.open { max-height: 300px; padding: 0 0 20px 0; }

/* === Mascot Fox Runner === */
.fox-runner {
    position: fixed; bottom: 0; z-index: 9997;
    width: 120px; height: auto;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.fox-runner.run-right {
    animation: foxRunRight 8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
.fox-runner.run-left {
    animation: foxRunLeft 8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    transform: scaleX(-1);
}
@keyframes foxRunRight {
    0%   { left: -120px; bottom: -5px; }
    15%  { left: 10%;    bottom: -5px; }
    20%  { left: 15%;    bottom: 25px; }
    25%  { left: 20%;    bottom: -5px; }
    50%  { left: 50%;    bottom: -5px; }
    55%  { left: 55%;    bottom: 30px; }
    60%  { left: 60%;    bottom: -5px; }
    85%  { left: 85%;    bottom: -5px; }
    90%  { left: 90%;    bottom: 20px; }
    95%  { left: 95%;    bottom: -5px; }
    100% { left: 110%;   bottom: -5px; }
}
@keyframes foxRunLeft {
    0%   { left: calc(100% + 120px); bottom: -5px; }
    15%  { left: 90%;    bottom: -5px; }
    20%  { left: 85%;    bottom: 25px; }
    25%  { left: 80%;    bottom: -5px; }
    50%  { left: 50%;    bottom: -5px; }
    55%  { left: 45%;    bottom: 30px; }
    60%  { left: 40%;    bottom: -5px; }
    85%  { left: 15%;    bottom: -5px; }
    90%  { left: 10%;    bottom: 20px; }
    95%  { left: 5%;     bottom: -5px; }
    100% { left: -120px; bottom: -5px; }
}
@media (max-width: 768px) {
    .fox-runner { width: 240px; }
}

/* === Before/After Labels === */
.ba-label {
    position: absolute; top: 16px; padding: 6px 14px;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 0.8rem;
    font-weight: 600; border-radius: 4px; z-index: 5;
    text-transform: uppercase; letter-spacing: 1px;
}
.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; }

/* === Color Configurator === */
.color-swatch {
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 3px solid transparent; transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.color-swatch:hover, .color-swatch.active {
    border-color: #ED6C0E; transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* === Mobile Bottom Bar (visitors + WhatsApp + Phone) === */
.mobile-bar {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 95; flex-direction: column;
}
/* Top part: visitor counter */
.mobile-bar .bar-visitors {
    background: #fff;
    padding: 6px 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.78rem; color: #555;
}
.mobile-bar .bar-visitors .vc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; animation: vcPulse 2s infinite; flex-shrink: 0;
}
.mobile-bar .bar-visitors .vc-count { font-weight: 700; color: #002A5E; }
@keyframes vcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Bottom part: WhatsApp left + Phone right */
.mobile-bar .bar-actions {
    display: flex;
}
.mobile-bar .bar-wa {
    flex: 1; background: #25D366; display: flex; align-items: center;
    justify-content: center; gap: 8px; padding: 13px 10px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.mobile-bar .bar-wa i { font-size: 1.2rem; }
.mobile-bar .bar-phone {
    flex: 1; background: #ED6C0E; display: flex; align-items: center;
    justify-content: center; gap: 8px; padding: 13px 10px;
    color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.mobile-bar .bar-phone .phone-icon { animation: phoneRing 2s ease-in-out infinite; }
@keyframes phoneRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(-12deg); }
    20% { transform: rotate(12deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(0); }
}

/* Dark mode */
body.dark .mobile-bar .bar-visitors { background: #1a1a1a; border-color: #333; color: #aaa; }
body.dark .mobile-bar .bar-visitors .vc-count { color: #ED6C0E; }

@media (max-width: 768px) {
    .mobile-bar { display: flex; }
    /* Hide separate WhatsApp button on mobile (it's in the bar now) */
    .whatsapp-btn { display: none !important; }
    /* Adjust other fixed elements above the bar */
    .scroll-top-btn { bottom: 100px; }
    .cookie-banner { bottom: 88px; }
}

/* === Desktop Visitor Counter (desktop only) === */
.visitor-counter-desktop {
    position: fixed; bottom: 80px; left: 24px; z-index: 89;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 8px 14px; font-size: 0.8rem; color: #555;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex; align-items: center; gap: 8px;
    animation: vcSlideIn 0.5s ease forwards;
    opacity: 0; transform: translateY(20px);
}
.visitor-counter-desktop .vc-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; animation: vcPulse 2s infinite; flex-shrink: 0;
}
.visitor-counter-desktop .vc-count { font-weight: 700; color: #002A5E; }
@keyframes vcSlideIn { to { opacity: 1; transform: translateY(0); } }
body.dark .visitor-counter-desktop { background: #1a1a1a; border-color: #333; color: #aaa; }
body.dark .visitor-counter-desktop .vc-count { color: #ED6C0E; }
@media (max-width: 768px) { .visitor-counter-desktop { display: none; } }

/* === Partner Marquee === */
.marquee-section { overflow: hidden; background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
body.dark .marquee-section { background: #161616; border-color: #333; }
.marquee-track {
    display: flex; align-items: center; gap: 60px;
    animation: marquee 25s linear infinite;
    width: max-content;
}
.marquee-track img {
    height: 45px; width: auto; object-fit: contain;
    filter: grayscale(100%); opacity: 0.5;
    transition: all 0.3s ease;
}
.marquee-track img:hover { filter: grayscale(0%); opacity: 1; }
.marquee-track span {
    font-size: 0.85rem; font-weight: 600; color: #999;
    white-space: nowrap; text-transform: uppercase; letter-spacing: 2px;
}
body.dark .marquee-track span { color: #555; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================
   RESPONSIVE - ULTRA MOBILE FIRST
   ============================================ */

/* === Tablet (max 1024px) === */
@media (max-width: 1024px) {
    .navbar nav ul { gap: 0; }
    .nav-link { padding: 14px 12px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    .btn-magnetic { padding: 14px 28px; font-size: 0.95rem; }
    .btn-outline { padding: 14px 28px; font-size: 0.95rem; }
}

/* === Mobile (max 768px) === */
@media (max-width: 768px) {
    /* Hero sub-pages */
    .page-hero { min-height: 30vh; }
    .page-hero h1 { font-size: 1.8rem; margin-bottom: 8px; }
    .page-hero .breadcrumb { font-size: 0.8rem; }

    /* Section titles */
    .section-title { font-size: 1.6rem; margin-bottom: 1.2rem; }
    .section-title::after { width: 40px; height: 3px; margin-top: 8px; }

    /* Buttons */
    .btn-magnetic { padding: 12px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }
    .btn-outline { padding: 12px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }
    .btn-dark { padding: 12px 24px; font-size: 0.9rem; width: 100%; justify-content: center; }

    /* Cards */
    .tilt-card { border-radius: 12px; }
    .tilt-card:hover { transform: none; } /* Disable 3D tilt on touch */
    .glass-card { padding: 20px; border-radius: 12px; }
    .glass-card:hover { transform: none; }
    .product-card { border-radius: 12px; }

    /* Advantage items */
    .advantage-item { font-size: 0.9rem; padding: 8px 0; }

    /* Tabs */
    .tab-btn { padding: 10px 16px; font-size: 0.85rem; }

    /* Process timeline */
    .process-step { padding-left: 50px; padding-bottom: 30px; }
    .process-step .step-number { width: 36px; height: 36px; font-size: 0.95rem; }

    /* Stats/Counters */
    .stat-number { font-size: 2rem; }

    /* Gallery */
    .gallery-grid .gallery-item::after { font-size: 1.2rem; }

    /* WhatsApp */
    .whatsapp-btn { width: 50px; height: 50px; font-size: 24px; bottom: 18px; left: 18px; }
    .whatsapp-btn .tooltip { display: none; }

    /* Scroll to top */
    .scroll-top-btn { width: 42px; height: 42px; bottom: 18px; right: 18px; }

    /* Dark toggle */
    .dark-toggle { transform: scale(0.85); }

    /* Cookie banner */
    .cookie-banner .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-banner p { min-width: auto; font-size: 0.8rem; }
    .cookie-banner .cookie-btns { width: 100%; justify-content: center; }

    /* Promo banner */
    .promo-banner { font-size: 0.78rem; padding: 8px 40px 8px 15px; }
    .promo-banner .promo-close { right: 8px; }

    /* Footer */
    .footer { padding-top: 2rem; }
    .footer h4 { margin-bottom: 10px; font-size: 0.95rem; }

    /* Before/After */
    .ba-label { font-size: 0.7rem; padding: 4px 10px; top: 10px; }

    /* Forms */
    .form-input { padding: 12px 14px; font-size: 0.9rem; }

    /* Topbar */
    .topbar { font-size: 0.75rem; }
    .topbar .flex { gap: 8px; }

    /* Navbar logo */
    .navbar img { height: 48px; }

    /* Lightbox */
    .lightbox-overlay .lb-prev, .lightbox-overlay .lb-next { font-size: 1.5rem; }
    .lightbox-overlay .lb-close { font-size: 2rem; top: 8px; right: 12px; }

    /* Fox mascot */
    .fox-runner { width: 80px; }

    /* Parallax disabled on mobile */
    .parallax-bg { background-attachment: scroll; }

    /* FAQ */
    .faq-question { font-size: 0.95rem; padding: 16px 0; }
}

/* === Small Mobile (max 480px) === */
@media (max-width: 480px) {
    /* Page hero */
    .page-hero { min-height: 25vh; }
    .page-hero h1 { font-size: 1.5rem; }

    /* Section titles */
    .section-title { font-size: 1.35rem; }

    /* Tabs: scroll horizontal si trop de tabs */
    [data-tab-group] .flex-wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
    [data-tab-group] .flex-wrap::-webkit-scrollbar { display: none; }
    .tab-btn { flex-shrink: 0; padding: 8px 14px; font-size: 0.8rem; white-space: nowrap; }

    /* Stats */
    .stat-number { font-size: 1.6rem; }

    /* Topbar: stack on tiny screens */
    .topbar > div > div:first-child { font-size: 0.7rem; gap: 6px !important; }

    /* Promo banner */
    .promo-banner { font-size: 0.7rem; padding: 6px 35px 6px 10px; line-height: 1.4; }

    /* Buttons: full width stacked */
    .btn-magnetic, .btn-outline, .btn-dark { font-size: 0.85rem; padding: 11px 20px; }

    /* Cards: tighter padding */
    .glass-card { padding: 16px; }
    .tilt-card { padding: 16px; }

    /* Product cards text */
    .product-card .card-info { padding: 16px; }
    .product-card .card-info h3 { font-size: 1rem; }
    .product-card .card-info p { font-size: 0.75rem; }

    /* Footer: single column, compact */
    .footer .grid { gap: 1.5rem; }

    /* Fox smaller */
    .fox-runner { width: 60px; }

    /* Cookie */
    .cookie-banner p { font-size: 0.75rem; }
    .cookie-accept, .cookie-reject { padding: 8px 16px; font-size: 0.8rem; }

    /* FAQ */
    .faq-question { font-size: 0.88rem; }

    /* Before/After labels */
    .ba-label { font-size: 0.6rem; padding: 3px 8px; }
}

/* === Touch device optimizations === */
@media (hover: none) {
    /* Disable hover effects that feel weird on touch */
    .tilt-card:hover { transform: none !important; }
    .glass-card:hover { transform: none !important; }
    .product-card:hover img { transform: scale(1.03); }
    .product-card .card-info { transform: translateY(0); }
    .product-card .card-info .discover { opacity: 1; transform: translateY(0); }
    .nav-link::after { display: none; }
    .btn-magnetic:hover { transform: none !important; }
    .section-title::after { width: 60px; }
    .section-title:hover::after { width: 60px; }
    .advantage-item:hover { padding-left: 0; }
}

/* === Landscape phone === */
@media (max-height: 500px) and (orientation: landscape) {
    .page-hero { min-height: 60vh; }
    .hero-home { min-height: 80vh; }
}

/* === Print === */
@media print {
    .topbar, .navbar, .whatsapp-btn, .scroll-top-btn, .cookie-banner,
    .promo-banner, .dark-toggle, .fox-runner, .scroll-progress,
    .cursor-dot, .cursor-ring { display: none !important; }
    body { color: #000; background: #fff; }
    .section-title { color: #000; }
    a { color: #000; text-decoration: underline; }
}
