:root {
    --primary-color: #f8a31a;
    --secondary-color: #ff7b7b;
    --accent-color: #f39c12;
    --ai-blue: #16a6ce;
    --ai-green: #f39c12;
    --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;
}

.menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    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;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.carousel-inner {
    height: 100vh;
}

.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%;
    }
}

/* Section Présentation - Disposition en colonnes */
#presentation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#presentation .content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#presentation .content img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

/* Section Équipe - Organigramme */
#equipe {
    background: var(--background-light);
    padding: 6rem 2rem;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.org-node {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
}

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

.org-node img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.org-node h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.org-node p {
    font-size: 0.9rem;
    color: #666;
}

.org-node::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--accent-color);
}

.org-level:not(:first-child) .org-node::before {
    display: block;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.org-node {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsivité */
@media (max-width: 768px) {
    .org-level {
        flex-direction: column;
        align-items: center;
    }

    .org-node {
        width: 80%;
    }
}

/* 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 Services */
#services {
    background: var(--background-light);
    padding: 6rem 2rem;
}

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

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

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

.service-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-category h3 i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.service-category ul {
    list-style: none;
    padding: 0;
}

.service-category ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-category ul li i {
    font-size: 0.8rem;
    color: var(--accent-color);
}

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

    .service-category {
        padding: 1.5rem;
    }
}

/* 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 */
#technologie {
    background: var(--background-light);
    padding: 6rem 2rem;
}

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

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

#technologie .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;
    }

    #presentation .content {
        grid-template-columns: 1fr;
    }

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

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

/* Footer */
footer {
    background: var(--accent-color);
    color: white;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section .social-icons {
    display: flex;
    gap: 1rem;
}

.footer-section .social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-section .social-icons a:hover {
    color: var(--ai-green);
}

.footer-section .newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-section .newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    outline: none;
}

.footer-section .newsletter-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    /* transition: background 0.3s ease; */
}

.footer-section .newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

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

    .footer-section .newsletter-form {
        flex-direction: column;
    }

    .footer-section .newsletter-form button {
        width: 100%;
    }
}

/* 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;
}