:root {
    --primary-color: #1e4e61;
    --accent-color: #5ce1e6;
    --accent-color2: #FF9292;
    --bg-color: #ffffff;
    --text-color: #333333;
    --section-bg: #f0ffff;
    --card-bg: #ffffff;
    --footer-bg: #f0f9fa;
    --border-color: #e0f7f7;
    --modal-bg: #1e4e61;
    --nav-bg: #ffffff;
}

.dark-mode {
    --primary-color: #5ce1e6;
    --accent-color: #1e4e61;
    --accent-color2: #FF9292;
    --bg-color: #1a2d3b;
    --text-color: #ffffff;
    --section-bg: #1e4e61;
    --card-bg: #076487;
    --footer-bg: #1e4e61;
    --border-color: #3edad8;
    --modal-bg: #1e4e61;
    --nav-bg: #183e4d;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    /* Prevent accidental horizontal scroll on mobile */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 60px;
    width: auto;
}

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

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent-color2);
}

.contact-btn {
    background-color: #ff5757;
    color: white;
    border: none;
    padding: 12px 24px;
    /* Augmentation du padding */
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    /* Ajout de la taille de police */
    font-weight: 600;
    /* Légèrement plus gras */
    transition: background-color 0.3s ease;
    /* Animation au survol */
}

.contact-btn:hover {
    background-color: #c62149;
    transform: scale(1.05);
    /* Léger effet d'agrandissement au survol */
}

.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}

.content-section {
    margin-bottom: 2rem;
    background-color: var(--section-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-color: var(--border-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.product-card h3 {
    color: var(--primary-color);
}

/* Règles pour les images responsives */
.content-section img,
.ecosystem-graphic img,
.product-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.cta-button {
    display: inline-block;
    background-color: #5ce1e6;
    color: #1a2d3b;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #3edad8;
}

footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    /* Au lieu de space-between */
    flex-wrap: wrap;
    gap: 2rem;
    /* Espacement uniforme entre les blocs */
}

.footer-section {
    margin: 1rem;
    flex: 1;
    /* Chaque section prend une part égale de l'espace */
    min-width: 250px;
    /* Pour éviter des colonnes trop étroites sur mobile */
    max-width: 350px;
    /* Pour limiter l'étirement excessif */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    color: #eb8c2d;
}

/* Styles pour le menu responsive */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Generic responsive media */
img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Avoid long content breaking layout on small screens */
.content-section,
.main-content,
footer,
nav {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Animation au défilement */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Style pour le switch thème */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    z-index: 2;
}

input:checked+.slider {
    background-color: #5ce1e6;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.sun,
.moon {
    font-size: 16px;
    z-index: 1;
}

@media (max-width: 768px) {
    .theme-switch-wrapper {
        margin-right: 52px;
    }

    .nav-links {
        background-color: var(--nav-bg);
    }
}

/* Small phones fine-tuning */
@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        height: 44px;
    }

    .nav-right {
        display: none;
        /* Hide theme + language controls on very small screens to avoid crowding */
    }

    .hamburger {
        top: 14px;
        right: 12px;
    }

    .nav-links {
        width: 85%;
        /* Wider drawer for better thumb reach */
    }

    .main-content {
        margin: 1.25rem auto;
        padding: 0 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p,
    li {
        font-size: 0.98rem;
    }

    .cta-button,
    .contact-btn,
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.98rem;
    }

    .product-showcase {
        gap: 1rem;
    }

    .product-image,
    .product-description {
        min-width: 0;
    }

    .modules {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 1rem;
    }

    .footer-content {
        gap: 1rem;
    }
}

/* Animation pour les boutons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Style pour la modale */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.show-modal {
    display: flex !important;
}

.modal-content {
    background-color: #1e4e61;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 3px solid #5ce1e6;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #86eae9;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #86eae9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #3edad8;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1a2d3b;
}

.submit-btn {
    background-color: #ff5757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c62149;
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: fixed;
        top: 18px;
        right: 16px;
        background: transparent;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 90;
        box-shadow: -6px 0 16px rgba(0, 0, 0, 0.12);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    .contact-btn {
        margin-right: 60px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -7px);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}


/* Adaptation pour les images plus larges sur mobile */
@media screen and (max-width: 768px) {
    .ecosystem-graphic {
        overflow-x: auto;
        padding: 10px 0;
    }

    .ecosystem-graphic img {
        width: 100%;
        min-width: 300px;
    }
}

.benefits-list li {
    margin-bottom: 8px;
}

/* Testimonials styling */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-content p {
    position: relative;
    padding: 0 10px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    font-size: 1.5rem;
    color: var(--accent-color);
    position: relative;
    line-height: 0;
}

.testimonial-content p::before {
    content: '\201C';
    margin-right: 4px;
}

.testimonial-content p::after {
    content: '\201D';
    margin-left: 4px;
}

.testimonial-author {
    text-align: right;
    color: var(--primary-color);
}

.testimonial-author p {
    margin-bottom: 0.3rem;
}

/* About Us section styling */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.highlight-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--accent-color);
    text-align: center;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.highlight-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.highlight-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Product page styling */
.product-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
    align-items: center;
}

.product-image {
    flex: 1;
    min-width: 300px;
}

.product-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-description {
    flex: 1;
    min-width: 300px;
}

.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.module-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--accent-color);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.module-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

/* Team page styling */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.team-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-description {
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .team-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .team-image-container {
        height: 250px;
    }
}

.nav-right {
    gap: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
    color: white;
    /* Override default h1 color */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    color: white;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--card-bg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
}

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

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* LinkedIn Section */
.linkedin-section {
    background-color: #f3f6f8;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-top: 4px solid #0077b5;
}

.linkedin-section h2 {
    color: var(--section-bg);
    text-align: center;
}

.linkedin-embed-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    min-height: 300px;
}

/* Dark mode adjustments for new sections */
.dark-mode .hero-section {
    background: linear-gradient(135deg, var(--accent-color2), var(--primary-color));
}

.dark-mode .linkedin-section {
    background-color: var(--section-bg);
}

.dark-mode .linkedin-section h2 {
    color: #5ce1e6;
}

/* Image Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Desktop Hover Effects */
@media (min-width: 769px) {
    .content-section img:not(.no-zoom),
    .ecosystem-graphic img:not(.no-zoom),
    .product-card img:not(.no-zoom),
    .carousel-slide img:not(.no-zoom),
    .team-card img:not(.no-zoom) {
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .content-section img:not(.no-zoom):hover,
    .ecosystem-graphic img:not(.no-zoom):hover,
    .product-card img:not(.no-zoom):hover,
    .carousel-slide img:not(.no-zoom):hover,
    .team-card img:not(.no-zoom):hover {
        transform: scale(1.1);
        z-index: 10;
        position: relative;
    }
}