/* styles_entreprises_revamped.css */
/* Inspiré de styles_tarifs.css avec adaptations pour la page Entreprises */

:root {
    --primary-color: #9c5096;
    --accent-color: #00f5ca;
    --dark-bg: #111111;
    --light-bg: #ffffff;
    --card-bg: #1a1a1a;
    --text-light: #f5f5f5;
    --text-dark: #333333;
    --text-muted: #a0a0a0;
    --header-bg: rgba(17, 17, 17, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: #0a0a0a;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Nouvel éclairage d'arrière-plan Firefly */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.firefly {
    position: absolute;
    border-radius: 50%;
    animation: move-firefly 20s infinite alternate ease-in-out;
}

/* Grosses lueurs fixes */
.firefly.large.fixed {
    filter: blur(200px);
    opacity: 0.3;
    animation: none;
}

#glow1 {
    width: 700px;
    height: 700px;
    top: -25%;
    left: -15%;
    background-color: var(--primary-color);
}

#glow2 {
    width: 600px;
    height: 600px;
    bottom: -30%;
    right: -20%;
    background-color: var(--accent-color);
}

/* Animation pour les petites lueurs */
@keyframes move-firefly {
    0% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--x-end, 50px), var(--y-end, 50px));
        opacity: 0;
    }
}

/* Propriétés uniques pour chaque petite lueur */
.firefly:nth-of-type(3) { width: 5px; height: 5px; background: var(--accent-color); top: 10%; left: 20%; animation-duration: 15s; animation-delay: -2s; --x-end: 100px; --y-end: -200px; }
.firefly:nth-of-type(4) { width: 8px; height: 8px; background: var(--primary-color); top: 80%; left: 90%; animation-duration: 22s; animation-delay: -5s; --x-end: -300px; --y-end: 150px; }
.firefly:nth-of-type(5) { width: 3px; height: 3px; background: var(--accent-color); top: 50%; left: 50%; animation-duration: 18s; animation-delay: -1s; --x-end: 250px; --y-end: 250px; }
.firefly:nth-of-type(6) { width: 6px; height: 6px; background: var(--primary-color); top: 90%; left: 10%; animation-duration: 25s; animation-delay: -8s; --x-end: 400px; --y-end: -100px; }
.firefly:nth-of-type(7) { width: 4px; height: 4px; background: var(--accent-color); top: 5%; left: 85%; animation-duration: 12s; animation-delay: -10s; --x-end: -150px; --y-end: 200px; }
.firefly:nth-of-type(8) { width: 7px; height: 7px; background: var(--primary-color); top: 25%; left: 70%; animation-duration: 28s; animation-delay: -3s; --x-end: -200px; --y-end: -300px; }
.firefly:nth-of-type(9) { width: 3px; height: 3px; background: var(--accent-color); top: 60%; left: 30%; animation-duration: 16s; animation-delay: -12s; --x-end: 100px; --y-end: 200px; }
.firefly:nth-of-type(10) { width: 9px; height: 9px; background: var(--primary-color); top: 40%; left: 80%; animation-duration: 30s; animation-delay: -7s; --x-end: -350px; --y-end: 100px; }
.firefly:nth-of-type(11) { width: 5px; height: 5px; background: var(--accent-color); top: 75%; left: 5%; animation-duration: 14s; animation-delay: -4s; --x-end: 200px; --y-end: -150px; }
.firefly:nth-of-type(12) { width: 6px; height: 6px; background: var(--primary-color); top: 15%; left: 45%; animation-duration: 20s; animation-delay: -9s; --x-end: -100px; --y-end: 300px; }
.firefly:nth-of-type(13) { width: 4px; height: 4px; background: var(--accent-color); top: 85%; left: 60%; animation-duration: 23s; animation-delay: -6s; --x-end: 250px; --y-end: -250px; }
.firefly:nth-of-type(14) { width: 8px; height: 8px; background: var(--primary-color); top: 30%; left: 5%; animation-duration: 17s; animation-delay: -11s; --x-end: 150px; --y-end: -200px; }
/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Header */
header {
    background: var(--header-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre le logo FEI-AIX */
    gap: 1rem;
}
.fei-logo {
    max-width: 5rem;
    height: auto;
    transition: transform 0.3s ease;
}
.fei-logo:hover {
    transform: scale(1.05);
}

/* Nouveau logo textuel FEI-AIX */
.fei-logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.fei-logo-text:hover {
    transform: scale(1.05);
}
.fei-logo-text .fei {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.fei-logo-text .separator {
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 245, 202, 0.7);
    margin: 0 2px;
}
.fei-logo-text .aix {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.logo-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.3rem;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.5px;
    width: 100%;
    display: none; /* Désactivé pour le mode entreprises */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.logo-container:hover .logo-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.logo-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}
.desktop-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.desktop-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
    color: var(--accent-color);
}
.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}
/* Mobile Navigation */
.menu-toggle { display: none; }
.mobile-nav { display: none; }
.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    width: 28px;
    height: 22px;
}
.menu-icon span {
    background: var(--text-light);
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.menu-icon span:nth-child(1) { top: 0px; }
.menu-icon span:nth-child(2) { top: 9px; }
.menu-icon span:nth-child(3) { top: 18px; }
.overlay { display: none; }

/* Bouton de menu mobile flottant */
.mobile-menu-icon {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.mobile-menu-icon span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    position: absolute;
    transition: all 0.3s ease;
}
.mobile-menu-icon span:nth-child(1) {
    top: 15px;
    left: 13px;
    width: 24px;
}
.mobile-menu-icon span:nth-child(2) {
    top: 22px;
    left: 13px;
    width: 24px;
}
.mobile-menu-icon span:nth-child(3) {
    top: 29px;
    left: 13px;
    width: 24px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: transparent;
    color: var(--text-light);
    padding-top: 6rem;
}

.hero-overlay {
    display: none;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Effet de reflet liquide pour le titre */
.neon-glow {
    position: relative;
    background: linear-gradient(
        90deg,
        var(--text-light) 0%,
        var(--text-light) 25%,
        var(--primary-color) 35%,
        var(--text-light) 45%,
        var(--text-light) 55%,
        var(--accent-color) 65%,
        var(--text-light) 75%,
        var(--text-light) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: liquid-shine 45s ease-in-out infinite;
}

@keyframes liquid-shine {
    0% {
        background-position: -300% 0;
    }
    50% {
        background-position: 300% 0;
    }
    100% {
        background-position: -300% 0;
    }
}

.hero-content .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Introduction Section pour Entreprises */
.introduction-entreprises-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    z-index: 2;
}

.introduction-entreprises-section h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.intro-content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.intro-text-content {
    flex: 1.5;
    color: var(--text-muted);
}

.intro-text-content h2 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: left;
}

.intro-text-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
    max-width: none;
}

.intro-image-content {
    flex: 1;
    max-width: 450px;
}

.intro-forum-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.intro-forum-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}


/* Companies List Section */
.companies-list-section {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
    z-index: 2;
}

.companies-list-section h2 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-weight: 600;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.company-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.company-card-link:hover {
    transform: translateY(-8px);
}

.company-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

.company-logo {
    max-height: 60px;
    width: auto;
    max-width: 180px;
    margin: 0 auto 1.5rem auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.company-info h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.company-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

/* CTA Section */
.cta-section {
    padding: 0;
    background: transparent;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.cta-section .container {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.cta-section p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 1.5rem auto 2rem auto;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--accent-color);
    z-index: 2;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: transparent;
    color: var(--accent-color);
}


/* Footer */
footer {
    background: #000;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

footer p {
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* Scroll-to-Top Button */
#scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .logo-container {
        justify-content: center;
        width: 100%;
    }
    
    .mobile-menu-icon {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--dark-bg);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .mobile-nav ul {
        list-style: none;
        text-align: center;
    }
    
    .mobile-nav ul li {
        margin: 1.5rem 0;
    }
    
    .mobile-nav ul li a {
        color: var(--text-light);
        text-decoration: none;
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }
    
    .menu-toggle:checked ~ .mobile-nav {
        transform: translateX(0);
    }
    
    .menu-toggle:checked ~ .mobile-menu-icon span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .mobile-menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .mobile-menu-icon span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-section {
        height: 60vh;
        padding-top: 5rem;
    }
    
    .intro-content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    
    .intro-text-content h2 {
        text-align: center;
    }
    
    .intro-image-content {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .introduction-entreprises-section,
    .companies-list-section {
        padding: 4rem 1rem;
    }
    
    .cta-section .container {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-card {
        padding: 1.5rem 1rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
}
