/*
 * Connect Security Go - Styles des pages générales
 * Ce fichier contient les styles pour les sections communes à plusieurs pages
 */

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #161F3B;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #9D835F;
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    background-color: #161F3B;
    background-image: linear-gradient(rgba(22, 31, 59, 0.75), rgba(22, 31, 59, 0.75)), url('../img/video-hd.jpg');
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-scroll:hover {
    opacity: 1;
}

.hero-scroll i {
    display: block;
    font-size: 1.5rem;
    margin-top: 5px;
    animation: bounce 2s infinite;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #161F3B;
}

.service-card-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-content .btn {
    align-self: flex-start;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 80px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    height: 50%;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid #9D835F;
    border-radius: 10px;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #161F3B;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #9D835F;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
}

.about-feature i {
    color: #9D835F;
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.about-feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #161F3B;
}

.about-feature-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-us-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.why-us-icon {
    background-color: rgba(157, 131, 95, 0.1);
    color: #9D835F;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.why-us-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #161F3B;
}

.why-us-item p {
    color: #666;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-slider {
    margin-top: 50px;
}

.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px 15px;
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    color: rgba(157, 131, 95, 0.2);
}

.testimonial-content::after {
    content: '\f10e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 1.5rem;
    color: rgba(157, 131, 95, 0.2);
}

.testimonial-content p {
    color: #666;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #161F3B;
}

.testimonial-author-info p {
    color: #9D835F;
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-top: 10px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 0.9rem;
    margin-right: 2px;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.partners-slider {
    margin-top: 40px;
}

.partner-item {
    text-align: center;
    padding: 0 20px;
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== COUNTERS SECTION ===== */
.counters-section {
    padding: 80px 0;
    background-color: #161F3B;
    background-image: linear-gradient(rgba(22, 31, 59, 0.9), rgba(22, 31, 59, 0.9)), url('../img/counter-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.counter-item {
    text-align: center;
}

.counter-icon {
    color: #9D835F;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.counter-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background-color: #161F3B;
    background-image: linear-gradient(rgba(22, 31, 59, 0.85), rgba(22, 31, 59, 0.85)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-trust {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 30px;
}

.cta-trust-item {
    display: flex;
    align-items: center;
}

.cta-trust-item i {
    color: #9D835F;
    font-size: 1.5rem;
    margin-right: 10px;
}

.cta-trust-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #161F3B;
    color: white;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
   display: flex;
   flex-direction: column;      /* empile verticalement */
   align-items: flex-start;     /* logo aligné à gauche sous le titre */
   gap: var(--spacing-sm);      /* espace vertical entre titre et logo */
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #9D835F;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #9D835F;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #9D835F;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: #9D835F;
    margin-right: 15px;
    margin-top: 5px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #9D835F;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #9D835F;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #9D835F;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: #161F3B;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 150px 0 100px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-content {
        order: 1;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .counters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-trust {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .counters-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}