/*
Theme Name: Snipay
Theme URI: https://snipay.ca
Author: Snipay
Author URI: https://snipay.ca
Description: Solutions comptables professionnelles pour particuliers et entreprises. Theme WordPress moderne avec design épuré.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snipay
*/

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f9fafb;
    color: #111827;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
    --color-primary: #1a1a1a;
    --color-accent: #d4af37;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-600: #2563eb;
    --color-blue-800: #1e40af;
    --color-green-50: #f0fdf4;
    --color-green-100: #dcfce7;
    --color-green-600: #16a34a;
    --color-green-800: #166534;
    --color-purple-50: #faf5ff;
    --color-purple-100: #f3e8ff;
    --color-purple-600: #9333ea;
    --color-purple-800: #6b21a8;
    --color-red-100: #fee2e2;
    --color-red-600: #dc2626;
    --color-white: #ffffff;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.125rem;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ===== GRID UTILITIES ===== */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

.gap-20 {
    gap: 5rem;
}

/* ===== FLEXBOX UTILITIES ===== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* ===== SPACING UTILITIES ===== */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* ===== TEXT UTILITIES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.uppercase {
    text-transform: uppercase;
}

/* ===== COLOR UTILITIES ===== */
.text-white {
    color: var(--color-white);
}

.text-gray-500 {
    color: var(--color-gray-500);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.text-blue-600 {
    color: var(--color-blue-600);
}

.text-green-600 {
    color: var(--color-green-600);
}

.text-purple-600 {
    color: var(--color-purple-600);
}

.text-red-600 {
    color: var(--color-red-600);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-gray-50 {
    background-color: var(--color-gray-50);
}

.bg-gray-100 {
    background-color: var(--color-gray-100);
}

.bg-gray-900 {
    background-color: var(--color-gray-900);
}

.bg-blue-50 {
    background-color: var(--color-blue-50);
}

.bg-blue-100 {
    background-color: var(--color-blue-100);
}

.bg-blue-600 {
    background-color: var(--color-blue-600);
}

.bg-green-50 {
    background-color: var(--color-green-50);
}

.bg-green-100 {
    background-color: var(--color-green-100);
}

.bg-purple-50 {
    background-color: var(--color-purple-50);
}

.bg-red-100 {
    background-color: var(--color-red-100);
}

/* ===== BORDER UTILITIES ===== */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border: 1px solid var(--color-gray-200);
}

.border-gray-100 {
    border-color: var(--color-gray-100);
}

.border-gray-800 {
    border-color: var(--color-gray-800);
}

.border-t {
    border-top: 1px solid var(--color-gray-200);
}

.border-b {
    border-bottom: 1px solid var(--color-gray-200);
}

/* ===== SHADOW UTILITIES ===== */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ===== WIDTH/HEIGHT UTILITIES ===== */
.w-full {
    width: 100%;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-16 {
    width: 4rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-7xl {
    max-width: 80rem;
}

/* ===== POSITION UTILITIES ===== */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-50 {
    z-index: 50;
}

/* ===== OVERFLOW ===== */
.overflow-hidden {
    overflow: hidden;
}

/* ===== OBJECT FIT ===== */
.object-cover {
    object-fit: cover;
}

/* ===== DISPLAY ===== */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }

    .lg\:flex-row-reverse {
        flex-direction: row-reverse;
    }

    .lg\:w-1\/2 {
        width: 50%;
    }
}

/* ===== TRANSITIONS ===== */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

/* ===== TRANSFORMS ===== */
.transform {
    transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0));
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* ===== COMPONENT STYLES ===== */

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    border-radius: 0.375rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
    background-color: var(--color-gray-800);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-gray-100);
    color: var(--color-gray-900);
}

.btn-secondary:hover {
    background-color: var(--color-gray-200);
}

/* Cards */
.card {
    background-color: var(--color-gray-50);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--color-gray-100);
    transition: all 0.3s ease;
}

.card:hover {
    background-color: var(--color-white);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.05);
}

/* Service Detail Block */
.service-detail-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .service-detail-block {
        flex-direction: row;
        gap: 5rem;
    }

    .service-detail-block.reverse {
        flex-direction: row-reverse;
    }
}

.service-detail-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

.service-detail-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.service-detail-badge span {
    font-weight: 700;
    color: var(--color-gray-900);
}

/* Feature List */
.feature-list {
    display: grid;
    gap: 1rem 2rem;
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background-color: var(--color-green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.feature-check svg {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--color-green-600);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background-color: var(--color-white);
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

.hero-highlight {
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 9999px;
}

.hero-image-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border: 1px solid var(--color-gray-100);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.mobile-menu a:hover {
    background-color: var(--color-gray-50);
    color: var(--color-gray-900);
}

/* Hamburger Button */
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--color-gray-700);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger:hover {
    color: var(--color-gray-900);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Team Section */
.team-image-container {
    position: relative;
}

.team-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-blue-600);
    border-radius: 1.5rem;
    transform: rotate(3deg);
    opacity: 0.1;
}

.team-image {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    width: 100%;
    object-fit: cover;
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.team-image:hover {
    transform: rotate(0deg);
}

.team-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    border: 1px solid var(--color-gray-100);
    max-width: 16rem;
}

@media (max-width: 767px) {
    .team-badge {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: var(--color-gray-900);
    color: var(--color-gray-300);
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--color-gray-800);
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Icon Containers */
.icon-blue {
    background-color: var(--color-blue-100);
    color: var(--color-blue-600);
}

.icon-green {
    background-color: var(--color-green-100);
    color: var(--color-green-600);
}

.icon-red {
    background-color: var(--color-red-100);
    color: var(--color-red-600);
}

.icon-purple {
    background-color: var(--color-purple-100);
    color: var(--color-purple-600);
}

/* Gradient overlays for service images */
.gradient-blue {
    background: linear-gradient(to top right, var(--color-blue-600), var(--color-blue-800));
}

.gradient-green {
    background: linear-gradient(to top right, var(--color-green-600), var(--color-green-800));
}

.gradient-purple {
    background: linear-gradient(to top right, var(--color-purple-600), var(--color-purple-800));
}

/* Subtitle badges */
.subtitle-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.subtitle-badge.blue {
    background-color: var(--color-blue-50);
    color: var(--color-gray-800);
}

.subtitle-badge.green {
    background-color: var(--color-green-50);
    color: var(--color-gray-800);
}

.subtitle-badge.purple {
    background-color: var(--color-purple-50);
    color: var(--color-gray-800);
}

/* Animation class - no opacity issues */
.animate-fade-in-up {
    /* Animation removed - was causing visibility issues */
}

/* Print styles */
@media print {

    .nav-fixed,
    .mobile-menu,
    .hamburger {
        display: none !important;
    }
}