:root {
    --light: #FFFFFF;
    --dark: #020103;
    --darken: #16121E;
    --primary: #1F80C2;
    --secondary: #26A6FE;
    --font-size: 0.938rem;
    --font-family: 'Poppins', sans-serif;
    --title-gradient: linear-gradient(91.16deg, #1F80C2 1.74%, #FFFFFF 43.71%, #FFFFFF 61.62%, #1F80C2 102.48%);
    --btn-gradient: linear-gradient(98.29deg, #504CFF 0%, #480091 100%);
    --btn-border-radius: 40px;
    --btn-border-radius-extended: 43px;
    --card-border-radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: var(--font-family);
    overflow-x: hidden;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3.5rem;
    backdrop-filter: blur(15px);
    background: rgba(2, 1, 3, 0.9);
    border-bottom: 1px solid rgba(2, 1, 3, 0.3);
}

/* ── Navbar Brand: Site logo ── */
.site-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: 50px;
}

.site-logo img {
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* ── Nav links ── */
.nav-link {
    position: relative;
    color: var(--light);
    transition: color 0.2s;
    font-size: var(--font-size);
    font-weight: 500;
    text-decoration: none;
    line-height: 100%;
}

.nav-bar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-bar .nav-link:hover::after,
.nav-bar .nav-link.active::after {
    transform: scaleX(1);
}

/* ── Header CTA ── */
.btn-get-started {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: var(--font-size);
    line-height: 100%;
    color: var(--light);
    padding: 0.875rem 1.25rem;
    cursor: pointer;

    /* Reset des styles par défaut */
    background: transparent;
    border: none;

    /* Positionnement pour le pseudo-élément */
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.4s ease;
}

.btn-get-started::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    /* Épaisseur de la bordure */
    padding: 2px;

    /* Le dégradé */
    background: linear-gradient(98.29deg, #504CFF 0%, #480091 100%);

    /* Masque pour créer l'effet de bordure vide au repos */
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    ;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;

    transition: all 0.4s ease;
    z-index: -1;
}

/* Effet Hover : Remplissage de gauche à droite */
.btn-get-started:hover {
    color: #fff;
}

.btn-get-started:hover::before {
    /* On retire le masque pour laisser apparaître tout le background */
    mask: none;
    -webkit-mask: none;
    mask-composite: auto;

    /* Animation de remplissage simulant la direction gauche -> droite */
    background-size: 200% 100%;
    background-position: left bottom;
}

.menu-toggler {
    color: var(--light);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(2, 1, 3, 0.9);
    backdrop-filter: blur(15px);
}

/* ── Hero ── */

.hero {
    min-height: 100vh;
    /* S'adapte à l'écran, évite le layout shift */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 2rem;

    /* 2. Background intelligent */
    /* On combine un dégradé sombre (overlay) et l'image */
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../assets/images/hero-bg.jpg') no-repeat center center;

    background-size: cover;
    /* Remplit l'espace sans déformation */
    background-attachment: scroll;
    /* "fixed" est souvent mauvais sur mobile */

    /* 3. Performance : Couleur de secours pendant le chargement */
    background-color: var(--title-gradient);

    color: white;
    position: relative;
    overflow: hidden;
}

/* Optionnel : Légère animation d'entrée */
.hero-content {
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 55%;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    opacity: 0.3;
    pointer-events: none;
}

.hero-orb {
    background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 0.22) 0%, rgba(0, 80, 180, 0.10) 40%, transparent 70%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-orb 4s ease-in-out infinite;
    filter: blur(2px);
}

/* ── Orb dots ── */
@keyframes rotate-orb {
    0% {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

.orb-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00D4FF;
    border-radius: 50%;
    box-shadow: 0 0 12px #00D4FF, 0 0 24px rgba(0, 212, 255, 0.5);
    top: calc(50% - 4px);
    left: calc(50% - 4px);
    animation: rotate-orb 8s linear infinite;
}

.orb-dot-2 {
    animation-delay: -4s;
    animation-duration: 12s;
    width: 5px;
    height: 5px;
    top: calc(50% - 2.5px);
    left: calc(50% - 2.5px);
    background: #60a5fa;
    box-shadow: 0 0 10px #60a5fa;
}


/* ── Text gradient ── */
.text-gradient {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2.5rem, 5rem, 6vw);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-text {
    color: var(--light);
    margin-bottom: 1.5rem;
}

/* ── Hero CTA: white + blue, fill-left on hover ── */
.btn-hero {
    position: relative;
    background: var(--light);
    color: var(--primary);
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: var(--btn-border-radius);
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size);
    border: none;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.42s ease, box-shadow 0.32s ease;
    z-index: 0;
    cursor: pointer;
    text-decoration: none;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1F80C2 0%, #00D4FF 100%);
    transform: translateX(-101%);
    transition: transform 0.48s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 9999px;
}

.btn-hero:hover::before {
    transform: translateX(0);
}

.btn-hero:hover {
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
}

#about {
    padding: 5rem 2rem;
    margin: 0 auto;
}

#about-card {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

#about-card>div:first-child {
    min-width: 20rem;
}

.section-title {
    font-weight: 400;
    font-size: clamp(1.25rem, 2.5rem, 3vw);
    line-height: 1.5;
}

.section-subtitle {
    font-weight: 400;
    font-size: var(--font-size);
    line-height: 1.75;
    color: var(--light);
    margin-bottom: 0;
}

/* ── Dark card (no border) ── 
.dark-card {
    border-radius: 1.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.dark-card:hover {
    box-shadow: 0 0 28px rgba(0, 212, 255, 0.14), 0 12px 48px rgba(0, 0, 0, 0.65);
    transform: translateY(-4px);
}
*/

/* ── Outline button ── */
.btn-section-cta {
    background: var(--light);
    color: var(--darken);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: var(--font-size);
    line-height: 100%;
    border: none;
    border-radius: var(--btn-border-radius);
    padding: 0.875rem 1.5rem;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-section-cta:hover {
    background: rgba(31 128 194, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(31 128 194, 0.25);
}

.section-cta-icon {
    padding: .125rem;
    border-radius: 100%;
    border: .5px solid var(--darken);
}

#services {
    padding: 0 2rem 5rem;
    margin: 0 auto;
}

#services-card {
    padding: 0 1.5rem 1rem;
}

.services-card-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.services-card-header>div:first-child {
    min-width: 20rem;
}

.svc-card-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.svc-card-container-row {
    display: grid;
    gap: 1.5rem;
}

.svc-card-container-row {
    grid-template-columns: 1fr;
}

.svc-card {
    width: 100%;
    height: 100%;
    min-height: 130px;
    padding: 2rem 1.5rem;
    border-radius: var(--card-border-radius);
    background-color: #151515;
    overflow: hidden;
    backdrop-filter: blur(30px);
    transition-delay: 0.05s;
    display: flex;
    align-items: stretch;
    gap: 1rem;
    background-image:
        linear-gradient(90deg, #151515 40%, rgba(21, 21, 21, 0.6) 70%, rgba(21, 21, 21, 0) 100%),
        var(--bg-image);
    background-repeat: no-repeat, no-repeat;
    background-position: center, bottom right;
    background-size: auto, 43% calc(100% - 2rem);
}

.svc-card .svc-card-details {
    max-width: 65%;
    /* Le texte peut déborder légèrement sur l'image */
    z-index: 2;
}

.svc-card .svc-card-details .svc-icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    color: var(--light);
    font: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.svc-card .svc-card-details h3 {
    color: var(--light);
    font-weight: 500;
    line-height: 100%;
    font-size: clamp(1.125rem, 1.875rem, 4vw);
}

.svc-card .svc-card-details p {
    color: var(--light);
    font-weight: 400;
    line-height: 1.7;
    font-size: var(--font-size);
}

.ellipsis-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ellipsis-4 {
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-card .svc-card-details a {
    color: var(--light);
    font-weight: 400;
    line-height: 1.7;
    font-size: var(--font-size);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.svc-card-active {
    background-color: var(--primary);
    backdrop-filter: blur(30px);
    background-image:
        linear-gradient(90deg, #1F80C2 40%, rgba(31, 128, 194, 0.4) 70%, rgba(31, 128, 194, 0) 100%),
        var(--bg-image);
}

/* ── Partner ── */
.partner-outer {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    margin: 0 auto;
}

.partner-band {
    transform: rotate(2deg);
    background: #ffffff;
    padding: 1.25rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-slide {
    display: flex;
    width: max-content;
    animation: slide 28s linear infinite;
    align-items: center;
    gap: 1rem;
}

.marquee-slide:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--font-size);
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
    width: 175px;
    height: 70px;
}

.partner-logo img {
    width: 100%;
    height: 100%;
}

#portfolio {
    padding: 0 2rem 5rem;
    margin: 0 auto;
}

#portfolio-card {
    padding: 0 1.5rem 1rem;
}

.portfolio-item-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-item-card {
    padding: 0 0 1.5rem;
    border-bottom: 1px solid var(--secondary);
}

.portfolio-item-card .card-header {
    width: 100%;
    min-height: 180px;
    padding: 1.125rem 1.5rem;
    border-radius: var(--card-border-radius);
    overflow: hidden;
    backdrop-filter: blur(30px);
    transition-delay: 0.05s;
    display: flex;
    background-color: #E6DBFFFF;
    align-items: stretch;
    gap: 1rem;
    background-image:
        linear-gradient(90deg,
            rgba(230, 219, 255, 0.5) 0%,
            rgba(247, 247, 247, 0.55) 68.95%,
            rgba(216, 215, 255, 0.6) 101.53%),
        var(--bg-portfolio-item);
    background-repeat: no-repeat, no-repeat;
    background-position: center, right bottom;
    background-origin: padding-box;
    background-size: auto, 55% calc(100% - 2rem);
}

.portfolio-item-card .card-header .card-header-content {
    width: 100%;
    /* Le texte peut déborder légèrement sur l'image */
    z-index: 2;
}

.portfolio-item-card .card-header .badge-container {
    width: 100%;
    /* Le texte peut déborder légèrement sur l'image */
    justify-content: space-between;
    gap: 1.5rem;
}

.badge {
    padding: .25rem .625rem;
    border: 1px solid var(--secondary);
    border-radius: 32px;
    background-color: transparent;
    color: #0A0C14;
    font-size: .75rem;
    font-weight: 400;
    line-height: 100%;
}

.btn-demo {
    width: 34px;
    height: 34px;
    border-radius: 40.8px;
    border: 1px solid var(--light);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    box-shadow: 0px 4px 10px 0px #0000000D;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: .875rem;
    color: #030205;
    padding: .5rem;
}

.portfolio-item-card .card-header .card-header-content .summary {
    margin-top: .5rem;
    max-width: 45%;
    /* Le texte peut déborder légèrement sur l'image */
}

.summary h3 {
    color: #0A0C14;
    font-weight: 500;
    line-height: 100%;
    font-size: clamp(1.125rem, 1.875rem, 4vw);
}

.summary p {
    color: #494C58;
    font-weight: 400;
    line-height: 1.7;
    font-size: .875rem;
}

.card-body p {
    margin-bottom: 0;
    color: var(--light);
    font-weight: 400;
    line-height: 1.7;
    font-size: var(--font-size);
}

/* ── Testimonial card ── */

#testimonials {
    padding: 0 2rem 5rem;
    margin: 0 auto;
}

#testimonials-card {
    padding: 0 1.5rem 1rem;
}

.testimonials-item-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testi-card {
    background: rgba(21, 21, 21, 0.4);
    backdrop-filter: blur(30px);
    border-radius: var(--card-border-radius);
    padding: 1.25rem 1.75rem;
    transition-delay: 0.05s;
}

.testi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.testi-card-header .icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.testi-card-header .user img {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
}

.testi-card-header .user h4 {
    margin-bottom: .25rem;
    color: var(--light);
    font-weight: 500;
    line-height: 1.7;
    font-size: var(--font-size);
}

.testi-card-header .user p {
    margin-bottom: 0;
    color: var(--light);
    font-weight: 400;
    line-height: 100%;
    font-size: .75rem;
}

.testi-card-body p {
    margin-bottom: 0;
    color: var(--light);
    font-weight: 400;
    line-height: 1.7;
    font-size: var(--font-size);
}

#contact {
    padding: 0 2rem 2rem;
    margin: 0 auto 2rem;
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary);
}

#contact-card {
    padding: 2rem 1.5rem 0;
    background: rgba(26, 26, 26, 0.4);
}

#contact-card .services-card-header {
    align-items: center;
}

/* ── Footer ── */
.footer {
    padding: 2rem 3.5rem 1.375rem;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px);
}

.footer-top {
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.company-details p {
    font-size: var(--font-size);
    font-weight: 400;
    line-height: 1.5;
}

.company-services h4 {
    font-weight: 500;
    color: var(--light);
    font-size: 1.125rem;
    line-height: 100%;
}

.footer-link {
    color: var(--light);
    font-size: var(--font-size);
    transition: color 0.2s;
    line-height: 100%;
    font-weight: 400;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 28% 44% 28%;
    gap: 1.5rem;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: .75rem;
    line-height: 100%;
    font-weight: 400;
}

.social-link {
    color: var(--light);
    font-size: 1.25rem;
    transition: transform 0.2s;
    text-decoration: none;
}

/* ── Scroll reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Mobile menu ── */
[x-cloak] {
    display: none !important;
}

/* ── Keyframes ── */
@keyframes pulse-orb {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.55;
    }
}

/* ══════════════════════════════════
SVG CONNECTOR LINES — animated
══════════════════════════════════ */
/* Sections above connectors */
nav,
section,
footer {
    position: relative;
    z-index: 10;
}

.partner-outer {
    position: relative;
    z-index: 10;
}

.connector-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* BELOW all sections */
    display: none;
}

.connector-overlay svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes dashDraw {
    0% {
        stroke-dashoffset: 3000;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes dashPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 3px currentColor);
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px currentColor);
    }
}

.anim-path {
    fill: none;
    stroke-dasharray: 14 8;
    stroke-dashoffset: 3000;
    animation: dashDraw 2.8s ease-out forwards;
}

.glow-path {
    fill: none;
    stroke-dasharray: 14 8;
    stroke-dashoffset: 3000;
    stroke-width: 8;
    opacity: 0;
    filter: blur(5px);
    animation: dashDraw 2.8s ease-out forwards;
}

/* Pulse starts after draw finishes */
.pulse-path {
    animation: dashDraw 2.8s ease-out forwards, dashPulse 2.4s ease-in-out 2.8s infinite;
}

.conn1 .anim-path,
.conn1 .glow-path {
    animation-delay: 0.5s;
}

.conn2 .anim-path,
.conn2 .glow-path {
    animation-delay: 1.0s;
}

.conn3 .anim-path,
.conn3 .glow-path {
    animation-delay: 1.5s;
}

.features-page {
    padding: 0 3rem;
    margin-top: calc(7rem + 83px);
    margin-bottom: 4rem;
}

.features-page .section-title {
    font-size: clamp(1.5rem, 2rem, 4vw);
}

.features-page .section-subtitle {
    line-height: 4;
}

.features-page .svc-card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.features-page .svc-card {
    background-image: linear-gradient(90deg, #151515 40%, rgba(21, 21, 21, 0.6) 70%, rgba(21, 21, 21, 0) 100%);
}

.features-page .svc-card .svc-card-details {
    max-width: 100%;
}

.features-page .svc-card-active {
    background-image:
        linear-gradient(90deg, #1F80C2 40%, rgba(31, 128, 194, 0.4) 70%, rgba(31, 128, 194, 0) 100%);
}

.about-content .logo-container {
    width: clamp(200px, 255px, 380px);
    margin: 2.5rem auto;
}

.about-content p {
    font-size: var(--font-size);
    color: var(--light);
    line-height: 2.5;
    text-align: justify;
    font-weight: 400;
}

.contact-container {
    justify-content: space-between;
}

.contact-image {
    width: clamp(200px, 350px, 400px);
    height: clamp(200px, 350px, 400px);
}

.contact-image img {
    width: 100%;
    height: 100%;
}
