/* Style général */
body {
    font-family: 'Poppins', sans-serif;
}

/* Hero section — pages internes gérées par modern-style.css (.page-banner) */
.hero-section:not(.page-banner):not(.hero-home) {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

/* Animation texte */
.carousel-item.active h1 {
    animation: slideInLeft 1s ease-out;
}

.carousel-item.active .lead {
    animation: slideInLeft 1.2s ease-out;
}

.carousel-item.active .btn {
    animation: slideInLeft 1.4s ease-out;
}

/* Service cards */
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(40,167,69,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(40, 167, 69, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #28a745;
    opacity: 1;
    transform: scale(1.2);
}

/* Team section */
.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Blog cards */
.blog-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

/* Contact section */
.contact-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

/* Top Bar */
.top-bar {
    font-size: 0.9rem;
}

.social-links a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #28a745;
    transform: translateY(-3px);
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.stats-box {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* About Section */
.about-image {
    border-radius: 10px;
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #28a745, #20c997);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

/* Why Choose Us Section */
.feature-box {
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(40,167,69,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Statistics Section */
.stat-box {
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.testimonial-text {
    font-style: italic;
    color: #666;
}

.client-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Amélioration de la visibilité du texte */
.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-section .text-success {
    text-shadow: none; /* Retirer le text-shadow pour le texte en vert */
}

/* Animation du logo */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Service Detail Page */
.service-banner {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.advantage-card {
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.features-list .feature-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.features-list .feature-item:hover {
    background: #e9ecef;
    transform: translateX(10px);
}

/* Team Page Styles */
.team-banner {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
                url('../images/team/team-banner.jpg') center/cover;
    padding: 100px 0;
    color: white;
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.team-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    border-color: #28a745;
}

.specialites .badge {
    transition: all 0.3s ease;
}

.specialites .badge:hover {
    background-color: #28a745 !important;
    color: white !important;
}

.benefit-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.benefit-card i {
    transition: all 0.3s ease;
}

.benefit-card:hover i {
    transform: scale(1.2);
}

/* Animation pour les cartes d'équipe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.team-card:nth-child(2) {
    animation-delay: 0.2s;
}

.team-card:nth-child(3) {
    animation-delay: 0.4s;
}

.team-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Style pour les liens sociaux */
.social-links .btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-3px);
}

/* Blog Styles */
.blog-banner {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
                url('../images/blog/blog-banner.jpg') center/cover;
    padding: 100px 0;
    color: white;
}

.blog-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
}

.blog-card .badge {
    padding: 8px 12px;
    font-weight: 500;
}

/* Contact Styles */
.contact-banner {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
                url('../images/contact-banner.jpg') center/cover;
    padding: 100px 0;
    color: white;
}

.contact-info {
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.1);
}

.contact-form {
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animation pour les cartes de blog */
.blog-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animation pour le formulaire de contact */
.contact-info, .contact-form {
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-form {
    animation-delay: 0.2s;
}

/* Services Page Styles */
.services-banner {
    background: linear-gradient(rgba(40, 167, 69, 0.9), rgba(40, 167, 69, 0.9)),
                url('../images/services/services-banner.jpg') center/cover;
    padding: 100px 0;
    color: white;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-image {
    position: relative;
    overflow: hidden;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-image::after {
    opacity: 1;
}

.features-list .feature-item {
    transition: all 0.3s ease;
}

.features-list .feature-item:hover {
    transform: translateX(10px);
}

/* Animation pour les cartes de service */
.service-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Blog Article Styles */
.article-banner {
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-content h2, 
.article-content h3 {
    margin: 2rem 0 1rem;
}

.article-content blockquote {
    border-left: 4px solid #28a745;
    padding-left: 1rem;
    margin: 2rem 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.share-buttons .btn {
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-3px);
}