/* ============================================
   VARIABLES GLOBALES
   ============================================ */

:root {
    /* Palette Studyia 2025 */
    --color-onyx: #1A1A1A;         /* Noir Onyx */
    --color-gold: #D4AF37;         /* Or Lumineux */
    --color-seal: #8B0000;         /* Rouge Sceau */
    --color-sand: #F5F5DC;         /* Beige Sable */
    --color-background: #FFFFFF;    /* Blanc */
    --color-text: #1A1A1A;
    --color-text-light: #718096;

    /* Variables Fonctionnelles (Ajoutées pour corriger les références manquantes) */
    --color-primary: var(--color-onyx);
    --color-secondary: var(--color-gold);
    --color-accent: var(--color-seal);
    --color-surface: #FFFFFF;
    
    --gradient-primary: linear-gradient(135deg, var(--color-gold) 0%, #F4D03F 100%);
    
    /* Typographie */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    
    /* Bordures */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 10, 10, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 10, 10, 0.16);
    --shadow-xl: 0 20px 60px rgba(10, 10, 10, 0.2);
    
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-loader: 9999;
    --z-navbar: 1000;
    --z-dropdown: 900;
    --z-overlay: 800;
    --z-modal: 1001;
}

/* ============================================
   RESET ET STYLES DE BASE
   ============================================ */

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-onyx);
}

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

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

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

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
    color: var(--color-text);
}

.text-gradient {
    color: var(--color-gold);
    font-weight: 800;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    background-color: var(--color-onyx);
    padding: var(--spacing-lg) 0;
    color: var(--color-sand);
}

.contact .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact .col {
    flex-basis: 45%;
}

.contact .text-gradient {
    color: var(--color-gold);
}

/* ============================================
   LOADER
   ============================================ */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.loader-eye {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s infinite ease-in-out;
}

.loader-iris {
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid var(--color-accent);
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: var(--z-navbar);
    padding: var(--spacing-sm) 0;
    transition: background-color var(--transition-normal), padding var(--transition-normal);
}

.logo-light {
    display: none; /* Caché par défaut */
}


.navbar.scrolled {
    background-color: var(--color-onyx);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}


.navbar.scrolled .logo-dark {
    display: none; /* On cache le logo noir */
}

.navbar.scrolled .logo-light {
    display: block; /* On affiche le logo blanc */
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-dot {
    color: var(--color-accent);
}

.logo-img {
    height: 55px; /* Nouvelle taille du logo */
    width: auto;
    transition: all var(--transition-normal);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--color-onyx); /* CORRECTION: Foncé par défaut */
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link span {
    position: relative;
    z-index: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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


.navbar.scrolled .nav-link {
    color: var(--color-sand); /* Clair sur fond noir */
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-gold);
}

.btn-nav {
    background: var(--color-gold);
    color: var(--color-onyx);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #c7a02f; /* Or un peu plus foncé */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-onyx); /* Noir par défaut */
    position: relative;
    transition: background var(--transition-fast);
}

.navbar.scrolled .hamburger {
    background: var(--color-background); /* Blanc sur fond sombre */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-onyx); /* Noir par défaut */
    transition: transform var(--transition-normal);
}

.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--color-background); /* Blanc sur fond sombre */
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn i {
    font-size: 0.9em;
    transition: transform var(--transition-fast);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-onyx);
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #c7a02f; /* Or un peu plus foncé */
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-onyx);
    border: 2px solid var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-onyx);
    transform: translateY(-3px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-xxl);
    position: relative;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-surface) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
}

.hero-image-shape {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape-1, .shape-2 {
    position: absolute;
    border-radius: var(--radius-lg);
    background: var(--color-sand);
}

.shape-1 {
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    transform: rotate(-15deg);
}

.shape-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    transform: rotate(15deg);
    background: white;
    box-shadow: var(--shadow-lg);
}

.hero-icon {
    position: absolute;
    background: white;
    color: var(--color-gold);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
}

.icon-1 { top: 10%; left: 20%; }
.icon-2 { top: 40%; right: 10%; }
.icon-3 { bottom: 20%; left: 30%; }

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--color-secondary);
    position: relative;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 10; /* S'assurer que les stats sont au-dessus des éléments flottants */
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
}

.hero-image {
    position: relative;
}

.image-shape {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--gradient-primary);
    position: relative;
    animation: morphing 15s infinite ease-in-out;
}

.shape-inner {
    position: absolute;
    inset: 20px;
    border-radius: inherit;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
    animation: float 6s infinite ease-in-out;
    z-index: -1; /* Placer derrière le contenu */
}

.floating-element.el-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element.el-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.floating-element.el-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

.floating-element.el-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--color-background);
}

.wave-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: var(--spacing-xxl) 0;
    background: var(--color-background);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    min-height: 40px; /* Pour aligner les boutons */
}

/* ============================================
   PROJETS SECTION
   ============================================ */

.projects {
    padding: var(--spacing-xxl) 0;
    background: var(--color-surface);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: var(--spacing-md);
}

.project-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.overlay-content .project-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.project-link:hover {
    background: var(--color-secondary);
    color: white;
    transform: rotate(45deg);
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content .project-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products {
    padding: var(--spacing-xxl) 0;
    background: var(--color-sand);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.product-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.product-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.product-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: var(--spacing-xxl) 0;
    background: var(--color-sand);
}

.why-us {
    padding: var(--spacing-xxl) 0;
    background: var(--color-background);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-us-text p {
    max-width: 90%;
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.why-us .feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--color-sand);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.why-us .feature i {
    font-size: 1.5rem;
    color: var(--color-gold);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.why-us .feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.why-us .feature p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

.why-us-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    background: var(--color-sand);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-onyx);
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-description p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.about-features {
    margin-top: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature i {
    font-size: 1.5rem;
    color: var(--color-gold);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-stat {
    text-align: left;
}

.about-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-onyx);
    line-height: 1;
}

.about-stat .stat-label {
    font-size: 1rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

.about-visual {
    position: relative;
}

.image-frame {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    position: relative;
    margin: 0 auto;
}

.frame-content {
    position: absolute;
    inset: 20px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.team-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.team-stat .stat-label {
    font-size: 0.875rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   TEAM SECTION
   ============================================ */

.team {
    padding: var(--spacing-xxl) 0;
    background: var(--color-sand);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    align-items: stretch; /* Assure que les cartes ont la même hauteur */
}

.team-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative; /* Pour le lien */
    display: flex;
    flex-direction: column; /* Pour aligner le contenu */
}


.team-grid:hover .team-card:not(:hover) {
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(0.98);
}

.team-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.card-image {
    height: 400px; /* Hauteur fixe pour le conteneur */
    background-color: #f0f0f0; /* Couleur de fond si l'image est plus petite */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* L'image est entièrement visible, sans être coupée */
}

.card-info {
    padding: var(--spacing-md);
    flex-grow: 1; /* Permet au contenu de pousser le footer vers le bas */
    display: flex;
    flex-direction: column;
}

.card-bio-excerpt {
    flex-grow: 1; /* Pousse le lien 'Voir le profil' vers le bas */
}

.card-name { font-size: 1.5rem; }
.card-role { color: var(--color-gold); font-weight: 600; margin-bottom: var(--spacing-sm); }
.card-bio-excerpt { color: var(--color-text-light); font-size: 0.95rem; }

.card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-link-indicator {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--color-gold);
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.team-card:hover .card-link-indicator {
    opacity: 1;
    transform: translateY(0);
}


/* Team Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    backdrop-filter: blur(5px);
}

.team-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.team-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.modal-image {
    position: relative;
    cursor: pointer;
}

.modal-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-image:hover .zoom-icon {
    opacity: 1;
}

.modal-name { font-size: 2.5rem; }
.modal-role { font-size: 1.25rem; color: var(--color-gold); font-weight: 600; margin-bottom: var(--spacing-md); }
.modal-bio { color: var(--color-text-light); margin-bottom: var(--spacing-lg); }
.skills-title { font-size: 1.125rem; margin-bottom: var(--spacing-sm); }

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background: var(--color-sand);
    color: var(--color-onyx);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}


/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   PAGES DE PROFIL (MEMBRES DE L'ÉQUIPE)
   ============================================ */

.profile-header {
    position: static;
    background-color: var(--color-onyx);
}

.profile-header .logo-light {
    display: block;
}

.profile-page {
    padding: var(--spacing-xl) 0;
    background: var(--color-sand);
}

.profile-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.profile-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.profile-info h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    font-size: 1.5rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.profile-bio {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.profile-info h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.skills-list {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.member-social a {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-right: var(--spacing-md);
    transition: color var(--transition-fast);
}

.member-social a:hover {
    color: var(--color-gold);
}

.profile-footer {
    background: var(--color-onyx);
    color: var(--color-sand);
    padding: var(--spacing-lg) 0;
}

.profile-footer .container {
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.image-lightbox.active .lightbox-content {
    transform: scale(1);
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: var(--spacing-xxl) 0;
    background: var(--color-onyx); /* Fond sombre */
    color: white;
}

.contact .section-title,
.contact .section-subtitle,
.contact .section-description {
    color: white;
}

.contact .text-gradient {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-seal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    margin-bottom: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    font-size: 1.25rem;
}

.info-content h4 {
    color: var(--color-gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-sand);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    color: var(--color-onyx);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: white;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

/* Diagonal Divider */
.diagonal-divider {
    position: relative;
    height: 10vh;
    background: var(--color-background);
}

.diagonal-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-onyx);
    color: var(--color-sand);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    margin-bottom: var(--spacing-md);
}


.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
}


.footer-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--color-sand);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid #2d3748;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border: none;
    outline: none;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMATIONS KEYFRAMES
   ============================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }