:root {
    --ac-red: #e52c12;
    --ac-red-dark: #c82312;
    --ac-black: #1a1a1a;
    --ac-dark: #111111;
    --ac-gray: #f8f9fa;
    --ac-gray-dark: #e9ecef;
    --font-primary: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


header {
    position: sticky;
    top: 0;
    z-index: 50;
}


h3,
h1,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}


h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}


.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--ac-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ac-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

#mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(12px);
    z-index: 9999;
}

#mobile-menu.open {
    transform: translateX(0);
}


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

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

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


.btn-primary {
    background: var(--ac-red);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--ac-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: transparent;
    color: var(--ac-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 44, 18, 0.3);
}


.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--ac-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 2px solid var(--ac-red);
    cursor: pointer;
    user-select: none;
}

.back-to-top:hover {
    background-color: white;
    color: var(--ac-red);
    transform: translateY(-5px) scale(1.1);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.mobile-nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-nav-link.active {
    border-left-color: var(--ac-red) !important;
    color: var(--ac-red) !important;
    background: rgba(229, 44, 18, 0.05);
}

.mobile-nav-link:hover {
    border-left-color: var(--ac-red);
    color: var(--ac-red);
    background: rgba(229, 44, 18, 0.05);
}


.ac-hero-slider {
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    z-index: 2;
    /* Assure que le slider est au-dessus */
}

.ac-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-hero-slide.ac-active {
    opacity: 1;
    z-index: 1;
}

.ac-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(229, 44, 18, 0.25) 100%);
    z-index: 1;
}

.ac-slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: ac-kenburns 20s ease-in-out infinite;
    content-visibility: auto;
}

.ac-slide-1 .ac-slide-image {
    animation-name: ac-kenburns-1;
}

.ac-slide-2 .ac-slide-image {
    animation-name: ac-kenburns-2;
}

.ac-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.ac-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.ac-content-wrapper {
    max-width: 800px;
}


.ac-slide-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.ac-slide-title .ac-line {
    display: block;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ac-slide-title .ac-line span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.ac-slide-description {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 100%;
    text-wrap: pretty;
}

.ac-slide-description strong {
    color: white;
    font-weight: 600;
}

.ac-slide-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.ac-btn-primary {
    background: var(--ac-red);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--ac-red);
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
}

.ac-btn-primary:hover,
.ac-btn-primary:focus {
    background: transparent;
    color: var(--ac-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 44, 18, 0.3);
    outline: 2px solid white;
    outline-offset: 2px;
}

.ac-btn-secondary {
    background: transparent;
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
}

.ac-btn-secondary:hover,
.ac-btn-secondary:focus {
    background: white;
    color: var(--ac-dark);
    transform: translateY(-2px);
    outline: 2px solid var(--ac-red);
    outline-offset: 2px;
}


.ac-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.ac-progress-bar {
    height: 100%;
    background: var(--ac-red);
    width: 0%;
    transition: width 5s linear;
}

.ac-hero-slide.ac-active .ac-progress-bar {
    width: 100%;
}


.service-card {
    position: relative;
    height: 450px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background-color: var(--ac-dark);
}

.service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.7s ease;
}

.service-card:hover img {
    transform: scale(1.1);
    opacity: 0.4;
}

.service-card .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, var(--ac-dark), rgba(17, 17, 17, 0.2), transparent);
}


.consulting-tab-panel,
.talent-tab-panel,
.search-tab-panel {
    background-color: #f9fafb;
    border-radius: 1rem;
    border: 1px solid rgba(229, 44, 18, 0.3);
    padding: 1.5rem;
}


.table-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.table-row:hover {
    transform: translateX(4px);
}

.table-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, rgb(229, 44, 18), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-row:hover::before {
    opacity: 1;
}


#details-modal {
    animation: modalBackdropIn 0.3s ease-out;
}

#details-modal .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

#details-modal .overflow-y-auto::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 2px;
}

#details-modal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

#details-modal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


.ac-blur-menu {
    background: transparent !important;
}

.ac-blur-menu.open {
    transform: translateX(0);
}

.ac-blur-menu .backdrop-blur-xl {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.ac-blur-nav-link {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.7) !important;
}

.ac-blur-nav-link:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 2px solid var(--ac-red);
    outline-offset: 2px;
}


@keyframes ac-kenburns-1 {

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

    50% {
        transform: scale(1.05) translateX(-2%);
    }
}

@keyframes ac-kenburns-2 {

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

    50% {
        transform: scale(1.05) translateY(-2%);
    }
}

@keyframes ac-titleReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ac-textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ac-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blurMenuIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(40px);
    }
}

@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
    }

    .ac-slide-content {
        align-items: flex-start;
        padding-top: 4rem;
    }

    .ac-content-wrapper {
        padding-top: 1rem;
    }

    #details-modal {
        padding: 12px;
    }

    #modal-title {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 480px) {

    .btn-primary,
    .btn-secondary {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .ac-hero-slider {
        height: screen;
        max-height: 300px;
        min-height: 600px;
    }

    .ac-slide-content {
        padding: 0;
    }

    .ac-slide-title {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.05;
    }

    .ac-slide-title .ac-line {
        margin-bottom: 0;
    }

    .ac-slide-description {
        font-size: 1.5rem;
        line-height: 1.6;
        margin-bottom: 3rem;
        max-width: 600px;
    }

    .ac-slide-buttons {
        flex-direction: row;
        gap: 1rem;
        width: auto;
    }

    .ac-btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: auto;
    }

    .ac-btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: auto;
    }
}

@media (min-width: 640px) {
    .ac-blur-menu .backdrop-blur-xl {
        backdrop-filter: blur(60px);
        -webkit-backdrop-filter: blur(60px);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ac-slide-title {
        font-size: 3.5rem;
    }

    .ac-slide-description {
        font-size: 1.25rem;
    }
}

@media (max-width: 375px) {
    .ac-slide-title {
        font-size: 2rem;
    }

    .ac-slide-description {
        font-size: 0.9rem;
    }

    .ac-btn-primary,
    .ac-btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}


@media (prefers-reduced-motion: reduce) {

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

    .back-to-top {
        transition: opacity 0.3s ease;
    }

    .back-to-top:hover {
        transform: none;
    }

    .ac-slide-image {
        animation: none;
    }

    .ac-animate-title-reveal .ac-line span,
    .ac-animate-text-reveal,
    .ac-animate-fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}




.ac-animate-title-reveal .ac-line span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: ac-titleReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.ac-animate-title-reveal .ac-line:nth-child(1) span {
    animation-delay: 0.2s;
}

.ac-animate-title-reveal .ac-line:nth-child(2) span {
    animation-delay: 0.4s;
}


@keyframes ac-titleReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ac-hero-slide:not(.ac-active) .ac-animate-title-reveal .ac-line span {
    animation: none;
    opacity: 0;
    transform: translateY(100%);


}



#details-modal .relative {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#details-modal .scale-100 {
    transform: scale(1) !important;
}

#details-modal .scale-95 {
    transform: scale(0.98) !important;
}

/* "Pro Card Carousel" Styles */
#talent-development {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

#talent-development .section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#talent-development .section-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

#talent-development .section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.effectiveness-carousel-container {
    position: relative;
    z-index: 10;
    padding: 0 50px;
    margin-top: 3rem;
}

.pro-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pro-carousel::-webkit-scrollbar {
    display: none;
}

.pro-card {
    flex: 0 0 380px;
    min-height: 560px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-top: 4px solid var(--ac-red);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.pro-card:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-12px);
}

.pro-header {
    padding: 2rem;
    background: rgba(250, 250, 250, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.pro-header h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ac-dark);
    text-transform: uppercase;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.pro-body {
    padding: 2.5rem;
    flex-grow: 1;
}

.pro-body ul {
    list-style: none;
    padding: 0;
}

.pro-body li {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    transition: all 0.2s ease;
}

.pro-body li:hover {
    color: var(--ac-dark);
}

/* Nav Buttons Re-integrated */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 20;
    transition: all 0.3s ease;
    color: var(--ac-dark);
}

.carousel-nav-btn:hover {
    background: var(--ac-red);
    color: white;
    border-color: var(--ac-red);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: -10px;
}

.carousel-nav-next {
    right: -10px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: var(--ac-red);
    width: 35px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Talent notes refinement */
.talent-notes {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.note-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.note-dot {
    width: 6px;
    height: 6px;
    background: var(--ac-red);
    border-radius: 50%;
}

@media (max-width: 1024px) {
    .pro-card {
        flex: 0 0 340px;
        min-height: 500px;
    }
}

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

    .pro-card {
        flex: 0 0 88vw;
        min-height: 480px;
    }

    .carousel-nav-btn {
        display: none;
    }

    .talent-notes {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
    }

    /* Executive Search "Professional Slide" Styles */
    .slide-header {
        display: flex;
        align-items: center;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .exec-image-frame {
        flex-shrink: 0;
        width: 280px;
        height: 180px;
        border: 6px solid var(--ac-red);
        box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.05);
        overflow: hidden;
        position: relative;
        border-radius: 4px;
    }

    .exec-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slide-title-block {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .slide-separator {
        width: 25px;
        height: 110px;
        background: #000;
    }

    .slide-titles h2 {
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--ac-red);
        text-transform: uppercase;
        line-height: 1;
        margin-bottom: 0.5rem;
        font-family: 'Inter', sans-serif;
    }

    .slide-titles p {
        font-size: 1.8rem;
        color: #000;
        font-weight: 400;
        font-style: normal;
    }

    .slide-content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-top: 2rem;
    }

    .slide-col p {
        font-size: 1.15rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 2rem;
    }

    .slide-footer {
        margin-top: 5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        border-top: 1px solid #eee;
        padding-top: 3rem;
    }

    .certified-label {
        font-size: 1.5rem;
        color: #333;
        font-weight: 500;
    }

    .aec-logo-box {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .aec-rainbow {
        font-size: 3rem;
        font-weight: 800;
        background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -2px;
    }

    .aec-disc-text {
        font-size: 2.5rem;
        font-weight: 300;
        color: #666;
        letter-spacing: 2px;
    }

    @media (max-width: 1024px) {
        .slide-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 2rem;
        }

        .slide-titles h2 {
            font-size: 2.5rem;
        }

        .slide-titles p {
            font-size: 1.4rem;
        }

        .slide-content-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .slide-separator {
            display: none;
        }
    }

    @media (max-width: 768px) {
        .certified-label {
            font-size: 1.1rem;
        }

        .aec-rainbow {
            font-size: 2rem;
        }

        .aec-disc-text {
            font-size: 1.6rem;
        }
    }