/* SDS Website Styles */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8faff;
    --white: #ffffff;
    --shadow: 0 2px 10px 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(--text-dark);
    overflow-x: hidden;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.logo img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.header {
    background: var(--white);
    color: var(--primary-color);
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 2px solid var(--bg-light);
    height: 80px;
}

.nav-container {
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: auto;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    /* height: 80px; */
    width: auto;
    margin-right: 0.8rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    height: 100%;
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--primary-color);
    background: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--bg-light);
    border-right: 1px solid var(--bg-light);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.nav-menu a.active {
    background: #1e3a8aa6;
    color: var(--white);
}

.language-switch {
    display: flex;
    gap: 0;
    height: 100%;
    align-items: center;
}

.lang-btn {
    background: var(--white);
    border: none;
    border-left: 1px solid var(--bg-light);
    border-right: 1px solid var(--bg-light);
    color: var(--primary-color);
    padding: 0 1rem;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle.active {
    background: #1e3a8aa6;
    color: var(--white);
}

.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    height: auto;
    min-height: 50px;
    border: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    height: 80px;
    padding: 0 1rem;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-bottom: 3px solid var(--accent-color);
}

.hero-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 0 2rem; */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 445px;
    position: relative;
}

.hero-text {
    text-align: left;
    padding-left: 2rem;
    padding-top: 1rem;
    width: 50%;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    height: 100%;
    width: 50%;
    position: absolute;
    right: 0;
    top: 0;
}

.hero-logo-img {
    background-color: #ffffff;
    align-items: center;
}


.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Services Grid */
.services {
    padding: 4rem 0;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-link:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Service Page Styles */
.service-hero {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.service-content {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Partners Section */
.partners {
    background: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
}

.partners-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-style: italic;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.partner-item {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.partner-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
}

.partner-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.partner-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure minimum readable font size */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        background: var(--white);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 0;
        transition: left 0.3s ease;
        border-top: 1px solid var(--bg-light);
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu li {
        width: 100%;
        height: auto;
    }
    
    .nav-menu a {
        width: 100%;
        height: 60px;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--bg-light);
        justify-content: center;
        font-size: 16px;
        padding: 0 1rem;
        text-align: center;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Dropdown menu mobile */
    .dropdown {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .dropdown-toggle {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        border-top: none;
        background: var(--bg-light);
        width: 100%;
        min-width: 100%;
        display: block;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 600px;
        border-top: 1px solid rgba(30, 58, 138, 0.2);
    }
    
    .dropdown-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    }
    
    .dropdown-menu a {
        padding-left: 2.5rem;
        font-size: 15px;
        height: 55px;
        min-height: 55px;
        background: var(--bg-light);
        color: var(--primary-color);
        border-bottom: 1px solid rgba(30, 58, 138, 0.1);
        text-align: center;
    }
    
    .dropdown-menu a:hover {
        background: var(--white);
        padding-left: 3rem;
    }
    
    /* Supprimer les flèches ajoutées par CSS sur mobile car déjà dans HTML */
    .dropdown-toggle::after {
        content: none;
    }
    
    .dropdown.active .dropdown-toggle::after {
        content: none;
    }
    
    /* Language buttons in mobile menu */
    .language-switch {
        width: 100%;
        justify-content: center;
        padding: 1rem 0;
    }
    
    .lang-btn {
        height: 50px;
        font-size: 16px;
        min-width: 60px;
    }
    
    /* Hero Section Mobile */
    .hero-content {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 3rem 0;
        justify-content: center;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 2rem 1.5rem;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
    }
    
    /* Cacher le logo sur mobile */
    .hero-logo {
        display: none !important;
    }
    
    .hero-logo-img {
        display: none !important;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        font-weight: 400;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .hero p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        opacity: 1;
        word-break: normal;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .cta-btn {
        font-size: 1.05rem;
        padding: 1rem 2rem;
        display: inline-block;
        margin-top: 0.5rem;
    }
    
    /* Logo in header */
    .logo img {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .partner-logo {
        width: 100px;
        height: 60px;
    }
    
    /* Ensure text is always visible */
    .service-card,
    .feature-item,
    .partner-item {
        min-height: auto;
    }
    
    .service-card h3,
    .feature-item h4,
    .partner-item h4 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .service-card p,
    .feature-item p,
    .partner-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-logo {
        display: none !important;
    }
    
    /* Slideshow responsive */
    .slideshow-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .prev-btn,
    .next-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .slideshow-nav {
        padding: 0 1rem;
    }
}

/* Language-specific content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Navigation language content styling */
.nav-menu .lang-content {
    display: inline;
}

.nav-menu .lang-content:not(.active) {
    display: none;
}

/* Slideshow Section */
.slideshow-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: var(--bg-dark);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide.active {
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s ease 0.4s;
}

.slide.active .slide-content h2 {
    transform: translateY(0);
    opacity: 1;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    transform: translateY(20px);
    transition: all 0.6s ease 0.5s;
}

.slide.active .slide-content p {
    opacity: 0.9;
    transform: translateY(0);
}

.slide-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
}

.slide.active .slide-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.6s ease 0.6s, background 0.3s ease, transform 0.3s ease;
}

.slide-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Slideshow Navigation */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.prev-btn,
.next-btn {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--white);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255,255,255,0.8);
}

@media (max-width: 480px) {
    .slide-content {
        padding: 0 1rem;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .slide-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero section for small screens */
    .hero-content {
        padding: 2.5rem 0;
    }
    
    .hero-text {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        word-break: normal;
        overflow-wrap: break-word;
    }
    
    .cta-btn {
        font-size: 0.95rem;
        padding: 0.85rem 1.6rem;
    }
    
    /* Logo toujours caché sur petits écrans */
    .hero-logo {
        display: none !important;
    }
    
    .hero-logo-img {
        display: none !important;
    }
    
    /* Ensure logo is visible */
    .logo img {
        height: 50px;
    }
    
    /* Navigation */
    .nav-menu a {
        font-size: 15px;
        height: 55px;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Cards */
    .service-card,
    .feature-item,
    .partner-item {
        padding: 1.5rem;
    }
    
    .service-card h3,
    .feature-item h4,
    .partner-item h4 {
        font-size: 1.1rem;
    }
    
    .service-card p,
    .feature-item p,
    .partner-item p {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}