:root {
    --cameroon-green: #005e2f;  /* Darker authentic green */
    --cameroon-red: #ce1126;
    --cameroon-yellow: #fcd116;
    --bg-dark: #121212;
    --text-light: #f5f5f5;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 3px solid var(--cameroon-green);
}

.navbar-toggler {
    border-color: var(--cameroon-yellow);
}

@media (max-width: 991px) {
    .navbar-toggler i {
        color: var(--cameroon-red) !important;
    }
    .navbar-toggler {
        border-color: var(--cameroon-red);
    }
}

.navbar-brand {
    color: var(--cameroon-yellow) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-right: 10px;
    filter: brightness(1.2);
}

.nav-link {
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/static/img/bckgrnd.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

/* Pricing Cards */
.price-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--cameroon-green);
    border-right: 4px solid var(--cameroon-red);
    border-top: 1px solid var(--cameroon-yellow);
    border-bottom: 1px solid var(--cameroon-yellow);
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.col-md-12 .price-card {
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .col-md-12 .price-card {
        text-align: center;
    }

    .col-md-12 .price-card ul.list-unstyled {
        display: inline-block;
        text-align: center;
    }
}

.price-card:hover {
    transform: translateY(-5px);
}

/* Price Card Link Styles */
.price-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.price-card-link:hover {
    text-decoration: none;
    color: inherit;
}


/* Gallery Styles */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-grid img {
    width: calc(33.333% - 0.67rem);  /* 3 images par ligne avec gap */
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-img {
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: 100%;
    height: 300px;
    object-fit: cover; /* Rogne l'image plutôt que de la déformer */
    object-position: center;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Gallery Carousel Styles */
.carousel {
    margin-bottom: 2rem;
}

.carousel-item-double {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.carousel-item-double img {
    width: calc(50% - 0.5rem);
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carousel-item-double img:hover {
    transform: scale(1.05);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: 40vh;
        padding-top: 120px; /* Augmentation du padding-top pour mobile */
    }

    .price-card {
        margin-bottom: 1rem;
    }
    section {
        padding-top: 100px; /* Augmentation du padding-top pour mobile */
    }
    .carousel-item-double img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-rdv-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .carousel-item-double img {
        height: 200px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }
    section {
        padding-top: 80px; /* Ajustement pour les très petits écrans */
    }
}

/* Contact Buttons */
.contact-btn {
    background-color: var(--cameroon-green);
    color: var(--text-light);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--cameroon-yellow);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Reviews */
.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--cameroon-yellow);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section Styling */
section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--bg-dark);
    border-bottom: 3px solid var(--cameroon-yellow);
}

section:nth-child(odd) {
    border-bottom: 3px solid var(--cameroon-green);
}

section:nth-child(3n) {
    border-bottom: 3px solid var(--cameroon-red);
}

/* Additional Cameroon-inspired decorative elements */
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--cameroon-green) 33%, 
        var(--cameroon-red) 33%, 
        var(--cameroon-red) 66%, 
        var(--cameroon-yellow) 66%
    );
}

/* Enhanced section transitions */
section {
    transition: transform 0.5s ease-out;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

footer {
    position: relative;
    background-color: var(--bg-dark);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--cameroon-green) 33%, 
        var(--cameroon-red) 33%, 
        var(--cameroon-red) 66%, 
        var(--cameroon-yellow) 66%
    );
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--cameroon-yellow) !important;
    transform: translateY(-3px);
    display: inline-block;
}

/* Simulator Styles */
.simulator-form {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--cameroon-green);
    border-right: 4px solid var(--cameroon-red);
}

.price-summary {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--cameroon-yellow);
    border-right: 4px solid var(--cameroon-red);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--cameroon-yellow);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--cameroon-green);
    box-shadow: 0 0 0 0.25rem rgba(0, 94, 47, 0.25);
    color: var(--text-light);
}

.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.form-label {
    color: var(--cameroon-yellow);
    font-weight: 600;
}

#selectedServices {
    min-height: 150px;
}

.selected-service {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--cameroon-green);
}

.total-price {
    border-top: 2px solid var(--cameroon-yellow);
    padding-top: 20px;
}

#confirmButton {
    background-color: var(--cameroon-green);
    border: none;
    transition: all 0.3s ease;
}

#confirmButton:hover {
    background-color: var(--cameroon-yellow);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Modal Calendly Styles */
.modal-content {
    background-color: var(--bg-dark) !important;
    border: 1px solid var(--cameroon-green);
}

.modal-header {
    border-bottom: 1px solid var(--cameroon-green);
}

.modal-title {
    color: var(--cameroon-yellow);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* Responsive adjustments for Calendly widget */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .calendly-inline-widget {
        height: 600px;
    }
}

@media (max-width: 576px) {
    .calendly-inline-widget {
        height: 500px;
    }
}

/* RDV Buttons Styles */
.rdv-btn-desktop {
    background-color: var(--cameroon-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rdv-btn-desktop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--cameroon-yellow);
    color: var(--bg-dark);
}

.rdv-btn-mobile {
    background-color: var(--cameroon-green);
    border: none;
    color: white;
    padding: 8px 20px;
    width: auto;
    border-radius: 25px;
    margin: 10px 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.rdv-btn-mobile:hover {
    background-color: var(--cameroon-yellow);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Hero RDV Button */
.hero-rdv-btn {
    background-color: var(--cameroon-green);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-rdv-btn:hover {
    background-color: var(--cameroon-yellow);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Reviews Section Styles */
.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--cameroon-yellow);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

/* Mobile Carousel Styles for Reviews */
@media (max-width: 768px) {
    #reviewsCarousel .carousel-control-prev,
    #reviewsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

    #reviewsCarousel .carousel-control-prev {
        left: -20px;
    }

    #reviewsCarousel .carousel-control-next {
        right: -20px;
    }

    #reviewsCarousel .review-card {
        margin: 1rem 2rem;
    }
}