:root {
    --primary-color: #035162f1; /* Bleu foncé/vert océan */
    --secondary-color: #1b2a47a9; /* Bleu très foncé/gris marine */
    --accent-color: #4BB543; /* Vert éclatant pour l'accentuation/succès */
    --light-color: #f8f9fa; /* Arrière-plan clair */
    --dark-color: #212529; /* Presque noir pour le texte */
    --success-color: #4bb543; /* Vert pour les succès/actions */
    --warning-color: #ffc107; /* Jaune pour avertissements */
    --danger-color: #dc3545; /* Rouge pour erreurs */
    --info-color: #17a2b8; /* Bleu clair pour infos */
    --border-radius: 0.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--success-color); /* Utilisation de secondary-color pour les titres */
    font-weight: 700;
}

.hero-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Dégradé avec les nouvelles couleurs */
    overflow: hidden;
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    color: var(--light-color); /* Texte clair sur fond sombre */
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
    opacity: 0.7;
}

.navbar {
    background-color: var(--primary-color) !important;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background-color: var(--secondary-color) !important; /* Couleur au scroll */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    color: var(--light-color) !important; /* Couleur claire pour la marque */
}

.navbar.scrolled .navbar-brand {
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--light-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color); /* Accent sur le soulignement */
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2rem);
}

.btn-primary {
    background-color: var(--accent-color); /* Bouton principal avec couleur accent */
    border-color: var(--accent-color);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(75, 181, 67, 0.3); /* Ombre de la couleur accent */
    color: white;
}

.btn-primary:hover {
    background-color: #3e9a37; /* Teinte plus foncée de l'accent */
    border-color: #3e9a37;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(75, 181, 67, 0.4);
}

.btn-outline-light {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    color: var(--light-color); /* Texte clair pour l'outline */
    border-color: var(--light-color);
}

.btn-outline-light:hover {
    background-color: var(--light-color);
    color: var(--primary-color) !important; /* Au survol, texte primary-color */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.2);
}

.carousel-item {
    height: 550px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.5); /* Plus sombre pour le texte */
}

.carousel-caption {
    background-color: rgba(0,0,0,0.55);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-width: 70%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--light-color);
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.3s;
}

.service-card, .testimonial-card, .feature-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    background-color: var(--light-color);
    height: 100%;
}

.service-card:hover, .testimonial-card:hover, .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-card .card-body, .testimonial-card .card-body, .feature-card .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card i, .feature-card i {
    color: var(--primary-color); /* Icônes des cartes avec primary-color */
    margin-bottom: 1rem;
    font-size: 3.5rem;
    transition: color 0.3s ease;
}

.service-card:hover i, .feature-card:hover i {
    color: var(--accent-color); /* Au survol, icônes avec accent-color */
}

.testimonial-card {
    background-color: var(--light-color); /* Testimonial card reste clair */
}

.testimonial-card img {
    border: 3px solid var(--accent-color); /* Bordure de la couleur accent */
    object-fit: cover;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0,0,0,0.1);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color); /* Barre de progression avec accent-color */
    width: 0%;
    transition: width 0.1s ease;
}

/* Contact Section Specific Styles */
.contact-info-card, .contact-form-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 2rem;
    height: 100%;
    background-color: var(--light-color);
}

.contact-info-card ul li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info-card ul li i {
    color: var(--primary-color); /* Icônes de contact avec primary-color */
}

.contact-info-card .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--secondary-color); /* Boutons Google Play/App Store */
    border-color: var(--secondary-color);
    color: white;
}

.contact-info-card .btn:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.contact-form-card .form-control {
    border-radius: 0.3rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(3, 81, 98, 0.25); /* Ombre focus avec primary-color */
}

/* Footer */
footer {
    background-color: var(--secondary-color) !important; /* Footer avec secondary-color */
    padding: 3rem 0;
    color: var(--light-color);
}

footer h5 {
    color: var(--light-color);
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-color);
}

footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    .carousel-caption {
        bottom: 20px;
        padding: 1rem;
    }
    .hero-bg {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .hero-bg::before {
        display: none;
    }
    .navbar-brand {
        font-size: 1.4rem;
    }
    .nav-link {
        text-align: center;
    }
    .btn-primary, .btn-outline-light {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    .service-card, .testimonial-card, .feature-card {
        margin-bottom: 1.5rem;
    }
}
