/* ============================================
   SERVICES.CSS - Page Services BS Profils
   Styles spécifiques (hérite de style.css)
   ============================================ */

/* ----- HERO SECTION ----- */
.hero {
    height: 70vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-dark), #2A2F38);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--pure-white);
    overflow: hidden;
    margin-top: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--pure-white);
}

.hero h1 span {
    color: var(--accent-blue);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-blue);
    opacity: 0.3;
    z-index: -1;
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ----- SERVICES LISTE ----- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-item.reverse {
    direction: rtl;
}

.service-item.reverse .service-content {
    direction: ltr;
}

.service-content {
    padding-right: 40px;
}

.service-content h3 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.service-content p {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: var(--dark-text);
    font-weight: 500;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.service-image {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-lg);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image:hover img {
    transform: scale(1.05);
}

/* ----- WHY SECTION ----- */
.why-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--light-bg) 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27,182,225,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.why-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(250,204,21,0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.section-badge {
    display: inline-block;
    background: rgba(27, 182, 225, 0.1);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(27, 182, 225, 0.2);
}

.section-title {
    font-size: 48px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.section-title .highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-blue);
    opacity: 0.3;
    z-index: -1;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.reason-card {
    background: var(--pure-white);
    border-radius: 30px;
    padding: 30px 20px;
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(27, 182, 225, 0.1);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
    min-height: 250px;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), #1599bd);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.reason-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.reason-card:hover::before {
    opacity: 1;
}

.card-inner {
    position: relative;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reason-card:hover .card-inner {
    color: white !important;
}

.reason-card:hover h3,
.reason-card:hover p,
.reason-card:hover .reason-number {
    color: white !important;
}

.reason-card:hover .reason-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.reason-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
    transition: var(--transition);
    border: 1px solid rgba(27, 182, 225, 0.1);
}

.reason-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    opacity: 0.3;
    transition: var(--transition);
    line-height: 1;
}

.reason-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    transition: var(--transition);
}

.reason-card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.7;
    transition: var(--transition);
}

/* ----- GALLERY SECTION ----- */
.gallery-section {
    padding: 80px 0;
    background: var(--pure-white);
    overflow: hidden;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h2 {
    font-size: 42px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.gallery-header p {
    font-size: 18px;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-slider {
    width: 100%;
    height: 500px;
    margin-top: 40px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(53, 58, 68, 0.95), transparent);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.swiper-slide:hover .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.slide-caption p {
    font-size: 16px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.slide-caption i {
    color: var(--primary-blue);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-blue);
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(27, 182, 225, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-blue);
}

/* ----- CTA SECTION ----- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: var(--pure-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    color: var(--pure-white);
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-cta {
    display: inline-block;
    padding: 16px 48px;
    background: var(--pure-white);
    color: var(--primary-blue);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.3);
    background: var(--light-bg);
}

/* ----- RESPONSIVE SERVICES ----- */
@media (max-width: 1200px) {
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .service-item {
        gap: 40px;
    }
    
    .service-content h3 {
        font-size: 30px;
    }
    
    .gallery-slider {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 0px;
        height: auto;
        min-height: 500px;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
    }

    .service-content {
        padding-right: 0;
    }

    .service-content h3 {
        font-size: 28px;
    }

    .service-image {
        height: 280px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-slider {
        height: 300px;
    }

    .gallery-header h2 {
        font-size: 32px;
    }

    .slide-caption {
        padding: 20px;
    }

    .slide-caption h3 {
        font-size: 18px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .service-content h3 {
        font-size: 24px;
    }

    .service-image {
        height: 220px;
    }

    .reason-card {
        padding: 20px;
    }

    .reason-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .reason-number {
        font-size: 24px;
    }
    
}