/* Couleur principale */
:root {
    --primary-color: #3E65AC;
    --secondary-color: #f9f9f9;
    --active-color: #f1c40f;
    --text-color: #555;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Corps du document */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Empêche les débordements horizontaux */
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche les débordements horizontaux */
}

.container, .container-fluid {
    max-width: 100%; /* Empêche tout dépassement des containers Bootstrap */
    overflow: hidden;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px; /* Hauteur de la barre */
    background-color: var(--active-color); /* Couleur de la barre */
    width: 0%; /* La largeur initiale est 0 */
    z-index: 2000; /* Place au-dessus des autres éléments */
    transition: width 0.1s ease-out;
}

/* Header Styling */
.header {
    background-color: var(--primary-color);
    padding: 0 40px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand img {
    height: 60px;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Icône Chevron */
.nav-link i {
    font-size: 0.8rem; /* Taille de l'icône */
    color: var(--active-color); /* Couleur des icônes */
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover i {
    transform: translateY(-2px); /* Légère animation au survol */
    color: #fff; /* Changement de couleur au survol */
}

/* Espacement du texte et des icônes */
.nav-link {
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f1c40f;
}

.nav-link.active {
    color: #f1c40f !important; /* Couleur pour le lien actif */
    font-weight: bold;
    text-decoration: underline;
}


.navbar-toggler {
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.collapse.show {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Hero */
.hero {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 60px 20px;
    max-width: 100vw; /* Limite à la largeur de la fenêtre */
    box-sizing: border-box;
    overflow: hidden; /* Empêche tout débordement interne */
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
}

.hero-logo {
    height: 100px;
    margin-bottom: 20px;
}

.btn-success {
    background-color: #1DA851;
    border: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background 0.3s;
}

.btn-success:hover {
    background-color: #1DA851;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: #fff;
    padding: 20px 0;
}

/* Section Fonctionnalités */
.features {
    background-color: var(--secondary-color);
    padding: 60px 20px;
}

.features h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
}

.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem;
    color: var(--text-color);
}

/* Section Cas d'utilisation */
.use-cases {
    background-color: var(--secondary-color);
    padding: 60px 20px;
}

.use-cases h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.use-cases p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.use-cases .card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.use-cases .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.use-cases .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.use-cases .card-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Section Solutions */
.solutions h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: bold;
}

.solutions p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.solutions .card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    padding: 20px;
}

.solutions .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.solutions .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.solutions .card-text {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.solutions .list-unstyled li {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.solutions .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s;
}

.solutions .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Section About */
.about {
    padding: 60px 20px;
    max-width: 100%; /* Limite la largeur */
}

.about h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Section Screenshots */
.screenshots {
    background-color: var(--secondary-color);
    padding: 60px 20px;
    max-width: 100%;
}

.screenshots img {
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.screenshots img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Lightbox Animation */
#lightbox img {
    animation: zoomIn 0.3s ease-in-out;
}

#lightbox button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
}

.footer a {
    color: var(--active-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

/* Media Queries */

img {
    max-width: 100%; /* Limite la taille des images à la largeur de leur conteneur */
    height: auto;
}

section {
    box-sizing: border-box; /* Inclut les paddings et marges dans les dimensions */
    max-width: 100%; /* Empêche les sections de dépasser la largeur */
    overflow: hidden;
}
.animate__animated {
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

/* Lazy Loading */
.lazyload {
    background-color: #f3f3f3; /* Couleur de fond pendant le chargement */
    min-height: 200px; /* Hauteur par défaut pour éviter le saut de contenu */
    display: block;
}
.lazyloading {
    filter: blur(10px); /* Effet de flou pendant le chargement */
    transition: filter 0.3s;
}
.lazyloaded {
    filter: none; /* Image nette une fois chargée */
}

/* Bouton Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--active-color);
    color: var(--primary-color);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Section Contact */
.contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact .btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact .btn-success {
    background-color: #25D366;
    border: none;
    color: #fff;
}

.contact .btn-success:hover {
    transform: translateY(-5px);
    background-color: #1DA851;
}

.contact .btn-light {
    background-color: #fff;
    border: 2px solid #fff;
    color: var(--primary-color);
}

.contact .btn-light:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: #fff;
}

/* Animation de fond */
.contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 6s infinite ease-in-out;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 8s infinite ease-in-out;
}

/* Animation de pulsation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


