:root {
    --primary: #0a0a0a; /* Deep black */
    --primary-light: #171717; /* Dark gray */
    --secondary: #5BBD9F; /* BoXpert logo teal-mint green */
    --secondary-hover: #46A98A; /* Darker shade */
    --accent: #7DCFB6; /* Lighter teal */
    
    --text-main: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-light: #ffffff;
    
    --bg-main: #000000;
    --bg-light: #0f0f0f;
    --bg-card: #141414;
    
    --border-color: #262626;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(91, 189, 159, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(91, 189, 159, 0.15);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.bg-light { background: var(--bg-light); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: #000 !important;
    box-shadow: 0 0 20px rgba(91, 189, 159, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(91, 189, 159, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid var(--secondary);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91,189,159,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-outline:hover::before {
    left: 100%;
}

.btn-outline:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 70px;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease, top 0.4s ease, width 0.4s ease, border-radius 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(91, 189, 159, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    top: 10px;
}

.navbar-hidden {
    transform: translate(-50%, -150%);
}

.nav-container {
    width: 100%;
    padding: 0 30px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0;
    transition: opacity 0.3s ease;
}
.logo:hover { opacity: 0.85; }
.logo-icon {
    height: 32px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    margin-right: 10px;
}
.logo--footer {
    margin-bottom: 12px;
}
.logo-dot {
    color: var(--secondary);
    font-size: 1.9rem;
}

.logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.logo-img--footer {
    height: 38px;
    margin-bottom: 12px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    padding: 8px 14px;
    border-radius: 50px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-nav {
    background: var(--secondary) !important;
    color: #000 !important;
    padding: 9px 22px !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem !important;
    border: none;
    box-shadow: 0 0 18px rgba(91, 189, 159, 0.35);
    transition: all 0.25s ease;
}
.btn-nav:hover {
    background: var(--secondary-hover) !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(91, 189, 159, 0.5);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 200px 0 150px;
    background: var(--bg-main);
    color: white;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91,189,159,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-bg-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91,189,159,0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
    animation: glowFloat 11s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 30px) scale(1.05); }
    66% { transform: translate(15px, -20px) scale(0.97); }
}

/* Particles canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--secondary);
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Logos Marquee --- */
.marquee-wrapper {
    padding-top: 60px;
    background: #f4f4f4;
    text-align: center;
}

.marquee-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.9;
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(91, 189, 159, 0.2);
    border-radius: 50px;
    background: rgba(91, 189, 159, 0.05);
}

.marquee-section {
    padding: 30px 0; /* Reduced padding */
    background: #f4f4f4;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* Fading effect on the left and right edges */
.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}
.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #d0d0d0, transparent);
}
.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #d0d0d0, transparent);
}

.marquee-content {
    display: flex;
    gap: 100px; /* Adjusted gap */
    animation: scroll 25s linear infinite;
    white-space: nowrap;
    align-items: center;
    padding: 0 40px;
}

.marquee-content img {
    height: 50px; 
    width: 160px; /* Force uniform width and height bounding box */
    object-fit: contain;
    filter: grayscale(0%) opacity(0.9) drop-shadow(0 0 10px rgba(91,189,159,0));
    transition: var(--transition);
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 15px rgba(91,189,159,0.4));
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-370px * 4)); /* Approximate width + gap for 4 items */ }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(91, 189, 159, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- About Split --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.stat-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-wrapper img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    border: 1px solid var(--border-color);
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
    border: 1px solid var(--secondary);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-badge i {
    color: var(--secondary);
    font-size: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(91,189,159,0.4)); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 12px rgba(91,189,159,0.8)); }
}

/* --- Services Section --- */
.services-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-pill {
    width: 100%;
    max-width: 400px;
    border-radius: 150px; /* Pill shape */
    object-fit: cover;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.img-pill:hover {
    transform: scale(1.02);
    border-color: var(--secondary);
}

.services-text-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.services-text-card p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.services-text-card p:last-child {
    margin-bottom: 0;
}

/* Subtle gradient at the bottom of the card like in the screenshot */
.services-text-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(91, 189, 159, 0.05), transparent);
    pointer-events: none;
}

/* --- Features Accordion --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(91, 189, 159, 0.1);
}

.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-icon {
    width: 50px;
    height: 50px;
    background: rgba(91, 189, 159, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    background: var(--secondary);
    color: #000;
}

.accordion-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.accordion-toggle {
    color: var(--secondary);
    transition: var(--transition);
    font-size: 1.2rem;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-body {
    padding: 0 30px 30px 100px;
    color: var(--text-muted);
}

/* --- Profiles (Qui sommes nous) --- */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(91, 189, 159, 0.1);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(135deg, rgba(91,189,159,0.1), transparent);
    z-index: 1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--bg-main);
    box-shadow: 0 0 0 2px var(--secondary);
    position: relative;
    z-index: 2;
}

.profile-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.profile-role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.profile-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.profile-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.profile-email:hover {
    background: var(--secondary);
    color: #000;
}

/* --- Articles Grid --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(91, 189, 159, 0.1);
}

.article-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(91, 189, 159, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.article-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-link:hover {
    gap: 12px;
}

/* --- CTA & Footer Section --- */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle, rgba(91,189,159,0.1) 0%, transparent 60%);
    animation: pulse 10s infinite alternate;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 1; }
}

.cta-card > * {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.linkedin-btn-container {
    margin-top: 40px;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #0077b5;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
}

.linkedin-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.5s ease;
}

.linkedin-btn:hover {
    background: transparent;
    color: #0077b5;
    border-color: #0077b5;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.linkedin-btn:hover::after {
    transform: rotate(45deg) translateY(100%);
}

.linkedin-btn i {
    font-size: 1.5rem;
}

/* --- Footer --- */
footer {
    background: #050505;
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(91, 189, 159, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo p {
    margin-top: 15px;
    font-size: 1rem;
    max-width: 350px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 35px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    letter-spacing: 0.5px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links a:hover::after {
    opacity: 1;
    box-shadow: 0 0 10px var(--secondary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* --- Animations --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1;
    transform: translate(0,0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Tilt hover effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    will-change: transform;
}

/* Stat card entrance */
.stat-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(91, 189, 159, 0.15);
}

/* Counter numbers */
.count-number {
    font-variant-numeric: tabular-nums;
}

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(91, 189, 159, 0.6);
}

/* Animated gradient border on section badges */
.badge {
    position: relative;
    overflow: hidden;
}

.badge::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(91,189,159,0.3), transparent);
    animation: badgeShimmer 3s ease infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accordion icon spin on hover */
.accordion-icon {
    transition: background 0.4s ease, transform 0.4s ease, color 0.4s ease;
}

.accordion-item:hover:not(.active) .accordion-icon {
    transform: rotate(10deg) scale(1.1);
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--secondary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--secondary);
}

/* Responsive */
@media (max-width: 900px) {
    /* Navbar full-width on mobile */
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    .navbar.scrolled { top: 0; }
    .navbar-hidden { transform: translateY(-100%); }
    .hero { padding: 130px 0 80px; }
    .split-layout, .profiles-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-image { margin-bottom: 20px; }
    .hero { padding: 150px 0 100px; }
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 60px 0; }
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 99;
        font-size: 1.5rem;
    }
    .nav-links.active { right: 0; }
    .btn-nav { display: none; }
    .brands-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .footer-content { flex-direction: column; text-align: center; gap: 30px; }
    .floating-badge { display: none; }
    .accordion-header { padding: 20px; }
    .accordion-body { padding: 0 20px 20px 20px; }
    .cta-card { padding: 40px 20px; }
    .cta-card h2 { font-size: 2rem; }
    .marquee-wrapper { padding-top: 40px; }
    .marquee-content { padding: 0 20px; gap: 80px; }
    .marquee-content img { width: 120px; height: 40px; }
}

@media (max-width: 600px) {
    .marquee-title { font-size: 1.2rem; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 30px 20px; }
    .profile-img { width: 120px; height: 120px; }
    .marquee-content { gap: 50px; }
    .marquee-content img { width: 100px; height: 35px; }
    .linkedin-btn { padding: 12px 24px; font-size: 1rem; width: 100%; justify-content: center; }
    .accordion-title-wrap { gap: 15px; }
    .accordion-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .accordion-header h3 { font-size: 1.1rem; }
    .brands-grid { grid-template-columns: 1fr; gap: 20px; }
    .brand-row { padding: 30px 20px; }
    .brand-card__name { font-size: 1.8rem; }
    .brand-card__desc { font-size: 0.95rem; }
}

/* --- Brand Cards --- */
.brands-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.brand-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(0, 255, 102, 0.15);
}

.brand-card--media {
    background: var(--secondary);
    color: #000;
    border-color: var(--secondary);
}

.brand-card--media .brand-card__name,
.brand-card--media .brand-card__desc,
.brand-card--media .brand-card__features li,
.brand-card--media .brand-card__features li i,
.brand-card--media .brand-card__included,
.brand-card--media .brand-card__included i,
.brand-card--media .brand-card__included strong {
    color: #000 !important;
}

.brand-card--media .brand-card__label {
    background: rgba(0,0,0,0.1);
    color: #000;
}

.brand-card--media .text-gradient {
    background: #000;
    -webkit-text-fill-color: #000;
}

.brand-card--media .brand-card__icon-wrap {
    background: rgba(0,0,0,0.1);
    color: #000;
    border-color: rgba(0,0,0,0.2);
}

.brand-card--media .brand-card__included {
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed rgba(0, 0, 0, 0.2);
}

.brand-card--media:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 102, 0.3);
}

.brand-card--ems:hover {
    border-color: var(--secondary);
    box-shadow: 0 20px 60px rgba(91, 189, 159, 0.15);
}

/* Glow blob */
.brand-card__glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0,255,102,0.18) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    transition: var(--transition);
}

.brand-card__glow--ems {
    background: radial-gradient(circle, rgba(91, 189, 159, 0.22) 0%, transparent 70%);
}

.brand-card:hover .brand-card__glow {
    opacity: 1.4;
    transform: scale(1.2);
}

/* Icon */
.brand-card__icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 102, 0.12);
    border: 1px solid rgba(0, 255, 102, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.brand-card__icon-wrap--ems {
    background: rgba(91, 189, 159, 0.12);
    border-color: rgba(91, 189, 159, 0.25);
    color: var(--secondary);
}

.brand-card:hover .brand-card__icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

/* Label */
.brand-card__label {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 255, 102, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    width: fit-content;
}

.brand-card__label--ems {
    background: rgba(91, 189, 159, 0.1);
    color: var(--secondary);
}

/* Name */
.brand-card__name {
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.2;
}

/* Description */
.brand-card__desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* Feature list */
.brand-card__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.brand-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--text-main);
}

.brand-card__features li i {
    color: var(--secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.brand-card--ems .brand-card__features li i {
    color: var(--secondary);
}

/* CTA button */
.brand-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary);
    color: #000;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    font-size: 0.82rem;
    transition: var(--transition);
    width: fit-content;
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.2);
}

.brand-card__btn:hover {
    background: var(--secondary-hover);
    transform: translateX(5px);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.45);
}

.brand-card__btn--ems {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 20px rgba(91, 189, 159, 0.25);
}

.brand-card__btn--ems:hover {
    background: var(--secondary-hover);
    box-shadow: 0 0 30px rgba(91, 189, 159, 0.45);
}

/* "Inclus dans EMS" tag on MediaServicing card */
.brand-card__included {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 102, 0.07);
    border: 1px dashed rgba(0, 255, 102, 0.35);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    width: fit-content;
}

.brand-card__included i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.brand-card__included strong {
    color: var(--secondary);
    font-weight: 600;
}

/* Separator line between icon area and rest */
.brand-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.brand-card--ems::after {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.brand-card:hover::after {
    opacity: 1;
}

/* -------------------------------------------------------------------------
   MODERN FOOTER
   ------------------------------------------------------------------------- */

.site-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}

.footer-top {
    padding: 72px 0 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 48px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.footer-brand-dot {
    color: var(--secondary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(91, 189, 159, 0.08);
    border: 1px solid rgba(91, 189, 159, 0.2);
    color: var(--secondary);
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--secondary);
    color: #000;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(91, 189, 159, 0.3);
}

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 24px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav-link i {
    font-size: 0.6rem;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
}

.footer-nav-link:hover {
    color: var(--text-light);
    transform: translateX(4px);
}

.footer-nav-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-contact-list li i {
    color: var(--secondary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-list li a:hover {
    color: var(--secondary);
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(91, 189, 159, 0.25);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(91, 189, 159, 0.4);
}

.footer-cta-btn i {
    transition: transform 0.3s ease;
}

.footer-cta-btn:hover i {
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    background: var(--bg-main);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

.footer-divider {
    color: var(--border-color);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col--brand {
        grid-column: 1 / -1;
    }
    .footer-tagline { max-width: 100%; }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-col--brand { grid-column: auto; }
    .footer-top { padding: 48px 0 40px; }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}


