:root {
    --primary-color: #FF5722;
    --secondary-color: #146A9A;
    --accent-color: #F18401;
    --ai-blue: #1A202C;
    --ai-green: #D55C1F;
    --background-light: #f4f4f4;
    --text-color: #5d5d5d;
    --transition-speed: 0.4s;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.socialnetwork a {
    text-decoration: none;
    color: var(--secondary-color);
}

.socialnetwork a i {
    font-size: 20px;
    margin-left: 9px;
}

.menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background: rgba(255, 255, 255, 0.9); */
    background: var(--background-light);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.menubar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
}

.section {
    padding: 6rem 2rem;
    margin: 0 auto;
    position: relative;
}

.hero-section {
    position: relative;
    min-height: 97vh;
    overflow: hidden;
    margin-top: 60px;
}

.carousel-inner {
    height: 97vh;
}

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

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 800px;
    text-align: center;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    color: white;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: white;
}

.hero-text h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.btn-decouvert {
    padding: 14px 32px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-decouvert:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    z-index: 3;
}

/* Animation pour les slides */
.carousel-item.active .hero-text h1 {
    animation: fadeInDown 1s forwards;
}

.carousel-item.active .hero-text p {
    animation: fadeInUp 1s 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.carousel-item.active .hero-text .btn {
    animation: fadeInUp 1s 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-text {
        padding: 25px;
        width: 90%;
    }
}



.about {
    text-align: justify;
    line-height: 2rem;
}

.about ul li {
    line-height: 1rem;
}

/* Section Valeurs */
#valeurs {
    padding: 6rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.value-card p {
    font-size: 1rem;
    color: #666;
}

/* Formes spécifiques pour chaque carte */
.value-card:nth-child(1) {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.value-card:nth-child(1) i,
.value-card:nth-child(1) h3,
.value-card:nth-child(1) p {
    color: white;
}

.value-card:nth-child(2) {
    grid-row: span 2;
    background: var(--background-light);
}

.value-card:nth-child(3) {
    grid-column: span 1;
}

.value-card:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
}

.value-card:nth-child(4) i,
.value-card:nth-child(4) h3,
.value-card:nth-child(4) p {
    color: white;
}

.value-card:nth-child(5) {
    grid-column: span 1;
}

/* Responsivité */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Section Cible */
#cible {
    padding: 6rem 2rem;
}

.cible-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cible-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.cible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.cible-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.cible-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cible-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cible-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.cible-card p {
    font-size: 1rem;
    color: #666;
}

/* Responsivité */
@media (max-width: 768px) {
    .cible-grid {
        grid-template-columns: 1fr;
    }

    .cible-card {
        padding: 1.5rem;
    }
}

/* Section Technologie - Disposition en grille asymétrique */
#organisation {
    background: var(--background-light);
    padding: 6rem 2rem;
}

#organisation .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

#organisation .tech-item {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

#organisation .tech-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Responsivité */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: center;
    }

    .nav-links {
        display: none;
    }


    #valeurs .values-list {
        flex-direction: column;
        align-items: center;
    }

    #cible .target-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Section Partenaires */
.partners-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.partner-logo {
    display: inline-block;
    margin: 0 40px;
    height: 90px;
    vertical-align: middle;
}

.partner-logo img {
    max-height: 100%;
    max-width: 150px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Double track pour un défilement infini */
.partners-track-content {
    display: inline-block;
}

/* Section Contact */

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

.contact-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image img {
    max-width: 100%;
    border-radius: 8px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}



/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}

.erreur {
    display: none;
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.a-propos-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #FF5722;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0078D7;
    border-radius: 3px;
}

.a-propos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.a-propos-text {
    flex: 1;
    min-width: 300px;
}

.a-propos-main-title {
    color: #FF5722;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.a-propos-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.a-propos-features {
    color: #333;
    line-height: 1.6;
    text-align: justify;
}

.a-propos-images {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.a-propos-image {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 100px;
}

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

.a-propos-image img:hover {
    transform: scale(1.05);
}

.a-propos-image:nth-child(3) {
    position: relative;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .a-propos-container {
        flex-direction: column;
    }

    .a-propos-images {
        order: -1;
        margin-bottom: 20px;
    }

    .stats-container {
        justify-content: center;
    }

    .stat-box {
        min-width: 130px;
    }
}

@media (max-width: 576px) {
    .a-propos-images {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .a-propos-image:nth-child(4) {
        display: none;
    }

    .stat-box {
        min-width: 150px;
        margin-bottom: 10px;
    }
}

.qui-sommes-nous-section {
    margin: 40px auto;
    padding: 6rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: var(--background-light);
}

.qui-sommes-nous-text {
    flex: 1;
    min-width: 300px;
}

.qui-sommes-nous-title {
    color: #FF5722;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.qui-sommes-nous-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 3px;
    background-color: #0078D7;
    border-radius: 3px;
}

.section-subtitle {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 25px 0 10px;
}

.section-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.qui-sommes-nous-images {
    display: flex;
    gap: 20px;
    width: 450px;
}

.image-container {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    height: 350px;
}

.image-top {
    margin-top: 70px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .qui-sommes-nous-section {
        padding: 4rem 2rem;
    }

    .qui-sommes-nous-images {
        width: 400px;
    }
}

@media (max-width: 900px) {
    .qui-sommes-nous-section {
        flex-direction: column;
        align-items: center;
    }

    .qui-sommes-nous-text {
        width: 100%;
    }

    .qui-sommes-nous-images {
        width: 100%;
        max-width: 600px;
        justify-content: center;
    }

    .image-container {
        max-width: 48%;
    }
}

@media (max-width: 600px) {
    .qui-sommes-nous-section {
        padding: 3rem 1.5rem;
    }

    .qui-sommes-nous-images {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .image-container {
        max-width: 100%;
        height: 300px;
    }

    .image-top {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .qui-sommes-nous-section {
        padding: 2rem 1rem;
    }

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

.footer {
    background-color: #f0f0f0;
    padding: 40px 20px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.footer-logo-highlight {
    color: #FF5722;
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.contact-icon {
    color: #FF5722;
    margin-right: 10px;
    font-size: 16px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav {
    flex: 1;
    min-width: 250px;
}

.footer-nav-title {
    color: #FF5722;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
}

.footer-menu-item {
    margin-bottom: 10px;
}

.footer-menu-link {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-menu-link:hover {
    color: #FF5722;
}

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.newsletter-title {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    background-color: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.newsletter-button {
    background-color: #FF5722;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-button:hover {
    background-color: #E64A19;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-contact,
    .footer-nav,
    .footer-newsletter {
        width: 100%;
    }
}