:root {
    --primary-color: #0B2A4A;    /* Bleu foncé du logo */
    --secondary-color: #00A7E1;  /* Bleu clair du logo */
    --accent-color: #FF6B00;     /* Orange du logo */
    --text-color: #333333;
    --light-bg: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.navbar {
    background-color: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;  /* Ajustez cette valeur selon vos besoins */
    width: auto;
    max-width: 200px;  /* Ajustez cette valeur selon vos besoins */
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh; /* Réduit de 100vh à 90vh */
    overflow: hidden;
    z-index: -1;
}

.hero {
    position: relative;
    height: 90vh; /* Ajusté pour correspondre à la vidéo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.video-background video {
    min-width: 95%; /* Légèrement réduit de 100% */
    min-height: 95%; /* Légèrement réduit de 100% */
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1); /* Scale réduit de 1.2 à 1.1 */
    object-fit: cover;
    filter: brightness(0.8);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Espace pour la navbar */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Ajout d'un style pour le bouton CTA */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: var(--secondary-color);
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 42, 74, 0.7); /* Utilisation de la couleur primaire avec transparence */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
}

.hero {
    position: relative;
    overflow: hidden;
}

.services {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Services Section */
/* Amélioration des animations */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

/* Amélioration du responsive */
/* Base styles for mobile first approach */
:root {
    --header-height: 70px;
}

/* Tablet and larger */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }
}

/* Mobile devices */
@media screen and (max-width: 767px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
    }
}

/* Large desktop screens */
@media screen and (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        max-width: 1000px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover,
    .feature:hover,
    .info-item:hover {
        transform: none;
    }
}

/* Ensure minimum touch target size */
button,
.nav-links li a,
.cta-button,
input,
select,
textarea {
    min-height: 44px;
    min-width: 44px;
    padding: 0.8rem;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px 0 0 4px;
}

.feature h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
}

.feature p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 3rem;
}

.contact-info {
    padding-right: 2rem;
    border-right: 1px solid #eee;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.info-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-content a,
.info-content p {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(0, 167, 225, 0.1);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
    }

    .form-group {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Menu mobile */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background: var(--light-bg);
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-color);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

.client-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.radio-container:hover {
    background-color: rgba(0, 167, 225, 0.05);
}

.radio-container input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0;
    position: relative;
}

.radio-container input[type="radio"]:checked {
    background-color: var(--secondary-color);
}

.radio-container input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.radio-label {
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
}

.radio-container.active {
    background-color: var(--secondary-color);
}

.radio-container.active .radio-label {
    color: white;
}

.enterprise-fields {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Responsive adjustments for the form */
@media screen and (max-width: 768px) {
    .client-type {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-container {
        justify-content: center;
    }

    .enterprise-fields {
        padding: 0.8rem;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    width: 300px;
    padding: 15px 20px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: right 0.3s ease;
    z-index: 1100;
}

.notification.show {
    right: 20px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

/* Animations sophistiquées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Application des animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.service-card {
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.feature {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

/* Animation du menu */
.nav-links li a {
    position: relative;
    overflow: hidden;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Animation des cartes au survol */
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Animation du formulaire */
.contact-form input,
.contact-form textarea {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 167, 225, 0.1);
}

/* Animation du bouton submit */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.6s ease;
}

.submit-btn:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* Animation des info-items */
.info-item {
    transition: transform 0.4s ease, background-color 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    background: var(--light-bg);
}

/* Animation du scroll */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Animation de la navbar au scroll */
.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(11, 42, 74, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Animation des testimonials */
.testimonial-card {
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.3s; }
.testimonial-card:nth-child(2) { animation-delay: 0.5s; }
.testimonial-card:nth-child(3) { animation-delay: 0.7s; }

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content i {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-color);
    font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

.client-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.radio-container:hover {
    background-color: rgba(0, 167, 225, 0.05);
}

.radio-container input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0;
    position: relative;
}

.radio-container input[type="radio"]:checked {
    background-color: var(--secondary-color);
}

.radio-container input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
}

.radio-label {
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
}

.radio-container.active {
    background-color: var(--secondary-color);
}

.radio-container.active .radio-label {
    color: white;
}

.enterprise-fields {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Responsive adjustments for the form */
@media screen and (max-width: 768px) {
    .client-type {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-container {
        justify-content: center;
    }

    .enterprise-fields {
        padding: 0.8rem;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    width: 300px;
    padding: 15px 20px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: right 0.3s ease;
    z-index: 1100;
}

.notification.show {
    right: 20px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification i {
    font-size: 1.2rem;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

/* Amélioration du bouton submit */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}