/**
 * ITELMAC - Styles personnalisés
 * Couleur principale: #003377
 */

:root {
    --primary-color: #003377;
    --primary-dark: #002255;
    --primary-light: #0044aa;
    --secondary-color: #00aaff;
}

/* Couleurs principales */
.bg-primary,
.btn-style-one,
.btn-style-two:hover,
.theme-btn,
.page-title,
.sec-title h2:before,
.feature-block:hover .inner-box,
.service-block-two:hover .inner-box,
.project-block:hover .image:before,
.news-block:hover .inner-box,
.main-footer,
.scroll-to-top {
    background-color: var(--primary-color) !important;
}

/* Navigation - Current page avec background transparent */
.main-header .main-menu .navigation > li.current > a,
.main-header .main-menu .navigation > li:hover > a {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Texte couleur principale */
.text-primary,
a:hover,
.service-block-two .inner-box .icon,
.feature-block .inner-box .icon,
.sec-title .title,
.list-style-one li:before {
    color: var(--primary-color) !important;
}

/* Bordures */
.border-primary,
.btn-style-one:hover,
.btn-style-two {
    border-color: var(--primary-color) !important;
}

/* Boutons */
.btn-primary,
.btn-style-one {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover,
.btn-style-one:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

/* Navigation */
.main-header .main-menu .navigation > li > a:hover,
.main-header .main-menu .navigation > li.current > a {
    color: var(--primary-color);
}

.main-header .main-menu .navigation > li > ul > li > a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Services */
.service-block .inner-box:hover {
    border-color: var(--primary-color);
}

.service-block .inner-box .icon {
    color: var(--primary-color);
}

/* Projets */
.project-block .inner-box .overlay {
    background-color: rgba(0, 51, 119, 0.9);
}

/* Actualités */
.news-block .inner-box .lower-content .post-meta li a:hover {
    color: var(--primary-color);
}

/* Formulaires */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 119, 0.25);
}

/* Links */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--primary-color);
}

/* Footer */
.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: var(--primary-color);
}

.admin-sidebar .nav-link:hover {
    background-color: var(--primary-dark);
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-dark);
}

/* Overlay */
.overlay-primary {
    background-color: rgba(0, 51, 119, 0.8);
}

/* Sections */
.section-bg {
    background-color: #f8f9fa;
}

/* Icons */
.icon-primary {
    color: var(--primary-color);
}

/* Badges */
.badge-primary {
    background-color: var(--primary-color);
}

/* Alerts */
.alert-primary {
    background-color: rgba(0, 51, 119, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(0, 51, 119, 0.05);
}

/* Cards */
.card-primary {
    border-color: var(--primary-color);
}

.card-primary .card-header {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Loading spinner */
.spinner-border-primary {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .main-header .main-menu .navigation > li > a {
        color: var(--primary-color);
    }
}

/* Page Contact - Styles additionnels */
.contact-details {
    padding: 100px 0;
}

.contact-details .sec-title {
    margin-bottom: 30px;
}

.contact-details .sub-title {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.contact-details__right {
    padding-left: 30px;
}

.contact-details__info {
    margin-top: 40px;
}

.contact-details__info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.contact-details__info li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-details__info .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-details__info .icon.bg-theme-color2 {
    background-color: var(--primary-color);
    color: #ffffff;
}

.contact-details__info li:hover .icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.contact-details__info .text h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a1a;
}

.contact-details__info .text a {
    color: #666666;
    transition: all 0.3s ease;
}

.contact-details__info .text a:hover {
    color: var(--primary-color);
}

.contact-details__info .text span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Map Section */
.map-section {
    position: relative;
    margin-bottom: 0;
}

.map-section .map {
    width: 100%;
    height: 500px;
    border: none;
}

/* Form validation messages */
.contact-details .alert {
    margin-bottom: 30px;
}

.contact-details label.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Form styles */
.contact-details .form-control {
    padding: 15px 20px;
    height: auto;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-details .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 119, 0.1);
}

.contact-details textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-details__right {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .map-section .map {
        height: 400px;
    }
}

@media (max-width: 575px) {
    .contact-details {
        padding: 60px 0;
    }
    
    .contact-details__info .icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-right: 15px;
    }
    
    .map-section .map {
        height: 300px;
    }
}

/* Page Services - Service Block Four */
.services-section-four {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.services-section-four.bg-silver-light {
    background-color: #f8f9fa;
}

.service-block-four {
    margin-bottom: 30px;
}

.service-block-four .inner-box {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-block-four .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-block-four .image-box {
    position: relative;
    overflow: hidden;
}

.service-block-four .image-box .image {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.service-block-four .image-box .image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-block-four .inner-box:hover .image-box .image img {
    transform: scale(1.1);
}

.service-block-four .content-box {
    position: relative;
    padding: 30px 25px;
    text-align: center;
}

.service-block-four .content-box .icon {
    position: relative;
    display: inline-block;
    font-size: 60px;
    line-height: 1em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-block-four .inner-box:hover .content-box .icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.service-block-four .content-box .title {
    position: relative;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-block-four .content-box .title a {
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.service-block-four .content-box .title a:hover {
    color: var(--primary-color);
}

.service-block-four .content-box .text {
    position: relative;
    font-size: 15px;
    line-height: 1.8em;
    color: #666666;
    margin: 0;
}

/* Responsive pour Services */
@media (max-width: 991px) {
    .services-section-four {
        padding: 70px 0;
    }
    
    .service-block-four {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .services-section-four {
        padding: 60px 0;
    }
    
    .service-block-four .content-box {
        padding: 25px 20px;
    }
    
    .service-block-four .content-box .icon {
        font-size: 50px;
    }
    
    .service-block-four .content-box .title {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .service-block-four .image-box .image img {
        height: 180px;
    }
    
    .service-block-four .content-box .icon {
        font-size: 45px;
        margin-bottom: 15px;
    }
}

/* Page About - About Section */
.about-section {
    position: relative;
    padding: 100px 0 70px;
}

.about-section .content-column {
    position: relative;
    margin-bottom: 30px;
}

.about-section .content-column .inner-column {
    position: relative;
    padding-right: 30px;
}

.about-section .sec-title .sub-title {
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 1.2em;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.about-section .list-style-two {
    position: relative;
    margin-top: 30px;
}

.about-section .list-style-two li {
    position: relative;
    font-size: 16px;
    line-height: 30px;
    color: #666666;
    font-weight: 400;
    padding-left: 35px;
    margin-bottom: 15px;
}

.about-section .list-style-two li i {
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 20px;
    color: var(--primary-color);
}

.about-section .other-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 20px;
}

.about-section .info-box {
    position: relative;
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.about-section .info-box .icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-right: 20px;
}

.about-section .info-box .title {
    display: block;
    font-size: 14px;
    color: #666666;
    margin-bottom: 5px;
}

.about-section .info-box .info-text {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.about-section .founded-year {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
}

.about-section .founded-year .icon {
    font-size: 40px;
    margin-right: 15px;
}

.about-section .founded-year .title {
    font-size: 18px;
    line-height: 1.3em;
    font-weight: 700;
    margin: 0;
}

.about-section .image-column {
    position: relative;
    margin-bottom: 30px;
}

.about-section .image-box {
    position: relative;
}

.about-section .image-box .image {
    position: relative;
    margin: 0;
}

.about-section .image-box .image img {
    width: 100%;
    border-radius: 10px;
}

/* Clients Section */
.clients-section {
    position: relative;
    padding: 60px 0;
}

.clients-section .divider {
    margin-bottom: 50px;
    border-color: #e0e0e0;
}

.clients-section .clients-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.clients-section .client-block {
    position: relative;
    display: inline-block;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.clients-section .client-block:hover {
    opacity: 1;
}

.clients-section .client-block img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.clients-section .client-block:hover img {
    filter: grayscale(0%);
}

/* Why Choose Us Two */
.why-choose-us-two {
    position: relative;
    padding: 100px 0;
    background: #f8f9fa;
}

.why-choose-us-two .image-column {
    position: relative;
    margin-bottom: 40px;
}

.why-choose-us-two .image-box {
    position: relative;
    margin-top: 60px;
}

.why-choose-us-two .image-box .image-1,
.why-choose-us-two .image-box .image-2 {
    position: relative;
    margin: 0;
}

.why-choose-us-two .image-box .image-1 img,
.why-choose-us-two .image-box .image-2 img {
    width: 100%;
    border-radius: 10px;
}

.why-choose-us-two .image-box .image-2 {
    position: absolute;
    right: -30px;
    bottom: -30px;
    max-width: 50%;
}

.why-choose-us-two .features-column {
    position: relative;
}

.feature-block-three {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.feature-block-three .inner-box {
    position: relative;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-block-three .inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-block-three .title-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-block-three .title-box .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-right: 20px;
}

.feature-block-three .title-box .title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.feature-block-three .text {
    font-size: 15px;
    line-height: 1.8em;
    color: #666666;
    margin: 0;
}

/* Team Section */
.team-section {
    position: relative;
    padding: 100px 0;
}

.team-block {
    position: relative;
    margin-bottom: 30px;
}

.team-block .inner-box {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-block .inner-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-block .image-box {
    position: relative;
    overflow: hidden;
}

.team-block .image-box .image {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.team-block .image-box .image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.team-block .inner-box:hover .image-box .image img {
    transform: scale(1.1);
}

.team-block .share-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.team-block .share-icon:hover {
    background: var(--primary-color);
    color: white;
}

.team-block .social-links {
    position: absolute;
    left: 20px;
    bottom: -100px;
    display: flex;
    gap: 10px;
    z-index: 2;
    transition: all 0.3s ease;
}

.team-block .inner-box:hover .social-links {
    bottom: 20px;
}

.team-block .social-links li {
    display: inline-block;
}

.team-block .social-links li a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.team-block .social-links li a:hover {
    background: var(--primary-color);
    color: white;
}

.team-block .info-box {
    position: relative;
    padding: 25px 30px;
    text-align: center;
}

.team-block .info-box .name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.team-block .info-box .name a {
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.team-block .info-box .name a:hover {
    color: var(--primary-color);
}

.team-block .info-box .designation {
    display: block;
    font-size: 14px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive pour About */
@media (max-width: 991px) {
    .about-section,
    .why-choose-us-two,
    .team-section {
        padding: 70px 0;
    }
    
    .about-section .content-column .inner-column {
        padding-right: 0;
    }
    
    .about-section .other-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .about-section,
    .why-choose-us-two,
    .team-section {
        padding: 60px 0;
    }
    
    .team-block .image-box .image img {
        height: 300px;
    }
    
    .why-choose-us-two .image-box .image-2 {
        display: none;
    }
}

@media (max-width: 575px) {
    .about-section .info-box {
        padding: 20px;
    }
    
    .about-section .info-box .icon {
        font-size: 35px;
        margin-right: 15px;
    }
    
    .feature-block-three .inner-box {
        padding: 20px;
    }
    
    .feature-block-three .title-box .icon {
        font-size: 30px;
        margin-right: 15px;
    }
}

/* ======================================
   PAGE HOME - BANNER SECTION
   ====================================== */

.banner-section-home {
    position: relative;
    background: linear-gradient(135deg, #003377 0%, #0055aa 100%);
    padding: 200px 0 180px;
    overflow: hidden;
}

.banner-section-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    opacity: 1;
}

.banner-section-home .content-box {
    position: relative;
    max-width: 800px;
    z-index: 1;
}

.banner-section-home .sub-title {
    position: relative;
    display: block;
    font-size: 14px;
    color: #FF6B35;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.banner-section-home .title {
    position: relative;
    display: block;
    font-size: 56px;
    line-height: 1.2em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
}

.banner-section-home .text {
    position: relative;
    display: block;
    font-size: 18px;
    line-height: 1.8em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.banner-section-home .btn-box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-section-home .btn-box .theme-btn.light-bg {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.banner-section-home .btn-box .theme-btn.light-bg:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #003377;
}

/* Responsive Banner Home */
@media (max-width: 991px) {
    .banner-section-home {
        padding: 150px 0 130px;
    }
    
    .banner-section-home .title {
        font-size: 42px;
    }
    
    .banner-section-home .text {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .banner-section-home {
        padding: 120px 0 100px;
    }
    
    .banner-section-home .title {
        font-size: 36px;
    }
    
    .banner-section-home .btn-box {
        flex-direction: column;
    }
    
    .banner-section-home .btn-box .theme-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .banner-section-home {
        padding: 100px 0 80px;
    }
    
    .banner-section-home .title {
        font-size: 32px;
    }
    
    .banner-section-home .text {
        font-size: 15px;
        margin-bottom: 30px;
    }
}
