/* ===================================
   TAL'TECH - Styles Principaux
   Identique au site Bolt original
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .nav-link, button, .font-display {
    font-family: 'Montserrat', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-in-out forwards;
    opacity: 0;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease-in-out;
}

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

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

/* Stagger animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ===================================
   Header / Navigation
   =================================== */
header {
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header.scrolled .nav-link {
    color: #333 !important;
}

header.scrolled .nav-link:hover {
    color: #0A1E5F !important;
}

.nav-link {
    position: relative;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #33CC33;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
    z-index: 60;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #0A1E5F;
    border-radius: 2px;
    transition: all 0.3s ease;
}

header:not(.scrolled) .hamburger span {
    background: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    z-index: 55;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    flex-direction: column;
    padding-top: 80px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
    right: 0;
}

.mobile-menu a {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: #f5f5f5;
    color: #0A1E5F;
    padding-left: 30px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.mobile-overlay.active {
    display: block;
}

/* ===================================
   Hero Section
   =================================== */
.gradient-hero {
    background: linear-gradient(135deg, #071547 0%, #091a53 50%, #0A1E5F 100%);
    position: relative;
    overflow: hidden;
}

.circuit-bg {
    position: relative;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3062522/pexels-photo-3062522.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover fixed;
    opacity: 0.1;
    z-index: 0;
}

.circuit-overlay {
    position: relative;
    z-index: 2;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.badge-new {
    transform: rotate(-12deg);
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
    box-shadow: 0 10px 30px rgba(51, 204, 51, 0.3);
}

/* Wave divider */
.wave-divider {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    margin-top: -1px;
}

/* ===================================
   Social Media Banner
   =================================== */
.social-banner {
    background: linear-gradient(135deg, #0A1E5F, #091a53);
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(10, 30, 95, 0.1);
}

.icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #e6e9f2;
    transition: all 0.3s ease;
}

.service-card:hover .icon-bg {
    background: #0A1E5F;
}

.service-card:hover .icon-bg svg {
    stroke: white;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    background: linear-gradient(135deg, #091a53 0%, #071547 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/3062522/pexels-photo-3062522.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover fixed;
    opacity: 0.15;
    z-index: 0;
}

.stats-content {
    position: relative;
    z-index: 2;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    color: #33CC33;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

/* ===================================
   Testimonials
   =================================== */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: #33CC33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 16px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F5;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* ===================================
   Blog Cards
   =================================== */
.blog-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 16px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* ===================================
   Deals
   =================================== */
.deal-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Contact Form
   =================================== */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0A1E5F;
    box-shadow: 0 0 0 4px rgba(10, 30, 95, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background: #33CC33;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #2eb82e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 204, 51, 0.3);
}

.btn-primary:focus-visible {
    outline: 3px solid #33CC33;
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border: 2px solid white;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #0A1E5F;
    transform: translateY(-2px);
}

.btn-secondary:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    color: #0A1E5F;
    padding: 12px 24px;
    border: 2px solid #0A1E5F;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0A1E5F;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 30, 95, 0.2);
}

.btn-outline:focus-visible {
    outline: 3px solid #0A1E5F;
    outline-offset: 2px;
}

.btn-phone {
    background: #0A1E5F;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-phone:hover {
    background: #091a53;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 30, 95, 0.3);
}

/* ===================================
   Link Arrow
   =================================== */
.link-arrow {
    color: #0A1E5F;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    color: #33CC33;
    gap: 12px;
}

/* ===================================
   Mascot
   =================================== */
.mascot-container {
    position: relative;
    display: inline-block;
}

.mascot-img {
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 20px rgba(51, 204, 51, 0.3));
}

.mascot-img:hover {
    transform: scale(1.08);
}

.mascot-large {
    width: 180px;
    height: 180px;
}

/* ===================================
   Appointment Modal
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: #666;
}

.modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

/* ===================================
   Footer
   =================================== */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #33CC33 !important;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #33CC33;
    transform: translateY(-3px);
}

/* ===================================
   Skip to Content (Accessibility)
   =================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #0A1E5F;
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 200;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-desktop {
        display: none !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }

    .hero-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .badge-new {
        display: none;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .wave-divider {
        height: 50px;
    }

    .stat-card {
        padding: 24px;
    }

    .modal-content {
        padding: 24px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    header, footer, .social-banner, .mobile-menu, .mobile-overlay, .modal-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .service-card, .stat-card, .testimonial-card, .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===================================
   Focus visible for accessibility
   =================================== */
:focus-visible {
    outline: 3px solid #0A1E5F;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
