
:root {
    --primary: #0A2463;
    --secondary: #FF6B35;
    --accent: #F4D35E;
    --light: #F7F9FC;
    --dark: #1E1E24;
    --green: #27AE60;
    --purple: #764BA2;
    --blue: #3498DB;
    --orange: #E67E22;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-secondary: linear-gradient(45deg, var(--secondary), var(--accent));
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    opacity: 0.9;
    color: var(--accent);
    font-weight: 400;
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    margin-bottom: 2rem;
}

.title-accent {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.title-description {
    display: block;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* Team Cards */
.team-card {
    height: 550px;
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.team-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.team-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.card-front {
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
}

.card-back {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .member-photo {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .member-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-name {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
}

/* Company Info with Logo */
.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.company-logo.no-logo {
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
}

.member-title {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.3;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.role-tag.primary {
    background: var(--gradient-secondary);
    color: white;
}

.role-tag.secondary {
    background: rgba(10, 36, 99, 0.1);
    color: var(--primary);
}

.member-sector {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.member-sector i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Correction spécifique pour l'industrie sur la face arrière */
.card-back .member-sector {
    color: #E5E5E5; /* Gris clair pour une meilleure lisibilité */
    margin-bottom: 1.5rem;
}

.card-back .member-sector i {
    color: var(--accent); /* Garder l'icône en jaune */
}

.card-back .member-sector span {
    color: #E5E5E5; /* Texte en gris clair */
}

/* Card Back Content */
.member-details {
    text-align: center;
}

.member-details h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.member-details p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-align: left;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.expertise-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.contact-info {
    margin-top: auto;
    text-align: center;
}

.contact-btn {
    background: var(--accent);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 211, 94, 0.4);
}

/* Organization Chart */
.org-chart-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.org-chart {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.org-level {
    margin: 3rem 0;
}

.org-departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.org-role {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.org-role.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.org-role:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.org-role.leadership {
    background: var(--gradient-primary);
    color: white;
    max-width: 400px;
    margin: 0 auto;
}

.org-role.technical { border-top: 4px solid var(--blue); }
.org-role.operations { border-top: 4px solid var(--green); }
.org-role.partnerships { border-top: 4px solid var(--secondary); }
.org-role.communication { border-top: 4px solid var(--orange); }

.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.org-role.leadership .role-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.org-role.technical .role-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--blue);
}

.org-role.operations .role-icon {
    background: rgba(39, 174, 96, 0.1);
    color: var(--green);
}

.org-role.partnerships .role-icon {
    background: rgba(255, 107, 53, 0.1);
    color: var(--secondary);
}

.org-role.communication .role-icon {
    background: rgba(230, 126, 34, 0.1);
    color: var(--orange);
}

.org-role h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.org-role.leadership h3 {
    color: white;
}

.org-role p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.org-role.leadership p {
    color: var(--accent);
}

.role-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.org-connector {
    width: 2px;
    height: 50px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 1px;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--gradient-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border-top: 4px solid var(--secondary);
}

.value-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.value-card:nth-child(2) { border-top-color: var(--green); }
.value-card:nth-child(3) { border-top-color: var(--blue); }
.value-card:nth-child(4) { border-top-color: var(--purple); }

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.value-card:nth-child(2) .value-icon {
    background: linear-gradient(45deg, var(--green), #2ecc71);
}

.value-card:nth-child(3) .value-icon {
    background: linear-gradient(45deg, var(--blue), #5dade2);
}

.value-card:nth-child(4) .value-icon {
    background: linear-gradient(45deg, var(--purple), #bb8fce);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: var(--primary);
    color: white;
    padding: 70px 0 30px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0,0 Q500,100 1000,0 L1000,100 L0,100 Z" fill="%230A2463"></path></svg>');
    background-size: 100% 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    width: 200px;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-social {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 100px;
        padding: 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding: 0 1rem;
        padding-left: calc(50% + 1rem);
    }

    .timeline::before {
        left: 20px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration de la visibilité des informations */
.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Indicateur visuel pour le flip */
.team-card::after {
    content: '↻ Cliquez pour plus d\'infos';
    position: absolute;
    bottom: 10px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card.flipped::after {
    content: '↻ Retour';
}