:root {
    --primary: #151f28;
    --secondary: #f57c00;
    --light: #ffffff;
    --dark: #000000;
    --gray: #f5f5f5;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    padding: 15px 0;
    padding-bottom: 5px;
    background-color: rgba(21, 31, 40, 0.95);
}

.navbar .container {
    padding-bottom: 1px;
}


/* .navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
} */


/* Style pour le logo N à deux couleurs */

.navbar-brand {
    position: relative;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
}

.logo_test {
    position: relative;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
}

.logo_test span {
    display: inline-block;
}

.n-right-branch {
    position: absolute;
    left: 0;
    top: 0;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e06900;
    border-color: #e06900;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 124, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 124, 0, 0.2);
}

.hero {
    background-color: var(--primary);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    right: -200px;
    top: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(245, 124, 0, 0.1);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 25%;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
}

.values-section {
    background-color: var(--gray);
}

.value-card {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.value-card .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.value-card:hover .icon {
    background: var(--secondary);
    transform: rotateY(180deg);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    margin-bottom: 30px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-info {
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(21, 31, 40, 0.9);
    transition: all 0.3s ease;
}

.project-card:hover .project-info {
    bottom: 0;
}

.project-card:hover img {
    transform: scale(1.05);
    opacity: 0.5;
}

.project-info h4 {
    color: white;
    margin-bottom: 10px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.btn-learn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-learn:hover {
    background: white;
    color: var(--secondary);
}

.testimonial-section {
    background: linear-gradient(to right, var(--primary), #1c2b3a);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.testimonial-card .quote {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-card .client {
    display: flex;
    align-items: center;
}

.testimonial-card .client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-card .client-info h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-card .client-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.cta-section {
    padding: 80px 0;
    background: var(--secondary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.cta-btn {
    background: white;
    color: var(--secondary);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}


/* .footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
} */


/* Style pour le logo N dans le footer */

.footer-logo {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1;
    overflow: hidden;
}

.footer-logo span:first-child {
    color: var(--primary);
}

.footer-logo span:last-child {
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 0;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}


/* Animations */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Innovative Navbar */

.navbar-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    display: none;
}


/* Interactive elements */

.interactive-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 0;
    height: 0;
    background: rgba(245, 124, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.interactive-card:hover::before {
    width: 300%;
    height: 300%;
}


/* Floating elements */

.floating-element {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* Scroll progress indicator */

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 4px;
    background: var(--secondary);
    width: 0%;
}


/* Back to top button */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.2rem;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive styles */

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(21, 31, 40, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
    .nav-link {
        padding: 10px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .navbar-brand img {
        width: 50px;
        height: 50px;
    }
}


/* CSS pour corriger le décalage horizontal sur petits écrans */

@media (max-width: 767px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    .col,
    .col-1,
    .col-10,
    .col-11,
    .col-12,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-6,
    .col-7,
    .col-8,
    .col-9,
    .col-auto,
    .col-lg,
    .col-lg-1,
    .col-lg-10,
    .col-lg-11,
    .col-lg-12,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-auto,
    .col-md,
    .col-md-1,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-auto,
    .col-sm,
    .col-sm-1,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-auto,
    .col-xl,
    .col-xl-1,
    .col-xl-10,
    .col-xl-11,
    .col-xl-12,
    .col-xl-2,
    .col-xl-3,
    .col-xl-4,
    .col-xl-5,
    .col-xl-6,
    .col-xl-7,
    .col-xl-8,
    .col-xl-9,
    .col-xl-auto {
        padding-right: 15px;
        padding-left: 15px;
    }
    .navbar-collapse {
        max-width: 100%;
    }
    section {
        width: 100%;
        overflow-x: hidden;
    }
    /* Ajustements spécifiques pour les sections */
    .hero:before {
        right: -100px;
        top: -100px;
        width: 300px;
        height: 300px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .floating-element img {
        max-width: 100%;
        height: auto;
    }
    /* Fix position des éléments absolus */
    .position-absolute {
        max-width: 30%;
        max-height: 30%;
    }
    /* Ajustement du formulaire de contact */
    .form-control,
    .input-group {
        width: 100%;
    }
}


/* Ajustements pour les très petits écrans */

@media (max-width: 576px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .service-card,
    .testimonial-card,
    .footer-links {
        padding: 20px 15px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        line-height: 40px;
        right: 15px;
        bottom: 15px;
    }
}