/********** Template CSS Moderne et Professionnel **********/
:root {
    --primary: #0066cc;
    --secondary: #1a1a2e;
    --accent: #00d4ff;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --gray: #6c757d;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Justification de tous les textes */
p, h1, h2, h3, h4, h5, h6, li, span, a {
    text-align: justify;
}

/* Exceptions pour les titres et éléments spécifiques */
.navbar-brand, .btn, .badge, .label, .tag {
    text-align: left !important;
}

/* Éléments centrés */
.text-center, .text-lg-center {
    text-align: center !important;
}

.btn {
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

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

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.container-fluid {
    transition: all 0.3s ease;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h5 {
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title h1 {
    color: var(--dark);
    font-weight: 800;
    margin-top: 15px;
}

/* Card Styling */
.bg-light {
    background-color: var(--light) !important;
    border-radius: 12px;
}

.rounded {
    border-radius: 12px;
}

/* Footer Enhancement */
.bg-dark {
    background-color: var(--secondary) !important;
}

.hero-header {
    /* gradient overlay plus background image */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)),
                url("../img/bg.jpg") center center no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-header::before {
    content: "\f5fc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20rem;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hero-header .container {
    position: relative;
    z-index: 2;
}

.hero-header h1 {
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out;
}

.hero-header p {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 600px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-header .btn {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.service-item {
    position: relative;
    height: auto;
    min-height: 350px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.service-item .service-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    transform: rotate(0deg);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.service-item .service-icon i {
    transform: rotate(0deg);
    color: #fff;
    font-size: 2.5rem;
}

.service-item h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.service-item p {
    color: var(--gray);
    line-height: 1.8;
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
