/* Make.com Inspired Design System */

/* 1. Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #2D2D2D;
    background-color: #ffffff !important;
}

/* 2. Colors */
:root {
    --brand-primary: #004369;
    /* bleu principal */
    --brand-primary2: #004369;
    /* bleu principal */
    --brand-secondary: #104f74;
    /* bleu foncé */

    --brand-bg: #f8f8f8;
    /* fond clair */
    --brand-bg-light: #f2f2f2;
    /* fond clair */
    --brand-text: #333;
}

/* 3. Buttons */
.btn {
    padding: 18px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    padding: 0.6rem 1.2rem;

    color: var(--brand-bg);
    border-radius: 8px;
    font-weight: 600;

    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.85;
    color: var(--brand-bg);
}



.btn-secondary {
    background-color: var(--background-light);
    color: var(--black);
}

.btn-secondary:hover {
    background-color: var(--primary-purple);
    color: var(--white);
}

/* 4. Section Styling */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-text);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-top: 1rem;
}

/* 5. Cleanup old styles */
/* Old classes like .cta-bg, .text-glow, .card-glow are no longer needed */
.cta-bg,
.hero-bg,
.text-glow,
.card-glow {
    background: none;
    text-shadow: none;
    box-shadow: none;
}

.service-card {
    transition: none;
}

.service-card:hover {
    transform: none;
}

/* Logo Scroller */
.scroller {
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

.scroller__inner img {
    height: 35px;
    max-width: 150px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.scroller__inner img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

/* Pricing Table */
.pricing-table {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.pricing-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #2e508c;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.pricing-header .header-item:nth-child(2) {
    text-align: left;
    padding-left: 1.5rem;
}

.pricing-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-row:last-child {
    border-bottom: none;
}

.service-name {
    font-weight: 500;
    color: #2e508c;
}

.service-price {
    font-weight: 500;
    color: #374151;
    padding-left: 1.5rem;
}

.service-action {
    text-align: right;
}



.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-left-color: #ffffff;
    animation: spin 1s ease infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ======================================================================== */
/* Stripe-Inspired Design System                                        */
/* ======================================================================== */

/* 1. General Body and Typography */
body,
.bg-gray-900,
.bg-gray-800 {
    background-color: #ffffff !important;
    color: #32325d !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-white,
.font-black.text-white {
    color: #32325d !important;
}

h1.font-black,
h2.font-black {
    font-weight: 800 !important;
}

p,
.text-gray-300,
.text-gray-400 {
    color: #525f7f !important;
    font-size: 17px;
    line-height: 1.7;
}

a {
    font-weight: 500;
    color: #6772e5;
    text-decoration: none;
    transition: color 0.1s ease;
}

a:hover {
    color: #32325d;
}

/* Override purple color */
.text-purple-400,
.text-purple-300 {
    color: #6772e5 !important;
}

.text-purple-400:hover,
.text-purple-300:hover {
    color: #525f7f !important;
}

/* 2. Layout & Containers */
header.bg-gray-900\/80 {
    background-color: rgba(246, 249, 252, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #e6ebf1 !important;
}

footer.bg-gray-900,
section.bg-gray-900,
section.bg-gray-800 {
    background-color: #fff !important;
    border-top: 1px solid #e6ebf1;
}

section:first-of-type {
    border-top: none;
}

.border-white\/10 {
    border-color: #e6ebf1 !important;
}

.bg-gray-800,
.bg-gray-700,
.bg-gray-800\/50 {
    background-color: #fff !important;
    border: 1px solid #e6ebf1 !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bg-gray-800:hover,
.bg-gray-700:hover,
.bg-gray-800\/50:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-out;
}

.rounded-2xl {
    border-radius: 8px !important;
}

/* 3. Buttons */
.btn {
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08);
}

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

.btn.bg-purple-600,
.btn-primary {
    background: #007AB3 !important;
    color: #fff !important;
    border: 1px solid #3da0d9 !important;
}

.btn.bg-purple-600:hover,
.btn-primary:hover {
    background: #018dce !important;
    border-color: #018dce !important;
}

.btn.bg-gray-700,
.btn.bg-white {
    background: #fff !important;
    color: #525f7f !important;
    border: 1px solid #e6ebf1 !important;
}

.btn.bg-gray-700:hover,
.btn.bg-white:hover {
    background: #f6f9fc !important;
    color: #32325d !important;
    border-color: #e6ebf1 !important;
}

/* 3.a Neutral Buttons (white/gray) - reusable */
.btn-neutral {
    background-color: #ffffff !important;
    color: #525f7f !important;
    /* neutral text */
    border: 1px solid #e6ebf1 !important;
    /* subtle border */
}

.btn-neutral:hover {
    background-color: #f6f9fc !important;
    /* light gray */
    color: #32325d !important;
    border-color: #dfe3eb !important;
}

.btn-neutral:active {
    background-color: #eef3f8 !important;
    color: #2d3748 !important;
}

.btn-neutral:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.15) !important;
    /* soft focus ring */
}

.btn-neutral[disabled],
.btn-neutral.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Outline variant (transparent white/gray) */
.btn-neutral-outline {
    background-color: transparent !important;
    color: #525f7f !important;
    border: 1px solid #d1d9e6 !important;
}

.btn-neutral-outline:hover {
    background-color: #ffffff !important;
    color: #32325d !important;
    border-color: #c9d2e1 !important;
}

.btn-neutral-outline:active {
    background-color: #f6f9fc !important;
    color: #2d3748 !important;
}

.btn-neutral-outline:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.1) !important;
}

.btn-neutral-outline[disabled],
.btn-neutral-outline.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

/* 4. Forms */
.bg-gray-900\/50 {
    background-color: #f6f9fc !important;
}

input[type="text"],
input[type="email"],
textarea {
    background-color: #fff !important;
    color: #32325d !important;
    border: 1px solid #e6ebf1 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
}

.ring-inset:focus,
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(103, 114, 229, 0.3) !important;
    border-color: #161e78 !important;
    outline: none !important;
}

/* Remove old overrides that are no longer needed */
.has-\[:checked\]\:bg-purple-600\/20:has(:checked) {
    background-color: transparent !important;
}

.has-\[:checked\]\:border-purple-500\/50:has(:checked) {
    border-color: inherit !important;
}

input[type="checkbox"].form-checkbox {
    /* Basic reset */
}

input[type="checkbox"].form-checkbox:checked {
    /* Basic reset */
}

.font-semibold.text-white,
.font-semibold.text-gray-200,
.font-bold.text-white {
    color: #32325d !important;
}

.text-gray-500 {
    color: #6b7c93 !important;
}

.text-purple-400,
.text-purple-500 {
    color: #6772e5 !important;
}

/* Homepage Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

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

/* Staggered animation for Features Section on homepage */
#features .grid>div {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

#features .grid>div:nth-child(1) {
    animation-delay: 0.1s;
}

#features .grid>div:nth-child(2) {
    animation-delay: 0.2s;
}

#features .grid>div:nth-child(3) {
    animation-delay: 0.3s;
}

/* Footer Link Fix */
.footer-link {
    color: #495057 !important;
}

.footer-link:hover {
    color: #007bff !important;
}

.footer-link.disabled {
    color: #adb5bd !important;
}

h4.font-bold.text-white {
    color: #212529 !important;
}

/* 7. Layout Centering & Focus */
/* Reduces the max-width of the main container on larger screens to create more horizontal space and a more focused layout. */
@media (min-width: 1280px) {
    .container {
        max-width: 1140px !important;
    }
}

/* 8. "How it works" Stepper Enhancement */
@media (min-width: 768px) {
    #how-it-works .grid {
        position: relative;
    }

    /* The connector line */
    #how-it-works .grid::before {
        content: "";
        position: absolute;
        top: 2rem;
        /* Vertically centered with the circles (h-16 -> 4rem height) */
        left: calc((100% / 3) / 2);
        /* Start at the center of the first column */
        width: calc(100% - (100% / 3));
        /* Span from the center of the 1st to the center of the 3rd column */
        height: 2px;
        background-color: #e9ecef;
        /* A light color from the current theme */
        z-index: 0;
    }

    /* Style the circles to be on top of the line and have a solid background */
    #how-it-works .grid>div>.w-16.h-16 {
        position: relative;
        z-index: 1;
        background-color: #ffffff !important;
        /* Hides the line passing behind it */
        border-width: 1px;
        border-color: rgba(0, 123, 255, .2) !important;
        box-shadow: 0 0 0 4px rgba(0, 123, 255, .05);
    }

    /* Add the arrows between steps */
    #how-it-works .grid>div:not(:last-child) {
        position: relative;
    }

    #how-it-works .grid>div:not(:last-child)::after {
        content: '›';
        position: absolute;
        top: 2rem;
        right: 0;
        font-size: 2.5rem;
        font-weight: 300;
        color: #adb5bd;
        transform: translate(calc(1.5rem + 50%), -53%);
        /* 1.5rem is half of grid-gap-12. Adjustments for centering. */
        z-index: 2;
    }
}

/* Hero Section Pattern */
.hero-section {
    background-color: #111827 !important;
    /* Tailwind's gray-900 */
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    background-image: repeating-linear-gradient(-30deg,
            transparent,
            transparent 25px,
            rgba(255, 255, 255, 0.02) 25px,
            rgba(255, 255, 255, 0.02) 50px);
    transform: translate(-15%, -15%);
    z-index: 1;
}

.hero-section>.container {
    position: relative;
    z-index: 2;
}

.hero-section h1,
.hero-section .text-white {
    color: #fff !important;
}

.hero-section p,
.hero-section .text-gray-300 {
    color: #d1d5db !important;
}

/* Hero Background Image */
.hero-with-bg {
    background-image: url('../img/toz.png');
    background-size: cover;
    background-position: center center;
}

/* Text shadow for readability on background image */
.hero-with-bg h1,
.hero-with-bg p {
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.7);
    /* Corresponds to gray-900 with 70% opacity */
    z-index: 1;
}

.hero-with-bg>.container {
    position: relative;
    z-index: 2;
}

button,
a[href],
.service-node,
[role="button"],
[onclick] {
    cursor: pointer;
}

/* Override purple color */
.text-purple-400,
.text-purple-300 {
    color: #6772e5 !important;
}

.text-purple-400:hover,
.text-purple-300:hover {
    color: #525f7f !important;
}

.service-image {
    transition: transform 0.3s ease-in-out;
}

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

.cursor-pointer {
    cursor: pointer;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 1.25rem;
    /* 20px */
    height: 1.25rem;
    /* 20px */
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}