/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F5F0;
    color: #2E2E2E;
    margin: 0;
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

/* Variables */
/* Variables */
:root {
    --bg-primary: #F5F5F0;
    --bg-card: #ffffff;
    --text-primary: #2E2E2E;
    --text-secondary: rgba(46, 46, 46, 0.7);
    --accent-primary: #4B5745;
    --border-color: #E5E5E0;

    --cream: #F5F5F0;
    --charcoal: #2E2E2E;
    --forest-green: #4B5745;
    --sage: #A3B18A;
    --transition-smooth: all 0.3s ease;
}


/* Service Card - The Blocks */
.service-card {
    background-color: #ffffff;
    /* Strong shadow to make it pop */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    /* Ensure visibility */
    display: flex;
    /* Fix alignment */
    flex-direction: column;
}

/* Add a specific border to ensure separation if shadow is too subtle on some screens */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Portfolio Item */
.portfolio-item {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Apparition Douce et Fluide */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F5F5F0;
}

/* Pricing Card */
.pricing-card {
    background-color: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle start shadow */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

::-webkit-scrollbar-thumb:hover {
    background: #3d4738;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    max-width: 800px;
    margin: 100px auto;
    padding: 60px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: sticky;
    top: 20px;
    float: right;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-modal:hover {
    background: #4B5745;
    color: white;
}

.modal h3 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    color: #2E2E2E;
}

.modal h3:first-child {
    margin-top: 0;
}

.modal h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #4B5745;
}

.modal p,
.modal li {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(46, 46, 46, 0.8);
    margin-bottom: 1rem;
}

.modal ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}