/* Kansa Business SAS Responsive CSS */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #031f55, #3e6ae1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.kansa-logo-large {
    margin-bottom: 40px;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    }
}

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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #171a20;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(58, 58, 58, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
}

.kansa-logo {
    font-size: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    color: #031f55;
    letter-spacing: 2px;
}

.nav-menu {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #171a20;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3e6ae1;
}

/* Dropdown Menus */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255, 255, 255);
    min-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.dropdown-item {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.dropdown-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.dropdown-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(9, 2, 66);
}

.dropdown-info p {
    font-size: 14px;
    color: rgb(7, 4, 209);
    margin: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    background: none;
    border: none;
    color: #171a20;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: none;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #171a20;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 16px 24px;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 12px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #171a20;
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #3e6ae1;
}

/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide.next {
    transform: translateX(100%);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: auto 0;
    padding: 80px 24px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 4px;
    color: #ffffff;
    line-height: 1.3;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 0.875rem;
    color: #5c5e62;
    margin-bottom: 32px !important;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
    max-width: 400px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background-color: #171a20;
    color: white;
}

.btn-primary:hover {
    background-color: #042172;
}

.btn-secondary {
    background-color: rgba(23, 26, 32, 0.8);
    color: white;
}

.btn-secondary:hover {
    background-color: #042172;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.9) contrast(1.1);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

/* Hero Sections */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
        justify-content: center;
    }
}

/* Specific positioning for each vehicle model */
.model-s .hero-bg-image {
    object-position: center 60%;
}

.model-3 .hero-bg-image {
    object-position: center 55%;
}

.model-x .hero-bg-image {
    object-position: center 65%;
}

.model-y .hero-bg-image {
    object-position: center 58%;
}

.solar .hero-bg-image {
    object-position: center 40%;
}

.solar-roof .hero-bg-image {
    object-position: center 45%;
}

.car-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Images (Using gradients as placeholders) */
.model-s-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.model-3-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.model-x-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.model-y-bg {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.solar-bg {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.solar-roof-bg {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Footer */
.footer {
    background-color: #171a20;
    color: white;
    padding: 48px 24px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #f4f4f4;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #393c41;
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 12px;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .nav-container {
        padding: 0 32px;
    }
    
    .nav-menu {
        display: block;
    }
    
    .nav-btn {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .dropdown-content {
        min-width: 500px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
    
    .btn {
        min-width: 180px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 48px;
    }
    
    .hero-section {
        padding: 80px 48px 40px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .hero-text p {
        font-size: 1.375rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(23, 26, 32, 0.95);
    }
    
    .nav-links a,
    .nav-btn,
    .mobile-menu-toggle span {
        color: white;
    }
    
    .mobile-menu {
        background: #171a20;
    }
    
    .mobile-nav-links a {
        color: white;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .hero-text h1,
    .hero-text p {
        color: white;
    }
}

/* Smooth scrolling animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-section {
        animation: fadeInUp 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-links a:focus,
.nav-btn:focus {
    outline: 2px solid #3e6ae1;
    outline-offset: 2px;
}

/* Team Section Styles */
.team-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.team-header {
    text-align: center;
    margin-bottom: 80px;
}

.team-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: #171a20;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.team-header p {
    font-size: 1.125rem;
    color: #5c5e62;
    max-width: 600px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cartes par ligne */
    gap: 20px; /* Espacement entre les cartes */
    justify-content: center;
    align-items: start;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}



.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3e6ae1, #667eea);
    border-radius: 12px;
}

.value-icon i {
    font-size: 4rem;
    color: white;
}

/* Stats Section Styles */
.stats-section {
    margin-bottom: 80px;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    height: auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Product Categories */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-category {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.product-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2ff;
}

.category-header i {
    font-size: 2.5rem;
    color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.product-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-left-color: #764ba2;
}

.product-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.product-item p {
    color: #718096;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-item .price {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .member-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .category-header i {
        font-size: 2rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
    
    /* Loading Screen Tablet */
    .logo-image {
        width: 100px;
        height: 100px;
    }
    
    .logo-title {
        font-size: 2.2rem;
        letter-spacing: 2.5px;
    }
    
    .logo-subtitle {
        font-size: 1.1rem;
    }
}

/* Enhanced Team Member Animations */
.team-member {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}



.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member:hover .member-overlay {
    opacity: 1;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cartes par rangée */
    gap: 30px; /* espace entre les cartes */
    margin-top: 40px;
}

.team-member {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 4px solid #0078ff;
}

.member-info {
    padding: 15px;
}

.member-info h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.member-title {
    font-size: 14px;
    color: #0078ff;
    margin-top: 5px;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}


.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.member-title {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

.social-link:hover {
    background: white;
    color: #171a20;
    transform: translateY(-2px);
}

.member-info {
    padding: 32px 24px;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #171a20;
    margin-bottom: 8px;
}

.member-title {
    font-size: 1rem;
    color: #3e6ae1;
    font-weight: 500;
    margin-bottom: 16px;
}

.member-bio {
    font-size: 0.9rem;
    color: #5c5e62;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 500;
    color: #171a20;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-lead {
    font-size: 1.5rem;
    color: #3e6ae1;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.4;
}

.about-text p {
    font-size: 1.125rem;
    color: #5c5e62;
    line-height: 1.6;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #171a20;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 0.9rem;
    color: #5c5e62;
    font-weight: 500;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Innovation Section */
.innovation-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.innovation-header {
    text-align: center;
    margin-bottom: 80px;
}

.innovation-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: #171a20;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.innovation-header p {
    font-size: 1.125rem;
    color: #5c5e62;
    max-width: 600px;
    margin: 0 auto;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.innovation-item {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.innovation-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.innovation-icon img {
    width: 300px;       /* largeur fixe */
    height: 300px;      /* hauteur fixe */
    object-fit: cover;  /* recadrage pour que l’image remplisse le carré */
    border-radius: 8px; /* coins arrondis (optionnel) */
    display: block;
    margin: 0 auto 10px; /* centrage horizontal et espacement avec le titre */
}


.innovation-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #171a20;
    margin-bottom: 16px;
}

.innovation-item p {
    font-size: 1rem;
    color: #5c5e62;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-header h2,
    .about-text h2,
    .innovation-header h2 {
        font-size: 2.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .innovation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .team-section,
    .about-section,
    .innovation-section {
        padding: 80px 0;
    }
    
    .team-header h2,
    .about-text h2,
    .innovation-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .member-info {
        padding: 24px 20px;
    }
    
    .innovation-item {
        padding: 32px 24px;
    }
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    border-color: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .carousel-nav {
        padding: 0 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 30px;
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-nav {
        display: none;
    }
    
    .carousel-indicators {
        bottom: 20px;
        gap: 6px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
}


/* Global Presence Section */
.global-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #171a20 0%, #2c3e50 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.global-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
}

.global-section .container {
    position: relative;
    z-index: 2;
}

.global-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.global-section .section-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.global-section .section-header p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.region-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.region-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(62, 106, 225, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.region-item:hover::before {
    opacity: 1;
}

.region-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff, #e9ecef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.facilities {
    position: relative;
    z-index: 2;
}

.facilities p {
    margin-bottom: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border-left: 4px solid #3e6ae1;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    backdrop-filter: blur(5px);
}

.facilities p:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(12px);
    border-left-color: #667eea;
    box-shadow: 0 4px 20px rgba(62, 106, 225, 0.2);
}

.facilities p:last-child {
    margin-bottom: 0;
}

.facilities strong {
    color: #3e6ae1;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Global Presence */
@media (max-width: 768px) {
    .global-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .region-item {
        margin: 0 16px;
        padding: 32px 24px;
    }
    
    .global-section .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .global-section {
        padding: 80px 0;
    }
    
    .global-section .section-header h2 {
        font-size: 2rem;
    }
    
    .global-grid {
        gap: 24px;
    }
    
    .region-item {
        margin: 0 8px;
        padding: 24px 20px;
    }
    
    .facilities p {
        padding: 12px 16px;
    }
    
    /* Optimisations pour très petits écrans */
    .hero-content {
        padding: 120px 16px 160px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .hero-subtitle {
        margin-bottom: 24px !important;
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 16px;
        min-width: 280px;
        width: 100%;
        max-width: 320px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .carousel-prev {
        left: 12px;
    }
    
    .carousel-next {
        right: 12px;
    }
    
    .carousel-nav {
        bottom: 20px;
        gap: 8px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators {
        bottom: 50px;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .products-grid,
    .team-grid,
    .innovation-grid {
        gap: 16px;
        padding: 0 12px;
    }
    
    /* Loading Screen Mobile */
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    .logo-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .logo-subtitle {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #171a20;
    }
    
    .btn-secondary {
        border: 2px solid rgba(23, 26, 32, 0.8);
    }
}












.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 12px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.contact-list a i {
    font-size: 20px;
    color: #25D366; /* Vert WhatsApp par défaut */
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-list a[href^="mailto:"] i {
    color: #ffb100; /* Couleur pour l'email */
}

.contact-list a[href*="maps"] i {
    color: #ff4e4e; /* Couleur pour la localisation */
}

.contact-list a:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-list a:hover i {
    transform: scale(1.3);
}





.logo-text {
    color: rgb(19, 19, 151); /* Tu peux remplacer par #007BFF pour un bleu plus joli */
    font-weight: bold;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}



