:root {
    --primary: #8B5CF6;
    /* Elegant Purple */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --primary-dark: #7C3AED;
    --primary-light: #C4B5FD;
    --dark: #000000;
    --light: #FFFFFF;
    --gray-bg: #F9FAFB;
    --gray-dark: #111827;
    --border: rgba(0, 0, 0, 0.08);
    --border-white: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-serif: 'Playfair Display', serif;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(0, 0, 0, 0.6);
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.hidden {
    display: none !important;
}

#accueil,
.testimonials,
.comparison,
footer {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header & Nav */
header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: env(safe-area-inset-top, 0px);
}

header.scrolled {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    top: 0;
    padding-top: env(safe-area-inset-top, 0px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.0s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

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

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

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

/* Staggered Animation Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* New Fade-in Up Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Optimizations for Animations */
@media (max-width: 768px) {
    .fade-in-up {
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        /* Faster on mobile */
    }

    .hero-bg-texture {
        height: 100%;
        top: 0;
        /* Parallax Disabled handled by JS not adding transform, CSS resets just in case */
        transform: none !important;
    }
}

.top-bar {
    display: none;
}

header nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    transition: 0.5s;
}

header.scrolled nav {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo img {
    height: 38px;
}

footer .logo img {
    height: 80px;
}

.nav-links {
    display: none;
    gap: 10px;
    list-style: none;
}

@media (min-width: 1200px) {
    .nav-links {
        display: flex;
        flex: 1;
        justify-content: flex-end;
        /* Align right group to end by default */
        align-items: center;
        position: static;
        /* Reset for relative context */
    }

    .nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 30px;
        list-style: none;
    }

    .nav-right {
        display: flex;
        gap: 15px;
        align-items: center;
        list-style: none;
    }

    /* Override previous nav-push-right logic as it is now explicit */
    .nav-links li.nav-push-right {
        margin-left: 0;
    }
}

/* Fallback for medium screens to prevent overlap */
@media (min-width: 1150px) and (max-width: 1300px) {
    .nav-center {
        gap: 15px;
        /* Tighter gap on narrow desktop */
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 100px;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--primary);
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    header nav {
        height: 100px;
        position: relative;
        /* Context for absolute centering */
    }

    header.scrolled nav {
        height: 80px;
    }

    .logo img {
        height: 70px;
    }

    header.scrolled .logo img {
        height: 55px;
    }

    .nav-center {
        gap: 40px;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
}

/* ── Formation Dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    background: rgba(15, 10, 25, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
    list-style: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.08);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 12px solid rgba(139, 92, 246, 0.2);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Invisible bridge to keep hover when moving from trigger to dropdown */
.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown-item {
    list-style: none;
}

.nav-dropdown-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px !important;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-dropdown-item a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #fff !important;
    transform: translateX(4px);
}

.nav-dropdown-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.nav-dropdown-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-light);
}

.nav-dropdown-item a:hover .nav-dropdown-icon {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

.nav-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown-info strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.nav-dropdown-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
}

.nav-dropdown-divider {
    height: 1px;
    background: rgba(139, 92, 246, 0.12);
    margin: 4px 8px;
}

.nav-dropdown-all {
    list-style: none;
}

.nav-dropdown-all a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px !important;
    border-radius: 10px;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--primary-light) !important;
    opacity: 1 !important;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-dropdown-all a:hover {
    background: rgba(139, 92, 246, 0.08);
    color: #fff !important;
}

/* Hide dropdown on mobile — use regular nav instead */
@media (max-width: 1199px) {
    .nav-dropdown-menu {
        display: none !important;
    }

    .nav-dropdown-chevron {
        display: none;
    }
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icons .icon {
    color: var(--light);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Hero Cinematic */
.hero-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--dark);
    color: var(--light);
    overflow: hidden;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Parallax Texture Layer - Reused for Image */
.hero-bg-texture {
    position: absolute;
    top: -10%;
    /* Extra height for scroll movement */
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller than container */
    background-image: url('../Assets/hero-ai.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* Behind content */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: smooth;
    /* Standard property for high-quality scaling */
    will-change: transform;
}



/* Resin Animated Background */
.resin-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0514;
    /* Deep dark purple/black base */
    overflow: hidden;
    z-index: 0;
}

.resin-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.8;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #8B5CF6 0%, rgba(139, 92, 246, 0) 70%);
    top: -10%;
    left: -10%;
    animation: drift1 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #7C3AED 0%, rgba(124, 58, 237, 0) 70%);
    bottom: -10%;
    right: -10%;
    animation: drift2 25s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #4C1D95 0%, rgba(76, 29, 149, 0) 70%);
    top: 40%;
    left: 40%;
    animation: drift3 22s infinite alternate ease-in-out;
}

.resin-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

@keyframes drift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10%, 20%) scale(1.1);
    }
}

@keyframes drift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-15%, -10%) scale(1.2);
    }
}

@keyframes drift3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20%, -20%) scale(0.9);
    }
}

/* Luxury Overlay */
.hero-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            var(--dark) 100%);
    z-index: 1;
}

.hero-btns-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s both;
    animation-delay: 0.6s;
    flex-wrap: wrap;
}

.hero-content-centered {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

/* Espacement spécifique pour la page formation */
.hero-centered.formation-hero .hero-content-centered {
    padding-top: 120px;
}

.hero-tag {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: #FFF;
    display: inline-block;
    animation: fadeInDown 1s both;
    background: var(--primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    font-weight: 700;
}

.hero-centered h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: none;
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1;
    padding-bottom: 0.1em;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 50%, rgba(255, 255, 255, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s 0.3s both;
    word-wrap: break-word;
}



.hero-centered p {
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    animation: fadeInUp 1s 0.6s both;
}

.hero-btns-centered {
    animation: fadeInUp 1s 0.9s both;
}

.btn-primary {
    background: var(--primary);
    background-size: 200% 100%;
    color: #FFF;
    border-radius: 100px;
    padding: 18px 40px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--primary);
    border-radius: 100px;
    z-index: -1;
    opacity: 0;
    transform: scale(1);
    transition: all 0.5s ease;
}

.btn-primary:hover::after {
    opacity: 0.2;
    transform: scale(1.2);
}

.btn {
    padding: 18px 40px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: inherit;
}

.btn-dark,
.btn-primary {
    background: var(--primary);
    color: var(--light);
    font-weight: 700;
}

.btn-dark:hover,
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 18px 40px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-lg {
    padding: 20px 50px;
    font-size: 1.1rem;
}

.formation-cta .btn-primary {
    color: #ffffff !important;
}

.formation-cta .btn-secondary {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.full-width {
    width: 100%;
}

.brand-carousel {
    position: relative;
    bottom: auto;
    width: 100%;
    z-index: 10;
    border: none;
    padding: 30px 0 40px;
    opacity: 0.6;
    flex-shrink: 0;
}

.brand-flex {
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
}

.brand-item {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--light);
}

/* Adjusted brand carousel visibility logic */
@media (max-height: 600px) {
    .brand-carousel {
        display: none;
    }

    .hero-content-centered {
        padding-top: 80px;
    }
}

/* Tablet/Medium screen brand carousel adjustment */
@media (max-width: 1200px) {
    .brand-flex {
        gap: 30px;
    }

    .brand-item {
        font-size: 1rem;
    }
}

/* Mobile brand carousel adjustment */
@media (max-width: 768px) {
    .brand-carousel {
        padding: 20px 0 25px;
    }

    .brand-flex {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .brand-item {
        font-size: 0.8rem;
    }

    .hero-content-centered {
        padding-top: 90px;
    }
}

/* Réalisations - Modern Split Layout */
.realisations {
    padding: 150px 0;
    background: var(--light);
}

.section-intro {
    text-align: center;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-title-centered {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.2rem;
    color: #6B7280;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.realisations-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

@media (max-width: 900px) {
    .realisations-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.realisations-category {
    background: #FAFAFA;
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.realisations-category:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .realisations-category {
        padding: 25px;
    }
}

.category-header {
    margin-bottom: 35px;
    text-align: center;
}

.category-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.category-badge.industrial {
    background: linear-gradient(135deg, #1A1A1A, #000000);
    color: white;
}

.category-badge.design {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
}

.category-badge.art {
    background: linear-gradient(135deg, #D946EF, #8B5CF6);
    color: white;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
}

.category-header p {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.art-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .art-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .art-grid {
        grid-template-columns: 1fr;
    }
}

.realisation-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: white;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
    z-index: 10;
}

.realisation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.realisation-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    display: none;
}

.realisation-item:hover .item-overlay {
    display: none;
}

.item-label {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    letter-spacing: 0.5px;
}

.testimonials {
    padding: 150px 0;
    background: #050505;
    overflow: hidden;
    /* Ensure container hides overflow */
}

.testimonials-wrapper {
    width: 100%;
    position: relative;
    padding: 40px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTestimonials 30s linear infinite;
    justify-content: flex-start;
    /* Ensure it starts from left */
}

.testimonials-track:hover {
    animation-play-state: paused;
}

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

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

.testimonial-card {
    width: 480px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 35px 45px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 10px 30px var(--primary-glow);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.3;
    font-family: var(--font-serif);
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.testimonial-author strong {
    display: block;
    color: var(--light);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Expertise Section */
.expertise {
    background: #ffffff;
    padding: 150px 0;
    color: var(--dark);
    position: relative;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.expertise-item {
    text-align: center;
    background: #f8f9fa;
    padding: 45px 35px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.expertise-item:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
}

.expertise h2.section-title-centered {
    color: var(--dark) !important;
}

.expertise-icon {
    color: var(--primary) !important;
    width: 44px;
    height: 44px;
    margin-bottom: 25px;
    stroke: var(--primary);
    stroke-width: 2.5px;
    fill: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.expertise-item h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    font-family: var(--font-serif);
    color: var(--dark);
    font-weight: 700;
}

.expertise-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.expertise .section-description {
    color: #666;
}

.cta-icon [data-lucide],
.success-icon [data-lucide],
.footer-contact [data-lucide] {
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    margin-right: 8px;
    color: var(--light) !important;
    stroke: var(--light) !important;
    opacity: 0.6;
    stroke-width: 2px;
    fill: none;
}

.formation-cta .cta-icon [data-lucide] {
    color: var(--light) !important;
    stroke: var(--light) !important;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.cta-icon [data-lucide="graduation-cap"],
.cta-icon [data-lucide="home"] {
    width: 6rem;
    height: 6rem;
    margin-right: 0;
}

/* Formation Shop */
.formation-shop {
    padding: 150px 0;
    background: var(--light);
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    background: var(--light);
    padding: 100px 120px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    align-items: center;
}

.shop-image {
    width: 100%;
    max-width: 450px;
}

.shop-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.shop-badge {
    color: var(--gray-text);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.shop-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.shop-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.shop-price .current-price {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -2px;
}

.shop-badge {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 15px;
    border-radius: 100px;
    display: inline-block;
}

.promo-badge {
    background: var(--dark);
    color: var(--light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.star-rating {
    color: var(--success-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.adoption {
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.shop-features {
    list-style: none;
    margin-bottom: 40px;
}

.shop-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.payment-methods {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    opacity: 0.7;
    align-items: center;
    justify-content: center;
}

.payment-methods img {
    height: 30px;
    object-fit: contain;
}

/* Formation CTA Section */
.formation-cta {
    padding: 150px 0;
    background: linear-gradient(135deg, #1A1A1A 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.formation-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.formation-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.formation-cta h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--light);
    margin-bottom: 20px;
}

.formation-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-highlights {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-bottom: 50px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.highlight-item strong {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Urbanist', sans-serif;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.highlight-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.faq-teaser {
    margin-top: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.badge,
.shop-badge {
    color: var(--gray-text);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--dark-purple);
    border-radius: 3px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--light);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.btn-stripe {
    background: var(--primary);
    border-radius: 12px;
}

/* Stripe Specific Modal */
.stripe-card {
    padding: 0;
    overflow: hidden;
}

.stripe-header {
    background: #f6f9fc;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.stripe-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #635bff;
}

.stripe-body {
    padding: 30px;
}

.stripe-body h3 {
    margin-bottom: 5px;
}

.stripe-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.stripe-input-wrapper {
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.stripe-input-wrapper input {
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    outline: none;
}

.stripe-input-row {
    display: flex;
    border-top: 1px solid #e6ebf1;
}

.stripe-input-row input {
    width: 50%;
}

.stripe-input-row input:first-child {
    border-right: 1px solid #e6ebf1;
}

.btn-stripe {
    background: var(--primary);
    color: var(--light);
    padding: 15px;
    font-size: 1.1rem;
    width: 100%;
}

.stripe-footer {
    background: #f6f9fc;
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: #6b7c93;
}

/* Success Modal */
.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Quote Section */
.quote {
    padding: 150px 0;
    background: var(--dark);
    color: var(--light);
}

.quote-header {
    text-align: center;
    margin-bottom: 60px;
}

.quote-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.quote-header p {
    color: #FFFFFF;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-white);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 50px;
}

.quote-estimation {
    background: var(--primary);
    color: var(--light);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h4 {
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.col {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.quote-summary {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-white);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
}

.quote-summary ul {
    list-style: none;
    margin-top: 10px;
}

/* Course Area */
.course-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    color: var(--white);
    z-index: 3000;
    overflow-y: auto;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 80px);
}

.course-sidebar {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.course-sidebar ul {
    list-style: none;
}

.course-sidebar li {
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
}

.course-sidebar li.active,
.course-sidebar li:hover {
    background: var(--primary);
}

.course-main {
    padding: 40px;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    position: relative;
    z-index: 10;
    background: #000;
    color: var(--light);
    border-top: 1px solid var(--border-white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-info p {
    margin-top: 30px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-contact h4,
.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-contact p,
.footer-links a {
    margin-bottom: 12px;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-contact a,
.footer-contact p a[href^="tel"] {
    color: var(--light) !important;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--light);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Slightly increased for better breathing space between logo and socials */
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-logo-box {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* More compact social links */
    transform: translateY(-2px);
    /* Adjusted for perfect vertical centering with the logo */
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--light);
    opacity: 0.8;
    transition: 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
}

.social-link:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

.social-link [data-lucide] {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border-white);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-centered h1 {
        font-size: 3rem;
    }

    .comparison-wrapper,
    .shop-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    /* Responsive realizations split */
    .realisations-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Old mobile block 1 removed */

/* ============================================
   ADDITIONAL MOBILE RESPONSIVE STYLES
   ============================================ */

/* Old mobile block 2 removed */

/* Small Mobile Enhancements */
@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
    }

    .hero-centered h1 {
        font-size: 2.2rem !important;
    }

    .hero-tag {
        font-size: 0.7rem !important;
    }

    .section-title-centered {
        font-size: 1.8rem !important;
    }

    .realisation-card {
        height: 280px !important;
    }

    .carousel-controls span {
        width: 45px !important;
        height: 45px !important;
    }

    .testimonial-card {
        width: 300px !important;
        padding: 20px 25px !important;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 60px 60px !important;
        padding: 15px 10px !important;
        font-size: 0.85rem !important;
    }

    .shop-grid {
        padding: 30px 20px !important;
    }

    .shop-content h2 {
        font-size: 1.8rem !important;
    }

    .quote-container {
        padding: 25px 15px !important;
    }
}

/* Navigation CTA Button */
.nav-links a.nav-cta-btn {
    background: var(--primary);
    color: var(--light) !important;
    padding: 10px 24px;
    border-radius: 100px;
    opacity: 1 !important;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links a.nav-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* Navigation Secondary Button (Transparent) */
.nav-links a.nav-secondary-btn {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--light) !important;
    padding: 10px 24px;
    border-radius: 100px;
    opacity: 1 !important;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-links a.nav-secondary-btn:hover {
    background: var(--primary);
    color: var(--light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Price Estimation Box */
.price-estimation-box {
    background: rgba(139, 92, 246, 0.05);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin: 30px 0;
    text-align: center;
}

.price-estimation-box label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

.price-display {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 40px;
    }

    .comparison-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr 80px 80px;
        padding: 15px 10px;
    }

    .table-logo,
    .table-other {
        font-size: 0.8rem;
    }

    .row-label {
        font-size: 0.9rem;
    }
}

/* ========================================
   PRICING SECTION & CARDS STYLING
   ======================================== */

.pricing-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #000 0%, #1A1A1A 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 24px;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.4);
}

.pricing-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto 25px auto;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.pricing-badge.popular {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.pricing-badge.premium {
    background: linear-gradient(135deg, #1A1A1A, #000);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--light);
    margin-bottom: 10px;
}

.pricing-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 30px;
}

.pricing-amount {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-amount .price {
    font-family: 'Urbanist', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    text-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    letter-spacing: -1px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-left: 5px;
    line-height: 1.6;
}

.pricing-card .btn {
    margin-bottom: 25px;
}

.pricing-card .payment-methods {
    opacity: 0.5;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

/* Benefits Section */
.benefits-section {
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

.benefit-icon {
    margin-bottom: 25px;
    filter: grayscale(0.3);
    display: flex;
    justify-content: center;
}

.benefit-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 2.5;
    color: var(--primary);
}

.benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.benefit-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.benefit-card ul li {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.benefit-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.benefits-cta {
    text-align: center;
}

/* Responsive Pricing */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 80px 0;
    }

    .pricing-card {
        padding: 40px 30px;
    }

    .pricing-amount .price {
        font-size: 2.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .benefits-section {
        padding: 80px 0;
    }
}

/* Enhanced gold text elements */
.highlight-item strong,
.table-logo,
.category-badge.design,
.shop-price .current-price {
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   FORMATION DETAIL PAGES (fd-*)
   Shared template for formation-digitale, présentielle, chantier
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.fd-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: clip;
    overflow-y: visible;
    background: #000;
    padding-top: 110px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.fd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.fd-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.fd-hero-orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -20%;
    left: -10%;
    animation: drift1 20s infinite alternate ease-in-out;
}

.fd-hero-orb-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation: drift2 25s infinite alternate-reverse ease-in-out;
}

.fd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.fd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-bottom: 30px;
    animation: fadeInDown 1s both;
}

.fd-badge-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Scroll Reveal Animation System ── */
.fd-stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.fd-stagger-item.fd-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Module cards get a scale effect too */
.fd-module-card.fd-stagger-item {
    transform: translateY(30px) scale(0.96);
}

.fd-module-card.fd-stagger-item.fd-visible {
    transform: translateY(0) scale(1);
}

/* Highlight cards slide in from the right */
.fd-highlight.fd-stagger-item {
    transform: translateX(30px);
    opacity: 0;
}

.fd-highlight.fd-stagger-item.fd-visible {
    transform: translateX(0);
    opacity: 1;
}

/* Other formation cards get a lift effect */
.fd-other-card.fd-stagger-item {
    transform: translateY(40px) scale(0.95);
}

.fd-other-card.fd-stagger-item.fd-visible {
    transform: translateY(0) scale(1);
}

/* FAQ items cascade from below */
.faq-item.fd-stagger-item {
    transform: translateY(20px);
}

.faq-item.fd-stagger-item.fd-visible {
    transform: translateY(0);
}

/* Objective feature items */
.fd-obj-feature.fd-stagger-item {
    transform: translateX(-20px);
}

.fd-obj-feature.fd-stagger-item.fd-visible {
    transform: translateX(0);
}

.fd-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.1;
    padding-bottom: 0.05em;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 50%, rgba(255, 255, 255, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s 0.3s both;
}

.fd-hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s 0.5s both;
}

.fd-hero-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.7s both;
}

.fd-price-amount {
    font-family: 'Urbanist', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    letter-spacing: -2px;
}

.fd-price-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.fd-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1s 0.9s both;
}

.fd-back-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.fd-back-link:hover {
    color: var(--primary-light);
}

/* Stats Strip */
.fd-stats {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(76, 29, 149, 0.12));
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    padding: 60px 0;
}

.fd-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.fd-stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fd-stat-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    color: var(--primary-light);
}

.fd-stat-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.fd-stat-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fd-stat-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--light);
}

.fd-stat-text span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Overview */
.fd-overview {
    padding: 120px 0;
    background: var(--gray-bg);
}

.fd-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.fd-section-label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    margin-bottom: 20px;
}

.fd-section-label-light {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
}

.fd-overview-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.fd-overview-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fd-overview-text p strong {
    color: var(--dark);
}

.fd-overview-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fd-highlight {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fd-highlight:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.12);
}

.fd-highlight-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    color: var(--primary);
}

.fd-highlight-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.fd-highlight strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.fd-highlight span {
    font-size: 0.85rem;
    color: #777;
}

/* Programme */
.fd-programme {
    padding: 120px 0;
    background: linear-gradient(180deg, #000 0%, #0D0D0D 100%);
}

.fd-programme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 60px;
}

.fd-module-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.fd-module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.2);
}

.fd-module-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: 'Urbanist', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(139, 92, 246, 0.08);
    line-height: 1;
}

.fd-module-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.fd-module-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.fd-module-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 10px;
}

.fd-module-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* Objectif */
.fd-objectif {
    padding: 120px 0;
    background: var(--gray-bg);
}

.fd-objectif-content {
    max-width: 750px;
    margin: 0 auto;
}

.fd-objectif-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.fd-objectif-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.fd-objectif-content p strong {
    color: var(--dark);
}

.fd-objectif-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.fd-obj-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.fd-obj-feature svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    stroke-width: 2.5;
    flex-shrink: 0;
}

.fd-obj-feature span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
}

/* CTA */
.fd-cta {
    padding: 80px 0;
    background: #000;
}

.fd-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(76, 29, 149, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 60px;
}

.fd-cta-left h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 15px;
    line-height: 1.2;
}

.fd-cta-left p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.fd-cta-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fd-cta-price {
    text-align: center;
}

.fd-cta-amount {
    font-family: 'Urbanist', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    text-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
    letter-spacing: -1px;
}

.fd-cta-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.fd-cta-includes {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fd-cta-includes li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
}

/* Other Formations */
.fd-other {
    padding: 100px 0;
    background: linear-gradient(180deg, #0D0D0D 0%, #000 100%);
}

.fd-other-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.fd-other-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fd-other-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.2);
}

.fd-other-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    margin-bottom: 20px;
}

.fd-other-badge-pro {
    background: linear-gradient(135deg, #1A1A1A, #000);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.fd-other-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 8px;
}

.fd-other-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.fd-other-price {
    font-family: 'Urbanist', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.fd-other-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.fd-other-card:hover .fd-other-link {
    color: var(--primary-light);
}

/* ── Formation Detail Responsive ── */
@media (max-width: 1200px) {
    .fd-overview-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .fd-programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fd-cta-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .fd-hero {
        min-height: 90vh;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .fd-hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .fd-hero-tagline {
        font-size: 1rem;
    }

    .fd-price-amount {
        font-size: 3.5rem;
    }

    .fd-stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .fd-overview {
        padding: 80px 0;
    }

    .fd-overview-text h2 {
        font-size: 2rem;
    }

    .fd-programme {
        padding: 80px 0;
    }

    .fd-programme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fd-objectif {
        padding: 80px 0;
    }

    .fd-objectif-content h2 {
        font-size: 2rem;
    }

    .fd-objectif-features {
        grid-template-columns: 1fr;
    }

    .fd-cta {
        padding: 60px 0;
    }

    .fd-cta-card {
        padding: 35px 25px;
    }

    .fd-cta-left h2 {
        font-size: 1.8rem;
    }

    .fd-cta-amount {
        font-size: 2.5rem;
    }

    .fd-cta-includes {
        grid-template-columns: 1fr;
    }

    .fd-other {
        padding: 60px 0;
    }

    .fd-other-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background: var(--gray-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
}

.faq-question {
    padding: 25px 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    font-family: var(--font-main);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Arbitrary large height to handle content */
    opacity: 1;
}

.faq-answer p {
    padding: 0 30px 30px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Gallery View More */
.hidden-gallery-item {
    display: none;
}

.btn-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.btn-more {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-more.full-width {
    width: 100%;
}

.btn-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Art Carousel */
.art-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.art-carousel-container {
    overflow: hidden;
    width: 100%;
}

.art-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    will-change: transform;
    /* Hint for browser optimizations */
}

/* Ensure images don't shrink */
.art-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
}

@media (max-width: 900px) {
    .art-carousel-wrapper {
        padding: 0 20px;
    }

    .art-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .art-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.carousel-btn {
    background: white;
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--dark);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

/* ============================================

/* ============================================
       RESPONSIVE ADAPTATIONS (<= 1150px)
       ============================================ */
@media (max-width: 1150px) {

    /* FORCE VISIBILITY for Mobile (Fixes "disappearing elements") */
    .reveal,
    .fade-in-up,
    .hero-content-centered,
    .section-intro,
    .realisation-item {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    main {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* NAVIGATION */
    .nav-links {
        display: none;
    }

    header nav {
        height: 80px;
        padding-top: calc(max(15px, env(safe-area-inset-top)));
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
        margin-top: 0;
    }

    .mobile-menu-btn span {
        background: var(--light);
    }

    .mobile-menu-btn.active span {
        background: var(--primary);
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

}

@media (max-width: 1150px) {
    /* =================================
       GLOBAL COMPACT STYLES
       ================================= */

    /* Global Typography Restored (User found it too small) */
    html,
    body {
        font-size: 16px !important;
        /* Balanced base size */
    }

    p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    /* Force Visibility Safeguards - Fixed Visibility on Dark Backgrounds */
    .reveal,
    .fade-in-up,
    .hero-content-centered,
    .section-intro,
    .realisation-item,
    h2,
    .section-title {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        /* Removed color: var(--dark) !important which made text invisible on dark sections */
    }

    main {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Compact Spacing */
    section {
        padding: 40px 15px !important;
        /* Tighter padding */
    }

    h2.section-title,
    .section-title-centered {
        font-size: 2.5rem !important;
        /* Balanced impactful titles on mobile */
        margin-bottom: 25px;
        line-height: 1.1;
    }

    .section-description {
        font-size: 0.9rem !important;
        margin-bottom: 30px;
    }

    /* =================================
       NAVIGATION - FIXED
       ================================= */
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 20px;
        gap: 0;
        /* Use gap on ul instead */
        z-index: 1000;
        animation: fadeIn 0.3s ease forwards;
        overflow-y: auto;
    }

    .nav-links.active ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
        margin-bottom: 30px;
    }

    .nav-links.active ul:last-child {
        margin-bottom: 0;
    }

    .nav-links.active li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-links.active a {
        font-size: 1.25rem;
        width: 100%;
        max-width: 280px;
        /* Constrain width for a better vertical button look */
        text-align: center;
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Correct targeting for buttons in mobile menu */
    .nav-links.active a.nav-secondary-btn,
    .nav-links.active a.nav-cta-btn {
        border: 2px solid var(--primary) !important;
        border-bottom: 2px solid var(--primary) !important;
        margin-top: 15px !important;
        padding: 15px 30px !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .nav-links.active a.nav-cta-btn {
        background: var(--primary) !important;
    }

    .mobile-menu-btn {
        margin-top: 5px;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    header nav {
        height: 60px;
        padding-top: calc(max(10px, env(safe-area-inset-top)));
    }

    /* =================================
       HERO SECTION (Compact)
       ================================= */
    .hero-centered {
        min-height: 70vh !important;
        padding: 80px 15px 40px !important;
    }

    .hero-content-centered h1 {
        font-size: clamp(2.5rem, 12vw, 3.8rem) !important;
        line-height: 1.1;
    }

    .hero-content-centered p {
        font-size: 0.9rem !important;
        margin: 15px 0 25px;
    }

    .hero-tag {
        font-size: 0.7rem !important;
        padding: 5px 12px;
    }

    .hero-btns-centered {
        max-width: 280px;
        margin: 0 auto 25px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* =================================
       RÉALISATIONS - 2 COLUMN GRID (Fixed & Robust)
       ================================= */
    .category-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-bottom: 0;
        overflow: visible;
    }

    .realisation-item {
        width: 100% !important;
        /* Grid handles width */
        min-width: 0 !important;
        margin-right: 0;
        border-radius: 8px;
        aspect-ratio: 1/1;
        margin-bottom: 0;
        /* Grid gap handles space */
    }

    .realisation-info {
        padding: 8px !important;
        /* Tighter info */
    }

    .realisation-info h3 {
        font-size: 0.9rem !important;
    }

    .realisation-info p {
        font-size: 0.75rem !important;
    }

    /* =================================
       EXPERTISE - 2 COLUMN GRID
       ================================= */
    .expertise-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .expertise-item {
        padding: 15px 10px;
    }

    .expertise-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 10px;
    }

    .expertise-item h3 {
        font-size: 0.95rem !important;
    }

    .expertise-item p {
        font-size: 0.8rem !important;
    }

    /* =================================
       OTHER SECTIONS (Compact)
       ================================= */

    /* Benefits - 2 Col */
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .benefit-card {
        padding: 15px;
    }

    .benefit-card h3 {
        font-size: 0.9rem !important;
    }

    .benefit-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Testimonials - Fixed width for horizontal scroll, ensure visibility */
    .testimonial-card {
        width: 300px !important;
        flex-shrink: 0 !important;
        padding: 25px !important;
        margin-bottom: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }

    .testimonial-card p {
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .testimonial-author strong {
        color: var(--light) !important;
    }

    .testimonial-author span {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    /* Pricing - Keep horizontal but compact */
    .pricing-grid {
        gap: 15px;
        margin: 0 -15px;
        padding: 0 15px 20px;
    }

    .pricing-card {
        min-width: 80vw;
        /* Keep visible peek */
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem !important;
        padding: 15px 20px 15px 15px !important;
    }

    .faq-answer p {
        padding: 0 15px 20px 15px !important;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
    }

    .btn-lg {
        padding: 14px 28px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact p {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        word-break: break-word;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-socials {
        align-items: center;
    }

    /* FIX: Formation Section Contrast (White text on dark bg) */
    .formation-cta h2,
    .formation-cta p,
    .formation-cta span,
    .formation-cta strong {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    /* Form rows stacking */
    .row {
        flex-direction: column !important;
        gap: 15px !important;
    }
}