:root {
    --nfytech-navy: #102348;
    --nfytech-navy-dark: #09172f;
    --nfytech-blue: #2457d6;
    --nfytech-blue-hover: #1743b5;
    --nfytech-blue-light: #eaf1ff;
    --nfytech-blue-soft: #f5f8ff;
    --nfytech-sky: #35a7ff;
    --nfytech-gold: #f4b942;
    --nfytech-gold-soft: #fff7df;
    --nfytech-green: #11986b;
    --nfytech-green-soft: #eaf8f2;
    --nfytech-text: #172033;
    --nfytech-muted: #637083;
    --nfytech-border: #d9e1ec;
    --nfytech-background: #ffffff;
    --nfytech-background-soft: #f6f8fc;
    --nfytech-danger: #c83b4d;
    --nfytech-radius: 12px;
    --nfytech-radius-small: 8px;
    --nfytech-shadow:
        0 14px 40px rgba(16, 35, 72, 0.08);
    --nfytech-shadow-hover:
        0 20px 55px rgba(16, 35, 72, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 96px;
}

body {
    background: var(--nfytech-background);
    color: var(--nfytech-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

::selection {
    background: #cfe0ff;
    color: var(--nfytech-navy-dark);
}

a,
button,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}

a,
button {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

h1,
h2,
h3,
h4 {
    color: var(--nfytech-navy-dark);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.65rem, 5.4vw, 4.65rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.045em !important;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.35rem) !important;
    line-height: 1.1 !important;
}

h3 {
    line-height: 1.25;
}

h1 > span > svg,
h2 > span > svg {
    display: none;
}

.nfytech-grid {
    background-image:
        linear-gradient(
            to right,
            rgba(36, 87, 214, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(36, 87, 214, 0.04) 1px,
            transparent 1px
        ) !important;
    background-size: 64px 64px !important;
}

.nfytech-dot-grid {
    background-image:
        radial-gradient(
            rgba(36, 87, 214, 0.13) 1px,
            transparent 1px
        ) !important;
    background-size: 22px 22px !important;
}

/*
|--------------------------------------------------------------------------
| Bordures et rayons plus sobres
|--------------------------------------------------------------------------
*/

.rounded-4xl {
    border-radius: 18px !important;
}

.rounded-3xl {
    border-radius: 15px !important;
}

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

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

.shadow-premium,
.shadow-card {
    box-shadow: var(--nfytech-shadow) !important;
}

.shadow-soft {
    box-shadow:
        0 8px 24px rgba(36, 87, 214, 0.12) !important;
}

.shadow-button {
    box-shadow:
        0 8px 22px rgba(36, 87, 214, 0.2) !important;
}

/*
|--------------------------------------------------------------------------
| En-têtes
|--------------------------------------------------------------------------
*/

#site-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--nfytech-border) !important;
}

#site-header.is-scrolled {
    box-shadow:
        0 8px 30px rgba(16, 35, 72, 0.08);
}

#site-header > div {
    height: 76px !important;
}

#site-header nav a {
    position: relative;
}

#site-header nav a:not(.bg-nfytech-blue)::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--nfytech-blue);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

#site-header nav a:not(.bg-nfytech-blue):hover::after {
    opacity: 1;
    transform: scaleX(1);
}

#site-header a[aria-label*="NFYTECH"] > span:first-child,
#site-header a[aria-label*="Accueil"] > span:first-child {
    position: relative;
    overflow: hidden;
    border-radius: 9px !important;
    background:
        linear-gradient(
            135deg,
            var(--nfytech-navy) 0%,
            var(--nfytech-blue) 100%
        ) !important;
}

#site-header a[aria-label*="NFYTECH"] > span:first-child::after,
#site-header a[aria-label*="Accueil"] > span:first-child::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13px;
    height: 5px;
    background: var(--nfytech-gold);
    content: "";
}

/*
|--------------------------------------------------------------------------
| Boutons
|--------------------------------------------------------------------------
*/

.bg-nfytech-blue {
    background-color: var(--nfytech-blue) !important;
}

.hover\:bg-blue-700:hover {
    background-color: var(--nfytech-blue-hover) !important;
}

.text-nfytech-blue {
    color: var(--nfytech-blue) !important;
}

.text-nfytech-night,
.text-nfytech-ink {
    color: var(--nfytech-navy-dark) !important;
}

.text-nfytech-gold {
    color: var(--nfytech-gold) !important;
}

.bg-nfytech-soft,
.bg-blue-50 {
    background-color: var(--nfytech-blue-light) !important;
}

.border-nfytech-blue {
    border-color: var(--nfytech-blue) !important;
}

a.bg-nfytech-blue,
button.bg-nfytech-blue {
    border: 1px solid var(--nfytech-blue);
    font-weight: 750;
}

a.bg-nfytech-blue:hover,
button.bg-nfytech-blue:hover {
    box-shadow:
        0 12px 26px rgba(36, 87, 214, 0.22) !important;
    transform: translateY(-2px);
}

a.border-slate-300:hover,
button.border-slate-300:hover {
    background: var(--nfytech-blue-soft);
}

/*
|--------------------------------------------------------------------------
| Suppression de l’aspect trop généré / startup
|--------------------------------------------------------------------------
*/

[class*="bg-gradient-to-"] {
    background-image: none !important;
    background-color: var(--nfytech-blue-soft) !important;
}

.nfytech-float,
.nfytech-pulse {
    animation: none !important;
}

.nfytech-pulse {
    box-shadow:
        0 0 0 4px rgba(17, 152, 107, 0.12);
}

main > section:first-child {
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 65%,
            #f3f7ff 100%
        ) !important;
}

main > section:first-child > div[class*="blur-3xl"] {
    opacity: 0.45;
}

/*
|--------------------------------------------------------------------------
| Sections principales
|--------------------------------------------------------------------------
*/

#solutions,
#offres {
    position: relative;
    background: #ffffff !important;
}

#fonctionnalites,
#avantages {
    position: relative;
    background: var(--nfytech-blue-soft) !important;
}

#methode {
    position: relative;
    background: var(--nfytech-gold-soft) !important;
}

#hebergement,
#migration {
    position: relative;
    background: #edf4ff !important;
}

#faq {
    position: relative;
    background: #fffaf0 !important;
}

#solutions::before,
#offres::before,
#fonctionnalites::before,
#avantages::before,
#methode::before,
#hebergement::before,
#migration::before,
#faq::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px, calc(100% - 48px));
    height: 4px;
    content: "";
    transform: translateX(-50%);
}

#solutions::before,
#offres::before {
    background:
        linear-gradient(
            90deg,
            var(--nfytech-blue),
            var(--nfytech-sky)
        );
}

#fonctionnalites::before,
#avantages::before,
#hebergement::before,
#migration::before {
    background:
        linear-gradient(
            90deg,
            var(--nfytech-navy),
            var(--nfytech-blue)
        );
}

#methode::before,
#faq::before {
    background:
        linear-gradient(
            90deg,
            var(--nfytech-gold),
            #ffd974
        );
}

/*
|--------------------------------------------------------------------------
| Cartes
|--------------------------------------------------------------------------
*/

article,
details,
aside,
section form {
    border-color: var(--nfytech-border) !important;
}

article {
    box-shadow:
        0 8px 26px rgba(16, 35, 72, 0.055);
}

article:hover {
    border-color: #b9cae9 !important;
    box-shadow: var(--nfytech-shadow-hover);
}

#solutions article:nth-of-type(3n + 1),
#offres article:nth-of-type(3n + 1) {
    border-top: 4px solid var(--nfytech-blue) !important;
}

#solutions article:nth-of-type(3n + 2),
#offres article:nth-of-type(3n + 2) {
    border-top: 4px solid var(--nfytech-gold) !important;
}

#solutions article:nth-of-type(3n + 3),
#offres article:nth-of-type(3n + 3) {
    border-top: 4px solid var(--nfytech-green) !important;
}

#fonctionnalites article:nth-of-type(4n + 1),
#avantages article:nth-of-type(4n + 1) {
    border-left: 4px solid var(--nfytech-blue) !important;
}

#fonctionnalites article:nth-of-type(4n + 2),
#avantages article:nth-of-type(4n + 2) {
    border-left: 4px solid var(--nfytech-gold) !important;
}

#fonctionnalites article:nth-of-type(4n + 3),
#avantages article:nth-of-type(4n + 3) {
    border-left: 4px solid var(--nfytech-green) !important;
}

#fonctionnalites article:nth-of-type(4n + 4),
#avantages article:nth-of-type(4n + 4) {
    border-left: 4px solid var(--nfytech-sky) !important;
}

details {
    border-left: 4px solid transparent !important;
    box-shadow: none !important;
}

details[open] {
    border-left-color: var(--nfytech-gold) !important;
    background: #ffffff !important;
    box-shadow:
        0 10px 28px rgba(16, 35, 72, 0.07) !important;
}

/*
|--------------------------------------------------------------------------
| Formulaires et tunnel de commande
|--------------------------------------------------------------------------
*/

input,
select,
textarea {
    min-height: 50px;
    border-color: #cbd5e1 !important;
    border-radius: 9px !important;
    background-color: #ffffff;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #9fb6df !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--nfytech-blue) !important;
    box-shadow:
        0 0 0 4px rgba(36, 87, 214, 0.11) !important;
    outline: none;
}

input[type="radio"],
input[type="checkbox"] {
    min-height: auto;
    accent-color: var(--nfytech-blue);
}

[data-checkout-form],
[data-billing-form] {
    position: relative;
}

[data-checkout-form] label:has(input[type="radio"]:checked),
[data-billing-form] label:has(input[type="radio"]:checked) {
    border-color: var(--nfytech-blue) !important;
    background: var(--nfytech-blue-light) !important;
    box-shadow:
        inset 4px 0 0 var(--nfytech-blue);
}

[data-company-fields] {
    padding: 22px;
    border: 1px solid #c8d9f6;
    border-left: 4px solid var(--nfytech-gold);
    border-radius: var(--nfytech-radius);
    background: var(--nfytech-gold-soft);
}

/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.rounded-full {
    border-radius: 999px !important;
}

.bg-emerald-50 {
    background-color: var(--nfytech-green-soft) !important;
}

.text-emerald-600,
.text-emerald-700,
.text-emerald-800 {
    color: var(--nfytech-green) !important;
}

.bg-amber-50 {
    background-color: var(--nfytech-gold-soft) !important;
}

.text-amber-700,
.text-amber-800 {
    color: #8a5d00 !important;
}

/*
|--------------------------------------------------------------------------
| Animations sobres
|--------------------------------------------------------------------------
*/

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 420ms ease,
        transform 420ms ease;
}

[data-reveal="left"],
[data-reveal="right"] {
    transform: translateY(12px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/*
|--------------------------------------------------------------------------
| Pied de page
|--------------------------------------------------------------------------
*/

footer.bg-slate-950 {
    position: relative;
    background:
        linear-gradient(
            135deg,
            var(--nfytech-navy-dark),
            var(--nfytech-navy)
        ) !important;
}

footer.bg-slate-950::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background:
        linear-gradient(
            90deg,
            var(--nfytech-blue) 0%,
            var(--nfytech-sky) 45%,
            var(--nfytech-gold) 100%
        );
    content: "";
}

footer a:hover {
    color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1023px) {
    main > section:first-child {
        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f4f8ff 100%
            ) !important;
    }

    main > section:first-child [class*="min-h-"] {
        min-height: auto !important;
    }

    main > section:first-child > div:last-child {
        padding-top: 64px !important;
        padding-bottom: 72px !important;
    }

    #site-header nav[data-mobile-menu] {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 80px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem) !important;
        line-height: 1.05 !important;
    }

    h2 {
        font-size: clamp(1.9rem, 8vw, 2.65rem) !important;
    }

    main section {
        padding-top: 72px !important;
        padding-bottom: 72px !important;
    }

    main > section:first-child {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .rounded-4xl {
        border-radius: 14px !important;
    }

    .rounded-3xl {
        border-radius: 12px !important;
    }

    article,
    details,
    aside {
        box-shadow:
            0 6px 22px rgba(16, 35, 72, 0.055) !important;
    }

    article:hover {
        transform: none !important;
    }

    [class*="px-14"],
    [class*="px-12"],
    [class*="p-12"] {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    [class*="p-10"],
    [class*="p-9"],
    [class*="p-8"] {
        padding: 24px !important;
    }

    a.bg-nfytech-blue,
    button.bg-nfytech-blue {
        min-height: 50px;
    }

    #solutions::before,
    #offres::before,
    #fonctionnalites::before,
    #avantages::before,
    #methode::before,
    #hebergement::before,
    #migration::before,
    #faq::before {
        width: calc(100% - 32px);
    }
}

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

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

    main > section:first-child .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    [data-plan-price] {
        font-size: 2.25rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/*
|--------------------------------------------------------------------------
| Titres plus légers
|--------------------------------------------------------------------------
*/

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

h2,
h2.font-black {
    font-weight: 650 !important;
    letter-spacing: -0.025em !important;
}

h3,
h3.font-black {
    font-weight: 650 !important;
    letter-spacing: -0.015em !important;
}

h4,
h4.font-black {
    font-weight: 600 !important;
}

@media (max-width: 767px) {
    h1,
    h1.font-black {
        font-weight: 700 !important;
    }

    h2,
    h2.font-black,
    h3,
    h3.font-black {
        font-weight: 600 !important;
    }
}
