/*
* WeProtect - Professional Security Services
* Version: 1.0
*/

:root {
    --primary-color: #429296;
    --primary-dark: #357376;
    --secondary-color: #2d3142;
    --accent-color: #f8f8f8;
    --text-color: #333;
    --light-color: #fff;
    --dark-grey: #444;
    --transition: all 0.4s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #429296 0%, #2C7973 100%);
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

input[type='checkbox']:checked{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

p {
    color: #666;
}

.section-bg {
    background-color: var(--accent-color);
}

section {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
}

.section-title p {
    color: #777;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(66, 146, 150, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 146, 150, 0.4);
    color: var(--light-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.reveal {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease;
    transform: translateY(50px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

img {
    max-width: 100%;
    height: auto;
}



/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/

.topbar {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 0;
    font-size: 14px;
  }

  .social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background-color: var(--primary-color);
  }



/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(66, 146, 150, 0.3);
}

.back-to-top i {
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: var(--light-color);
    transform: translateY(-5px);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#header {
    background-color: rgba(255, 255, 255, 0.97);
    transition: all 0.5s;
    z-index: 997;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#header .navbar {
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.5s;
}

.navbar-brand {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0;
    top: 50px; 
    left: 50px;
}

.navbar-brand img {
    max-height: 100px;
    width: auto;
    border-radius: 10px;
    object-fit: contain;
    vertical-align: middle;
}


.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 10px 0;
    margin: 0 15px;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    color: var(--light-color);
    background: var(--gradient);
    padding: 8px 20px;
    border-radius: 0px;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(66, 146, 150, 0.3);
}

.nav-link.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(66, 146, 150, 0.4);
}

.nav-link.btn-contact::after {
    display: none;
}

@media (max-width: 992px) {
    .nav-link {
        margin: 5px 0;
    }
    
    .nav-link.btn-contact {
        margin: 10px 0 0;
        display: inline-block;
    }

    .navbar-brand {
        top: 0px; 
        left: 70vw;
    }

    .navbar-brand {
        top: 0px; 
        left: 70vw;
    }

    .navbar-brand img {
        max-height: 80px;
    }

}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.png') top center/contain;
    height: 100vh; /* Ajuste la hauteur à 100% de la hauteur de l'écran */
    position: relative;
}


@keyframes zoomInOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    animation: zoomInOut 20s infinite alternate;
}

#hero h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#hero p {
    margin: 20px 0 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #hero {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.png') top center/cover no-repeat;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }
}

/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features {
    padding: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    background: var(--light-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.9;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--light-color);
    font-size: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(66, 146, 150, 0.3);
}

.feature-card:hover .feature-icon {
    background: var(--light-color);
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.feature-card p {
    transition: var(--transition);
}

.feature-card:hover h3,
.feature-card:hover p {
    color: var(--light-color);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-img::before {
    opacity: 1;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.service-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.service-info p {
    color: #777;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-img img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--gradient);
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.about-feature i {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.about-feature h4 {
    margin-bottom: 3px;
    font-size: 1.2rem;
}

.about-feature p {
    margin-bottom: 0;
    color: #777;
}

.experience-years {
    position: absolute;
    right: -30px;
    bottom: 30px;
    width: 140px;
    height: 140px;
    background: var(--gradient);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 20px rgba(66, 146, 150, 0.3);
    font-weight: 600;
    z-index: 2;
}

.experience-years .number {
    font-size: 2.5rem;
    line-height: 1;
}

.experience-years .text {
    font-size: 0.9rem;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .experience-years {
        right: 20px;
    }
}

@media (max-width: 767px) {
    .experience-years {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -70px auto 30px;
    }
}

/*--------------------------------------------------------------
# Counter Section
--------------------------------------------------------------*/
.counter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/counter-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
    color: var(--light-color);
    text-align: center;
}

.counter-item {
    padding: 20px;
}

.counter-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.counter {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ddd;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-wrap {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial {
    min-width: 100%;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.testimonial-text {
    position: relative;
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    padding: 0 20px;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: rgba(66, 146, 150, 0.2);
    position: absolute;
    line-height: 1;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-position {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.slider-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}


/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-info {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after, .contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.contact-details li {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(66, 146, 150, 0.1) 0%, rgba(66, 146, 150, 0.2) 100%);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-text h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-text p {
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.form-control {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 146, 150, 0.1);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 14px;
    position: relative;
}

.footer-top {
    padding: 60px 0 30px;
}

.footer-contact h3 {
    font-size: 26px;
    margin: 0 0 20px;
    padding: 0;
    color: var(--light-color);
}

.footer-contact p {
    color: #bbb;
}

.social-links a {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    margin-right: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

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

.footer-links {
    margin-bottom: 30px;
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul i {
    color: var(--primary-color);
    font-size: 12px;
    margin-right: 10px;
}

.footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.footer-links ul li:first-child {
    padding-top: 0;
}

.footer-links ul a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background: var(--primary-color);
}

.footer-newsletter p {
    color: #bbb;
}

.footer-newsletter form {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    position: relative;
    border-radius: 30px;
}

.footer-newsletter form input[type="email"] {
    border: 0;
    padding: 8px;
    width: calc(100% - 60px);
    background: transparent;
    color: var(--light-color);
}

.footer-newsletter form input[type="email"]:focus {
    outline: none;
}

.footer-newsletter form input[type="submit"] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border: 0;
    background: var(--primary-color);
    color: var(--light-color);
    transition: var(--transition);
    font-size: 14px;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
}

.footer-newsletter form input[type="submit"]:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom .copyright {
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-bottom .credits a {
    color: #bbb;
    transition: var(--transition);
}

.footer-bottom .credits a:hover {
    color: var(--primary-color);
}





/* Footer Bottom Design Amélioré */


.footer-info-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.footer-info-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

.footer-info-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-info-text {
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.license-info {
    border-left: 3px solid #f8c541; /* Une couleur différente pour distinguer les deux sections */
}

.license-info small {
    font-size: 12px;
    opacity: 0.8;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 10px 0 20px;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

.copyright strong {
    color: #fff;
}
/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .experience-years {
        width: 120px;
        height: 120px;
    }
    
    .experience-years .number {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .about-text h2, .contact-info h3, .contact-form h3 {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-text h2, .contact-info h3, .contact-form h3 {
        font-size: 1.8rem;
    }
    
    .footer-contact, .footer-links, .footer-newsletter {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-text h2, .contact-info h3, .contact-form h3 {
        font-size: 1.6rem;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate__fadeInDown {
    animation: fadeInDown 1s ease;
}

.animate__fadeInUp {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}