:root {
    --primary-color: #2c3e50;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-light: #ffffff;
    --text-dark: #333333;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0; /* Enlève les marges par défaut */
    padding: 0; /* Enlève les paddings par défaut */
    background-color: var(--light-bg);
}

/* Navbar styles */
.navbar {
    background-color: white;
    width: 100%;
}

.nav-link {
    padding: 0.5rem 0.5rem; /* Ajoute du padding autour des liens */
    color: #333; /* Couleur du texte */
    font-size: 0.80rem;
}

/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Services cards */
.service-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
    background-color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card .service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Animation pour les cartes de service et valeurs */
.service-card, .value-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.animate, .value-card.animate {
    opacity: 1;
    transform: translateY(0);
}
/* About section */


.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Value cards */
.value-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    border-top: 4px solid transparent;
}

.value-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    border-top: 4px solid var(--secondary-color);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card .value-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Gallery */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.project-image {
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-light);
    padding: 20px;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0.9;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Testimonial section */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:before {
    content: "\201C";
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 10px;
    color: rgba(0,0,0,0.1);
    font-family: serif;
}

.rating {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact form */
.contact-section {
    background-color: white;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

textarea.form-control {
    height: 150px;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 100%;
}

footer {
    background-color: var(--primary-color); /* Couleur de fond */
    color: white; /* Couleur du texte */
    padding: 20px 10px; /* Espacement interne */
    width: 100%;
}

.footer-links {
    list-style-type: none; /* Enlève les puces des éléments de la liste */
    padding-left: 0; /* Enlève l'indentation par défaut */
    margin: 0; /* Enlève les marges par défaut */
}

.footer-links li {
    margin: 0; /* Enlève les marges par défaut */
    color: var(--text-light); /* Change la couleur du texte en blanc */
}

.footer-links li a {
    color: var(--text-light); /* Change la couleur des liens en blanc */
    text-decoration: none; /* Enlève le soulignement des liens */
    transition: color 0.3s ease; /* Ajoute une transition pour le changement de couleur */
}

.footer-links li a:hover {
    color: var(--secondary-color); /* Change la couleur au survol */
}


.footer-container {
    display: flex;
    flex-direction: column; /* Par défaut, en colonne pour mobile */
    align-items: flex-start; /* Aligne les sections à gauche */
}

.footer-section {
    margin-bottom: 20px; /* Espacement entre les sections */
    width: 100%; /* Prend toute la largeur */
}

.footer-heading {
    font-size: 1.2em; /* Taille du texte */
    margin-bottom: 10px; /* Espacement sous le titre */
    background-color: #60676e;
    padding: 0.50rem;
}

.footer-contact-info, .footer-links {
    list-style: none; /* Enlève les puces */
    padding: 0; /* Enlève le padding */
}

.footer-contact-info li, .footer-links li {
    margin-bottom: 5px; /* Espacement entre les éléments de la liste */
}

.social-icons {
    margin-top: 10px; /* Espacement au-dessus des icônes sociales */
}

.copyright {
    text-align: center; /* Centre le texte copyright */
    margin-top: 20px; /* Espacement au-dessus du copyright */
}

/* Styles pour les écrans plus larges */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row; /* Passe à la disposition en ligne pour les écrans plus larges */
        justify-content: space-between; /* Espace entre les sections */
    }

    .footer-section {
        width: 30%; /* Largeur fixe pour chaque section */
        margin-bottom: 0; /* Enlève l'espacement en bas */
    }
}


.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
}


/* Carousel */
.carousel-inner {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.carousel-caption {
    background: rgba(0,0,0,0.6);
    border-radius: var(--border-radius);
    padding: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-links {
    list-style-type: none; /* Enlève les puces des éléments de la liste */
    padding-left: 0; /* Enlève l'indentation par défaut */
    margin: 0; /* Enlève les marges par défaut */
}

.legal-links li {
    margin: 0; /* Enlève les marges par défaut */
    color: var(--text-light); /* Change la couleur du texte en blanc */
}

.legal-links li a {
    color: var(--text-light); /* Change la couleur des liens en blanc */
    text-decoration: none; /* Enlève le soulignement des liens */
    transition: color 0.3s ease; /* Ajoute une transition pour le changement de couleur */
}

.legal-links li a:hover {
    color: var(--secondary-color); /* Change la couleur au survol */
}


/* Media Queries */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .contact-form {
        margin-bottom: 30px;
    }
}

.infos-legales {
    background: linear-gradient(90deg, #6a11cb, #2C3E50); /* Dégradé violet à bleu foncé */
    color: white; /* Couleur du texte */
    padding: 10px; /* Espacement autour du texte */
    border-radius: 5px; /* Coins arrondis */
}


.container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding: 2rem;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.projects-section{
    padding: 0px;
}

.cta-section {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
    border-radius: var(--border-radius);
    margin: 2rem auto; /* Utilisez 'auto' pour centrer la section sur les petits écrans */
    padding: 2rem; /* Ajoutez du padding pour espacer le contenu */
    background-color: var(--light-bg);
    animation: gradientBorder 3s ease infinite;
    max-width: 90%; /* Limitez la largeur maximale pour les petits écrans */
}

@keyframes gradientBorder {
    0% {
        border-image-source: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    }
    50% {
        border-image-source: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--secondary-color));
    }
    100% {
        border-image-source: linear-gradient(45deg, var(--secondary-color), var(--accent-color), var(--primary-color));
    }
}

/* Media Query pour les écrans plus petits */
@media (max-width: 768px) {
    .cta-section {
        margin: 1rem; /* Réduisez la marge sur les petits écrans */
        padding: 1rem; /* Réduisez le padding sur les petits écrans */
    }

    .cta-section h2 {
        font-size: 1.5rem; /* Ajustez la taille de la police du titre */
    }

    .cta-section p {
        font-size: 0.9rem; /* Ajustez la taille de la police du texte */
    }
}


.facebook-icon i {
    font-size: 48px; /* Ajustez la taille selon vos besoins */
    color: #ffffff; /* Couleur officielle de Facebook */
    transition: transform 0.3s ease, color 0.3s ease;
}

.facebook-icon:hover i {
    transform: scale(1.1); /* Agrandit légèrement l'icône au survol */
    color: #4267B2; /* Couleur au survol */
}

.box {
    flex: 1;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    margin: 1rem;
    justify-content: center
}

.box h2, .box h3 {
    margin-bottom: 10px;
    color: #333;
}
.box p {
    text-align: center;
    padding: 0;
    margin: 0;
    line-height: 2rem;
}

.credits {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
}

.box-credits {
    align-items: center;
    margin: 1rem;
}

.credits-box {
    flex: 1; /* Prend toute la hauteur disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid #3b5998;
    border-radius: 5px;
    background-color: #fff;
    padding: 0.5rem;
    margin: 0.5rem;
    width: 100%;
}

.credits-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.credits-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.facebook-button {
    display: inline-block;
    background-color: #3b5998;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.facebook-button:hover {
    background-color: #2d4373;
}

/* Style pour la rangée de crédits horizontale */
.credits-row {
    margin-top: 30px;
    margin-bottom: 30px;
}

.credits-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.credits-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.credits-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

.credits-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.credits-services {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.credits-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.credits-text {
    color: #666;
    font-size: 0.9rem;
}

.credits-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.credits-btn:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

.facebook-btn {
    background-color: #1877f2;
}

.facebook-btn:hover {
    background-color: #166fe5;
}

/* Version responsive */
@media (max-width: 768px) {
    .credits-card {
        margin-bottom: 20px;
    }
}

.visits-container {
    text-align: left;
    margin-top: 20px;
}

.visits-box {
    text-align: center;
    display: inline-block;
    padding: 0.5rem;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Ombre pour un effet flottant */
    border-radius: 5px;
    margin-top: 20px; /* Ajoutez un peu d'espace au-dessus si nécessaire */
}


.visits-display {
    font-size: 1rem;
    font-weight: bold;
}
.visits-label {
    font-size: 1rem;
}

.carousel-control-prev, 
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Ajout d'une bordure aux boutons de navigation pour les rendre plus visibles */
.carousel-control-prev:hover, 
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Style pour le carrousel */
.carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style pour les indicateurs */
.carousel-indicators {
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px;
    margin-bottom: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.login-page-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.login-form-container {
    max-width: 100%;
    width: 400px;
    margin: 0 auto;
    padding: 15px;
}

.login-card {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-bottom: none;
    padding: 20px;
    text-align: center;
}

.login-heading {
    font-weight: 600;
    margin-bottom: 0;
}

.login-card-body {
    padding: 30px;
}

.login-form-label {
    font-weight: 500;
}

.login-input {
    border-radius: 5px;
    padding: 12px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.login-btn {
    padding: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    max-height: 70px;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.login-back-link:hover {
    color: #007bff;
}

.login-error-alert {
    border-left: 4px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Animation subtile */
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    animation: loginFadeIn 0.5s ease-out;
}

@media (max-width: 576px) {
    .login-form-container {
        width: 100%;
        padding: 15px;
    }
    
    .login-card-body {
        padding: 20px;
    }
}

.dashboard-container {
    max-width: 1200px; /* Ajuste selon tes besoins */
    margin: auto; /* Centre uniquement le dashboard */
}
  

.modal-body p {
    word-wrap: break-word;
}
.modal-dialog {
    max-width: 50%;
}
.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: whitesmoke;
    color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.admin-card {
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}
.admin-stats-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 10px;
}
.admin-stats-primary { background: #007bff; color: white; }
.admin-stats-success { background: #28a745; color: white; }
.admin-button {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}
.admin-button-primary { background: #007bff; color: white; }
.admin-button-info { background: #17a2b8; color: white; }
