/* Styles spécifiques pour KS Protection */

/* Hero principal KS Protection */
.ks-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.ks-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 58% center;
    transform: scale(1.02);
    z-index: -2;
}

.ks-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 16, 30, 0.7) 0%, rgba(8, 16, 30, 0.52) 45%, rgba(8, 16, 30, 0.35) 100%);
    z-index: -1;
}

.ks-hero-content {
    max-width: 760px;
    color: #fff;
    padding: 2rem 0;
}

.ks-hero-title,
.ks-hero-description {
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

@media (max-width: 992px) {
    .ks-hero {
        min-height: 68vh;
    }

    .ks-hero-bg {
        background-position: 64% center;
    }
}

@media (max-width: 768px) {
    .ks-hero {
        min-height: 60vh;
    }

    .ks-hero-content {
        text-align: center;
    }
}

/* Hero Section KS Protection */
.ks-protection-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.ks-protection-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.security-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.security-stat {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.security-stat-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
}

.security-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.security-stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

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

.ks-services .ks-service-card {
    padding: 1.6rem 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, #f7fbff 100%);
}

.ks-services .ks-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 132, 216, 0.35) !important;
    box-shadow: 0 18px 34px rgba(15, 39, 70, 0.16) !important;
}

.ks-services .ks-service-icon {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d84d8 0%, #f39c12 100%);
    box-shadow: 0 14px 30px rgba(61, 132, 216, 0.22);
    color: #ffffff;
    margin-bottom: 1rem;
}

.ks-services .ks-service-icon i {
    font-size: 1.9rem;
}

.ks-services .ks-service-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f2746;
    margin: 0.35rem 0 0.6rem;
}

.ks-services .ks-service-description {
    color: #334155;
    line-height: 1.65;
    margin: 0;
    font-size: 0.98rem;
}

/* Sectors Section */
.ks-sectors .ks-sector-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.55rem 1.35rem;
    background: #ffffff;
    border: 1px solid rgba(15, 42, 79, 0.10) !important;
    box-shadow: 0 14px 30px rgba(15, 39, 70, 0.08) !important;
    border-top: 5px solid rgba(31, 111, 235, 0.95);
    position: relative;
    overflow: hidden;
}

.ks-sectors .ks-sector-card:hover {
    transform: translateY(-6px);
    border-top-color: rgba(243, 156, 18, 1) !important;
    box-shadow: 0 22px 45px rgba(15, 39, 70, 0.14) !important;
}

.ks-sectors .ks-sector-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(243, 156, 18, 0.35), transparent 50%),
                linear-gradient(135deg, #1f6feb 0%, #0f2a4f 100%);
    color: #ffffff;
    margin-bottom: 1rem;
    box-shadow: 0 16px 34px rgba(31, 111, 235, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ks-sectors .ks-sector-icon i {
    font-size: 1.95rem;
}

.ks-sectors .ks-sector-title {
    font-size: 1.25rem;
    font-weight: 950;
    color: #0f2746;
    margin: 0.35rem 0 0.65rem;
}

.ks-sectors .ks-sector-description {
    color: #334155;
    line-height: 1.65;
    margin: 0;
    font-size: 0.98rem;
}

/* Certifications Section (style différent: accent doré + image encadrée) */
.ks-certifications .ks-certification-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(15, 42, 79, 0.10) !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 14px 30px rgba(15, 42, 79, 0.10);
    padding: 1.25rem 1.15rem 1.1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ks-certifications .ks-certification-card:hover {
    transform: translateY(-6px);
    border-color: rgba(243, 156, 18, 0.45) !important;
    box-shadow: 0 22px 45px rgba(15, 42, 79, 0.16);
}

.ks-certifications .ks-cert-image {
    border-radius: 0.9rem;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: radial-gradient(circle at 20% 10%, rgba(243, 156, 18, 0.18), transparent 45%),
                radial-gradient(circle at 80% 80%, rgba(61, 132, 216, 0.18), transparent 45%),
                #f7fbff;
    border: 1px solid rgba(15, 42, 79, 0.08);
}

.ks-certifications .ks-cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
}

.ks-certifications .ks-cert-title {
    font-size: 1.15rem;
    font-weight: 950;
    color: #0f2746;
    margin: 0.25rem 0 0.65rem;
}

.ks-certifications .ks-cert-description {
    margin: 0;
    color: #334155;
    line-height: 1.65;
    font-size: 0.98rem;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-features li {
    padding: 5px 0;
    color: #555;
}

.service-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
}

/* Secteurs d'intervention */
.sectors-section {
    padding: 80px 0;
    background: white;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sector-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.sector-card:hover::before {
    transform: scale(1);
}

.sector-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
    position: relative;
    z-index: 2;
}

.sector-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.sector-description {
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Équipe Section */
.team-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.member-position {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-experience {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    background: #f8f9fa;
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 25px;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

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

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

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

.btn-primary-cta {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,215,0,0.3);
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255,215,0,0.4);
    color: #333;
    text-decoration: none;
}

.btn-secondary-cta {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
    background: white;
    color: #667eea;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ks-protection-hero {
        padding: 60px 0;
    }
    
    .security-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sector-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .service-card,
    .sector-card,
    .team-member {
        padding: 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Refonte visuelle premium KSProtection */
.ks-page {
    background: radial-gradient(circle at 12% 0%, rgba(60, 112, 198, 0.12), transparent 28%),
                radial-gradient(circle at 88% 100%, rgba(11, 83, 49, 0.12), transparent 30%),
                #f5f7fb;
}

.ks-page .section-header .section-title {
    font-weight: 800;
    color: #0f2746;
    letter-spacing: -0.02em;
}

.ks-page .section-header .section-description {
    color: #5b6777;
    max-width: 760px;
    margin: 0 auto;
}

.ks-page .ks-hero {
    min-height: 72vh;
}

.ks-page .ks-hero-row {
    min-height: 72vh;
}

.ks-page .ks-hero-content .entity-logo {
    width: min(220px, 50vw);
}

.ks-page .ks-hero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
}

.ks-page .ks-hero-title .text-primary {
    color: #7ec2ff !important;
}

.ks-page .ks-hero-description {
    color: rgba(245, 249, 255, 0.95);
    max-width: 680px;
    font-size: 1.1rem;
}

.ks-page .ks-hero-actions .btn-primary {
    background: linear-gradient(135deg, #ffb347, #f39c12);
    border: none;
    box-shadow: 0 12px 24px rgba(243, 156, 18, 0.35);
}

.ks-page .ks-hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #f39c12, #d68910);
    transform: translateY(-1px);
}

.ks-page .ks-hero-actions .btn-outline-light {
    border-width: 2px;
}

.ks-page .ks-signature {
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.ks-page .ks-overview .card,
.ks-page .ks-service-card,
.ks-page .ks-sector-card,
.ks-page .ks-certification-card,
.ks-page .ks-testimonial-card,
.ks-page .ks-contact-card,
.ks-page .accordion-item,
.ks-page .faq .accordion-item {
    border-radius: 1rem !important;
    border: 1px solid rgba(15, 39, 70, 0.08) !important;
    box-shadow: 0 10px 28px rgba(15, 39, 70, 0.08) !important;
    background: #ffffff;
}

.ks-page .story-card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 39, 70, 0.08);
    box-shadow: 0 8px 22px rgba(15, 39, 70, 0.08);
    background: #ffffff;
}

.ks-page .accordion-button {
    background: #f8fbff;
    font-weight: 700;
    color: #10233f;
}

.ks-page .accordion-button:not(.collapsed) {
    background: #edf5ff;
    color: #0a3d76;
    box-shadow: none;
}

.ks-page .practical-sidebar {
    position: sticky;
    top: 96px;
}

.ks-page .ks-services,
.ks-page .ks-certifications,
.ks-page .ks-faq,
.ks-page .ks-testimonials {
    background: transparent;
}

.ks-page .ks-testimonials .col-lg-4 {
    display: flex;
}

.ks-page .ks-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 280px;
    padding: 1.3rem 1.15rem;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    animation: ksTestimonialIn 0.6s ease both;
}

.ks-page .ks-testimonials .col-lg-4:nth-child(1) .ks-testimonial-card { animation-delay: 0.05s; }
.ks-page .ks-testimonials .col-lg-4:nth-child(2) .ks-testimonial-card { animation-delay: 0.12s; }
.ks-page .ks-testimonials .col-lg-4:nth-child(3) .ks-testimonial-card { animation-delay: 0.2s; }

.ks-page .ks-testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3d84d8, #f39c12);
}

.ks-page .ks-testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 132, 216, 0.35) !important;
    box-shadow: 0 18px 34px rgba(15, 39, 70, 0.16) !important;
}

.ks-page .ks-testimonial-rating {
    margin-bottom: 0.9rem;
}

.ks-page .ks-testimonial-rating i {
    color: #f5b642;
    margin-right: 0.2rem;
    font-size: 0.95rem;
}

.ks-page .ks-testimonial-content {
    color: #2b3f58;
    line-height: 1.7;
    margin-bottom: 1.15rem;
    flex: 1;
}

.ks-page .ks-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 39, 70, 0.09);
}

.ks-page .ks-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf3ff, #d8ebff);
    border: 1px solid rgba(15, 39, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ks-page .ks-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ks-page .ks-testimonial-avatar i {
    color: #2d5f9a;
}

.ks-page .ks-testimonial-name {
    margin: 0;
    color: #112b4a;
    font-size: 1rem;
    font-weight: 700;
}

.ks-page .ks-testimonial-position,
.ks-page .ks-testimonial-company {
    margin: 0;
    line-height: 1.35;
    color: #5d6f83;
    font-size: 0.87rem;
}

.ks-page .ks-sectors {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.95));
}

.ks-page .ks-quote {
    background: radial-gradient(circle at 15% 20%, rgba(79, 138, 227, 0.25), transparent 35%),
                radial-gradient(circle at 85% 80%, rgba(243, 156, 18, 0.22), transparent 33%),
                linear-gradient(145deg, #0f2746 0%, #102f58 55%, #0c2340 100%);
    color: #fff;
}

.ks-page .ks-quote .section-title {
    color: #fff;
}

.ks-page .ks-quote .section-description {
    color: rgba(226, 237, 255, 0.85) !important;
}

.ks-page .ks-quote-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
}

.ks-page .ks-quote .form-label {
    color: #e8f1ff;
    font-weight: 600;
}

.ks-page .ks-quote .form-control,
.ks-page .ks-quote .form-select,
.ks-page .ks-quote textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 0.8rem;
}

.ks-page .ks-quote .form-control:focus,
.ks-page .ks-quote .form-select:focus,
.ks-page .ks-quote textarea:focus {
    border-color: rgba(126, 194, 255, 0.9);
    box-shadow: 0 0 0 0.2rem rgba(126, 194, 255, 0.2);
}

.ks-page .ks-quote .form-text,
.ks-page .ks-quote .form-check-label {
    color: rgba(231, 241, 255, 0.85) !important;
}

.ks-page .ks-quote .btn-light {
    background: linear-gradient(135deg, #ffb347, #f39c12);
    color: #1a1a1a;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 2rem;
    box-shadow: 0 12px 26px rgba(243, 156, 18, 0.35);
}

.ks-page .ks-quote .btn-light:hover {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.ks-page .ks-quote {
    margin-bottom: 0 !important;
}

.ks-page .ekdj-footer {
    margin-top: 0 !important;
}

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

@media (max-width: 991px) {
    .ks-page .practical-sidebar {
        position: static;
    }

    .ks-page .ks-hero,
    .ks-page .ks-hero-row {
        min-height: 62vh;
    }
}