/* Font Family */
body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

/* Définition des couleurs personnalisées */
:root {
    --color-primary: #FF3F7F;
    --color-accent: #FFC400;
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.border-primary {
    border-color: var(--color-primary);
}

.border-accent {
    border-color: var(--color-accent);
}

/* ========= CORRECTIONS RESPONSIVE MOBILE ========= */
/* Empêcher le dépassement horizontal */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

/* Conteneurs principaux */
.container-responsive {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Correction pour la navbar mobile */
@media (max-width: 640px) {
    .mobile-menu-fix {
        width: 100vw;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 40;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    /* Assurer que tout le contenu tient dans l'écran */
    .mobile-full-width {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}

/* Correction pour les sections hero et main */
.section-responsive {
    width: 100%;
    overflow-x: hidden;
}

/* Ajustement des grilles pour mobile */
@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr !important;
    }

    .flex-responsive {
        flex-direction: column;
    }

    .space-responsive>* {
        margin-bottom: 1rem;
    }

    .space-responsive> :last-child {
        margin-bottom: 0;
    }

    /* Ajustement des paddings */
    .p-responsive {
        padding: 1rem !important;
    }

    .px-responsive {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Ajustement de la sidebar sur mobile */
    .sidebar-mobile {
        width: 100% !important;
        margin-top: 2rem;
    }
}

/* Correction pour les offres urgentes sur mobile */
@media (max-width: 768px) {
    .urgent-sidebar-mobile {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Correction pour les cartes d'offres sur mobile */
@media (max-width: 640px) {
    .offre-card-mobile {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .offre-card-mobile:first-child {
        margin-top: 0;
    }

    .offre-card-mobile:last-child {
        margin-bottom: 0;
    }
}

/* Correction pour le bouton hamburger */
.hamburger-button {
    min-width: 44px;
    min-height: 44px;
}

/* Style pour la navbar transparente */
.navbar-transparent {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease-in-out;
}

/* Style pour la navbar lors du scroll */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Transition pour les éléments de la navbar */
.navbar-transition {
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Formes géométriques plus visibles sur fond clair */
.shape-bright {
    opacity: 0.4;
}

/* Style pour les badges de contrat */
.badge-cdi {
    background-color: #10b981;
    color: white;
}

.badge-cdd {
    background-color: #3b82f6;
    color: white;
}

.badge-stage {
    background-color: #8b5cf6;
    color: white;
}

.badge-alternance {
    background-color: #f59e0b;
    color: white;
}

.badge-freelance {
    background-color: #ef4444;
    color: white;
}

/* Style pour le badge urgent */
.badge-urgent {
    background-color: #ef4444;
    color: white;
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Pour les offres urgentes, ajoutez une bordure rouge subtile */
.urgent-offer {
    border-left: 4px solid #ef4444;
}

/* Option 1: Dégradé rose-jaune très subtil */
.hero-gradient-1 {
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 50%, #fefce8 100%);
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Délais d'animation */
.animation-delay-100 {
    animation-delay: 100ms;
    animation-fill-mode: both;
}

.animation-delay-200 {
    animation-delay: 200ms;
    animation-fill-mode: both;
}

.animation-delay-300 {
    animation-delay: 300ms;
    animation-fill-mode: both;
}

.animation-delay-400 {
    animation-delay: 400ms;
    animation-fill-mode: both;
}

.animation-delay-500 {
    animation-delay: 500ms;
    animation-fill-mode: both;
}

/* Style pour le conteneur cliquable avec animation de reflet */
.clickable-container {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.clickable-container:hover {
    transform: translateY(-2px);
}

.clickable-container:hover .clickable-title {
    color: var(--color-primary);
}

.clickable-title {
    transition: color 0.2s ease-in-out;
}

/* Animation de reflet (shimmer effect) */
.clickable-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: 1;
}

.clickable-container:hover::before {
    left: 200%;
}

/* Assurer que le contenu reste au-dessus du reflet */
.clickable-container>* {
    position: relative;
    z-index: 2;
}

/* Style pour le logo en contain */
.logo-contain {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* Style pour les espaces publicitaires */
.pub-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.pub-container:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pub-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    object-fit: cover;
    max-height: 150px;
}

.pub-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pub-description {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.pub-link {
    display: inline-block;
    background: linear-gradient(135deg, #FF3F7F, #FFC400);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pub-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 63, 127, 0.3);
}

.pub-placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Styles pour les filtres actifs */
.filter-active {
    background-color: #FF3F7F !important;
    color: white !important;
    border-color: #FF3F7F !important;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #FF3F7F;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
           STYLE POUR L'IMAGE FREELANCE (avec pointes arrondies via SVG)
           ========================================================================== */

.freelance-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1.2;
    margin: 0 auto;
    clip-path: url(#roundedStarClip);
}

.freelance-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 45% 40%,
            rgba(255, 196, 0, 0.5) 0%,
            rgba(255, 63, 127, 0.6) 35%,
            rgba(139, 92, 246, 0.7) 60%,
            rgba(30, 27, 75, 0.8) 100%);
    z-index: 1;
}

.freelance-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    filter: contrast(1.1) saturate(1.2);
    z-index: 2;
}

.freelance-light-overlay {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 196, 0, 0.2) 40%,
            transparent 70%);
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.freelance-image-container {
    animation: imageFloat 8s ease-in-out infinite;
    transform-origin: center center;
}

@media (min-width: 1024px) {
    .freelance-image-container {
        max-width: 450px;
        aspect-ratio: 1 / 1.1;
    }
}

/* Styles d'animation supplémentaires */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

.animation-delay-200 {
    animation-delay: 200ms;
    animation-fill-mode: both;
}

.animation-delay-400 {
    animation-delay: 400ms;
    animation-fill-mode: both;
}

.animation-delay-600 {
    animation-delay: 600ms;
    animation-fill-mode: both;
}

.animation-delay-800 {
    animation-delay: 800ms;
    animation-fill-mode: both;
}

.animation-delay-1000 {
    animation-delay: 1000ms;
    animation-fill-mode: both;
}

.animation-delay-2000 {
    animation-delay: 2000ms;
    animation-fill-mode: both;
}

/* Style pour les cartes d'entreprise */
.entreprise-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 140px;
}


.entreprise-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f9fafb;
    padding: 8px;
}

/* Style pour l'icône "populaire" */
.popular-star {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #FFC400;
    z-index: 10;
}

/* ==========================================================================
           MODIFICATION: STYLE COMPACT POUR LA SIDEBAR DES OFFRES URGENTES
           ========================================================================== */
.urgent-sidebar {
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: #FEF2F2;
    /* red-50 */
    border: 1px solid #FEE2E2;
    /* red-100 */
    position: relative;
    overflow: hidden;
}

/* Suppression de l'animation de bordure excessive */
.urgent-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #EF4444;
    opacity: 0.5;
}

.urgent-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    /* Réduit de 1.25rem */
    padding-bottom: 0.5rem;
    /* Réduit de 0.75rem */
    border-bottom: 1px solid #fecaca;
}

.urgent-sidebar-title {
    display: flex;
    align-items: center;
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
    /* Réduit de 1.1rem */
}

.urgent-sidebar-title svg {
    margin-right: 0.5rem;
    animation: pulse-urgent 2s infinite;
}

.urgent-sidebar-count {
    background: #ef4444;
    color: white;
    padding: 0.15rem 0.6rem;
    /* Réduit */
    border-radius: 20px;
    font-size: 0.75rem;
    /* Réduit de 0.875rem */
    font-weight: 600;
}

.urgent-sidebar-item {
    display: block;
    background: white;
    border-radius: 10px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.urgent-sidebar-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.05), transparent);
    transition: left 0.4s ease;
    /* Accéléré */
}

.urgent-sidebar-item:hover::after {
    left: 100%;
}

.urgent-sidebar-item:hover {
    transform: translateX(-2px) scale(1.01);
    /* Réduit */
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.1);
    /* Réduit */
    border-left-width: 4px;
    /* Réduit de 6px */
}

.urgent-sidebar-item:last-child {
    margin-bottom: 0;
}

.urgent-sidebar-offre-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
    /* Réduit de 0.95rem */
    margin-bottom: 0.25rem;
    /* Réduit de 0.375rem */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.urgent-sidebar-company {
    color: #dc2626;
    font-size: 0.75rem;
    /* Réduit de 0.825rem */
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.urgent-sidebar-company::before {
    content: '🏢';
    margin-right: 0.25rem;
    /* Réduit */
}

.urgent-sidebar-badges {
    display: flex;
    gap: 0.5rem;
    /* MODIFICATION : Ajusté pour l'icône */
    align-items: center;
}

/* ==========================================================================
           MODIFICATION: STYLE POUR L'ICÔNE D'URGENCE
           ========================================================================== */
.urgent-sidebar-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 50%;
    animation: pulse-urgent 2s infinite;
    box-shadow: 0 1px 2px rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.urgent-sidebar-badge-icon svg {
    width: 14px;
    height: 14px;
}

.urgent-sidebar-contract {
    padding: 0.1rem 0.4rem;
    /* Réduit */
    border-radius: 6px;
    /* Réduit de 8px */
    font-size: 0.65rem;
    /* Réduit de 0.7rem */
    font-weight: 500;
}

/* Responsive design pour la sidebar */
@media (max-width: 1024px) {
    .urgent-sidebar {
        margin-bottom: 1rem;
        padding: 0.875rem;
        /* Réduit */
    }

    .urgent-sidebar-item {
        padding: 0.625rem;
        /* Réduit */
        margin-bottom: 0.5rem;
        /* Réduit */
    }
}

/* ========= NOUVELLES CORRECTIONS RESPONSIVE ========= */
@media (max-width: 768px) {

    /* Correction pour le hero section */
    .hero-responsive {
        padding-top: 4rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-title-responsive {
        font-size: 2rem !important;
        line-height: 2.5rem !important;
    }

    .hero-subtitle-responsive {
        font-size: 1.125rem !important;
    }

    /* Correction pour les offres */
    .offres-container-responsive {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Correction pour la sidebar */
    .sidebar-wrapper-responsive {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Correction pour les filtres */
    .filters-responsive {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 0.5rem;
    }

    .filter-button-responsive {
        white-space: nowrap;
    }

    /* Correction pour la section freelance */
    .freelance-section-responsive {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .freelance-image-responsive {
        max-width: 100% !important;
        height: 300px !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 640px) {

    /* Correction pour les portfolios */
    .portfolio-grid-cols-responsive {
        grid-template-columns: 1fr !important;
    }

    /* Correction pour le menu mobile */
    .mobile-menu-padding-responsive {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* ==========================================================================
           NOUVEAUX STYLES POUR LE CARROUSEL INFINI DES ENTREPRISES
           ========================================================================== */

/* Conteneur principal du carrousel */
#entreprisesCarousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Styles pour les cartes d'entreprise dans le carrousel */
.entreprise-card {
    flex: 0 0 auto;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Required for shimmer */
    position: relative;
    /* Required for shimmer */
}

.entreprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    /* No transition on reset */
    pointer-events: none;
    z-index: 5;
}


.entreprise-card a {
    transition: all 0.3s ease;
    height: 100%;
    display: block;
    /* Ensure anchor fills card */
}

/* Styles pour les indicateurs du carrousel */
#carouselIndicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#carouselIndicators button {
    transition: all 0.3s ease;
}

#carouselIndicators button:hover {
    transform: scale(1.2);
}

/* Animation de pulsation pour l'étoile populaire */
@keyframes pulse-star {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.popular-star {
    animation: pulse-star 2s ease-in-out infinite;
}

/* Responsive adjustments pour le carrousel */
@media (max-width: 640px) {
    .entreprise-card {
        width: 160px !important;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .entreprise-card {
        width: 176px !important;
    }
}

@media (min-width: 1024px) {
    .entreprise-card {
        width: 192px !important;
    }
}

/* Amélioration du focus pour l'accessibilité */
.entreprise-card:focus {
    outline: 2px solid #FF3F7F;
    outline-offset: 2px;
}

/* Styles supprimés pour le bouton d'animation */

/* ==========================================================================
           NOUVEAUX STYLES POUR LA SECTION TOP FREELANCERS
           ========================================================================== */

.freelancer-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.freelancer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF3F7F, #FFC400);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.freelancer-card:hover::before {
    transform: scaleX(1);
}

.freelancer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.freelancer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.freelancer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.freelancer-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
}

.freelancer-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.star {
    color: #fbbf24;
    font-size: 1rem;
}

.star.empty {
    color: #e5e7eb;
}

.rating-text {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.freelancer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.skill-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.freelancer-rate {
    font-size: 1.125rem;
    font-weight: 600;
    color: #059669;
    margin-bottom: 1rem;
}

.btn-view-profile {
    background: linear-gradient(135deg, #FF3F7F, #FFC400);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 63, 127, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive pour les cartes de freelancers */
@media (max-width: 640px) {
    .freelancer-card {
        padding: 1rem;
    }

    .freelancer-avatar {
        width: 60px;
        height: 60px;
    }

    .freelancer-name {
        font-size: 1rem;
    }

    .freelancer-title {
        font-size: 0.8rem;
    }
}

/* Animation pour l'apparition des cartes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.freelancer-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.freelancer-card:nth-child(1) {
    animation-delay: 0.1s;
}

.freelancer-card:nth-child(2) {
    animation-delay: 0.2s;
}

.freelancer-card:nth-child(3) {
    animation-delay: 0.3s;
}

.freelancer-card:nth-child(4) {
    animation-delay: 0.4s;
}

.freelancer-card:nth-child(5) {
    animation-delay: 0.5s;
}

.freelancer-card:nth-child(6) {
    animation-delay: 0.6s;
}

.freelancer-card:nth-child(7) {
    animation-delay: 0.7s;
}

.freelancer-card:nth-child(8) {
    animation-delay: 0.8s;
}

/* Modern Talent Card Styles */
.talent-carousel-container {
    position: relative;
    padding: 2rem 1rem;
    /* Added padding for better spacing */
    max-width: 1280px;
    /* Widened from 1130px */
    /* 5 cartes x 220px + 4 gaps x 3px + padding */
    margin: 0 auto;
    overflow: visible;
    /* Fix for hidden buttons */

    /* Graduate Background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}



.talent-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 1rem 0.5rem 2rem 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
    justify-content: flex-start;
    /* Align start */
}

/* Centre les cartes si elles sont peu nombreuses */
@media (min-width: 1024px) {
    .talent-scroll-container {
        justify-content: center;
    }
}

.talent-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.talent-card-modern {
    min-width: 260px;
    max-width: 260px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem 1rem;
    /* Adjusted padding */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-snap-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth transition for JS transforms */
    border: 1px solid rgba(243, 244, 246, 0.8);
    /* Very subtle border */
    transform-origin: center center;
    /* Ensure scaling from center */
}

.talent-card-modern:hover {
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
    z-index: 10;
}

/* Active state for center zoom effect - works with JS dynamic scaling */
.talent-card-active {
    z-index: 20;
    transform: scale(1.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 2px solid #FF3F7F;
}

.talent-avatar-container {
    position: relative;
    margin-bottom: 1.25rem;
    margin-top: -1rem;
    /* Pull up slightly */
}

.talent-avatar-modern {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    /* Thicker white border */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    /* Shadow behind avatar */
}

.verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    background: #4ADE80;
    /* Green-400 */
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.talent-name-modern {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1F2937;
    /* Gray-800 */
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.2;
}

.talent-role-modern {
    font-size: 0.95rem;
    /* Slightly larger */
    font-weight: 600;
    color: #4ADE80;
    /* Green-400 matches badge */
    margin-bottom: 0.75rem;
    text-align: center;
}

.talent-rating-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #9CA3AF;
    margin-bottom: 1.5rem;
    width: 100%;
}

.btn-profile-light {
    background-color: #DCFCE7;
    /* Green-100 */
    color: #15803D;
    /* Green-700 darker for contrast */
    font-weight: 700;
    padding: 0.875rem 0;
    /* Taller button */
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-profile-light:hover {
    background-color: #BBF7D0;
    /* Green-200 */
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    /* Larger */
    height: 56px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    /* Increased z-index to ensure it's above cards */
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 63, 127, 0.1);
    color: #374151;
    font-size: 1.2rem;
    opacity: 0.8;
    /* Slightly transparent by default */
}

.nav-button:hover {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 63, 127, 0.3);
    color: #FF3F7F;
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    border-color: #FF3F7F;
}

.nav-prev {
    left: -1.5rem;
}

.nav-next {
    right: -1.5rem;
}

/* Show buttons more prominently when container is hovered */
.talent-carousel-container:hover .nav-button {
    opacity: 1;
}

@media (max-width: 1024px) {
    .talent-scroll-container {
        justify-content: flex-start;
        /* Ensure scrolling works on tablet */
        padding-left: 1.5rem;
        /* Add padding for start items */
    }

    .nav-button {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .nav-button {
        display: none;
    }

    /* Hide arrows on mobile */
    .talent-card-modern {
        min-width: 240px;
        max-width: 240px;
    }

    .talent-scroll-container {
        gap: 4px;
    }
}


/* ==========================================================================
           STYLES POUR LE FOND ET GLASSMORPHISME (Top Talents)
           ========================================================================== */

/* Fond de section avec dégradé subtil */
.top-talents-bg {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    z-index: 1;
}

/* Animation de blobs en arrière-plan */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Effet Glassmorphism pour les cartes */
.glass-effect {
    background: rgba(255, 255, 255, 0.7) !important;
    /* Semi-transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1) !important;
}

/* Modification de la carte pour accueillir la bannière */
.talent-card-modern {
    padding: 0 !important;
    /* On gère le padding avec talent-info */
    overflow: hidden;
    /* Pour couper la bannière avec le border-radius */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Conteneur de la bannière */
.talent-banner-container {
    width: 100%;
    height: 120px;
    background-color: #f3f4f6;
    position: relative;
}

.talent-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF3F7F, #FFC400);
    /* Fallback */
}

/* Ajustement de l'avatar pour chevaucher la bannière */
.talent-avatar-container {
    margin-top: -48px !important;
    margin-bottom: 0.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 10;
    display: flex;
    justify-content: center;
    position: relative;
    width: fit-content !important;
}

.talent-avatar-modern {
    width: 80px !important;
    /* Légèrement plus petit pour l'équilibre */
    height: 80px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    background-color: white;
}

.talent-info {
    padding: 0 1.5rem 1.5rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* Ajustements typographiques */
.talent-name-modern {
    font-size: 1.1rem !important;
    margin-top: 0.5rem;
}

.talent-role-modern {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
}

/* ==========================================================================
   STYLES POUR LE CARROUSEL AMÉLIORÉ - PROGRESS BAR & DOTS
   ========================================================================== */

/* Wrapper du carrousel */
.talent-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Barre de progression */
.carousel-progress-container {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: rgba(255, 63, 127, 0.15);
    border-radius: 4px;
    margin: 0 auto 1rem auto;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #FF3F7F, #FFC400);
    border-radius: 4px;
    transition: width 0.03s linear;
}

/* Indicateurs de pagination (dots) */
.carousel-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 63, 127, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    width: 28px;
    border-radius: 14px;
    background: linear-gradient(90deg, #FF3F7F, #FFC400);
    box-shadow: 0 2px 8px rgba(255, 63, 127, 0.4);
}

/* Amélioration des transitions des cartes */
.talent-card-modern {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow;
}

/* Animation d'entrée pour les cartes */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(0.9);
    }
}

.talent-scroll-container .talent-card-modern {
    animation: cardFadeIn 0.6s ease-out forwards;
}

.talent-scroll-container .talent-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.talent-scroll-container .talent-card-modern:nth-child(2) {
    animation-delay: 0.15s;
}

.talent-scroll-container .talent-card-modern:nth-child(3) {
    animation-delay: 0.2s;
}

.talent-scroll-container .talent-card-modern:nth-child(4) {
    animation-delay: 0.25s;
}

.talent-scroll-container .talent-card-modern:nth-child(5) {
    animation-delay: 0.3s;
}

.talent-scroll-container .talent-card-modern:nth-child(6) {
    animation-delay: 0.35s;
}

.talent-scroll-container .talent-card-modern:nth-child(7) {
    animation-delay: 0.4s;
}

.talent-scroll-container .talent-card-modern:nth-child(8) {
    animation-delay: 0.45s;
}

/* Amélioration du scroll container */
.talent-scroll-container {
    gap: 3px !important;
    padding: 1.5rem 0.25rem 1rem 0.25rem !important;
}

/* Responsive pour les dots */
@media (max-width: 640px) {
    .carousel-dots-container {
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 24px;
    }

    .carousel-progress-container {
        max-width: 280px;
    }
}

/* ==========================================================================
           MODERN HERO SECTION STYLES (Adelfox Style)
           ========================================================================== */

/* Modern Hero Container */
.hero-modern {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

@media (min-width: 1024px) {
    .hero-modern {
        height: auto;
        min-height: 700px;
        display: flex;
        align-items: center;
    }
}

/* Typography */
.hero-title-modern {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle-modern {
    font-size: 1.125rem;
    color: #4B5563;
    line-height: 1.6;
    max-width: 500px;
}

/* Blob Background Shape */
.blob-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(135deg, #FF3F7F 0%, #FFC400 100%);
    opacity: 0.1;
    z-index: 0;
    animation: blobMorph 8s ease-in-out infinite;
}

.blob-solid {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 120%;
    height: 120%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FF3F7F' d='M44.7,-76.4C58.9,-69.2,71.8,-59.1,79.6,-46.9C87.4,-34.7,90.1,-20.4,89.1,-6.6C88.1,7.2,83.4,20.4,75.2,32.2C67,44,55.3,54.3,42.6,63.1C29.9,71.9,16.2,79.1,1.5,76.5C-13.2,73.9,-28.9,61.5,-42.6,49.5C-56.3,37.5,-68,25.9,-73.6,11.3C-79.2,-3.3,-78.7,-20.9,-70.7,-35.6C-62.7,-50.3,-47.2,-62.1,-31.6,-68.6C-16,-75.1,-0.3,-76.3,15.6,-77.5L44.7,-76.4Z' transform='translate(100 100)' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    opacity: 0.1;
    /* Changed opacity to 0.1 because standard text needs contrast if on top, 
       but here it is behind visuals. I'll keep it low or use mix-blend-mode. */
}

@keyframes blobMorph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* Pill Buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-pill-primary {
    background-color: #111827;
    color: white;
}

.btn-pill-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: #000000;
    color: white;
}

.btn-pill-secondary {
    background-color: white;
    color: #111827;
    border: 1px solid #E5E7EB;
}

.btn-pill-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    background-color: #F9FAFB;
    border-color: #D1D5DB;
    color: #111827;
}

/* Floating Elements (Cards) */
.floating-card {
    background: white;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    z-index: 10;
    animation: floatCard 6s ease-in-out infinite;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.floating-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.floating-card-content h4 {
    font-weight: 700;
    font-size: 0.875rem;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.floating-card-content p {
    font-size: 0.75rem;
    color: #6B7280;
    margin: 0;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Image Container in Hero */
.hero-image-modern-container {
    position: relative;
    z-index: 1;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 5;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Adelfox Specifics */
.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: #FFF1F2;
    /* Pink 50 */
    color: #BE123C;
    /* Pink 700 */
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}