/*
 * Fichier : services.css
 * Description : Styles spécifiques pour la page Services
 */

/* ===== BANNIÈRE SERVICES ===== */
.services-banner {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 86, 179, 0.9)), url('../images/services/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.services-banner .banner-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.services-banner .banner-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== SECTION INTRODUCTION ===== */
.services-intro {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.intro-text .section-title::after {
    left: 0;
    transform: none;
}

.intro-text p {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.intro-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat .number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.intro-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

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

/* ===== SERVICES PRINCIPAUX ===== */
.main-services {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Style avec onglets */
.services-tabs {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tabs-nav {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: none;
    border: none;
    border-right: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-color);
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: white;
    color: var(--primary-color);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tabs-content {
    padding: 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 50px;
}

.service-image {
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.service-detail:hover .service-image img {
    transform: scale(1.05);
}

.service-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.service-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary-color);
}

.service-description {
    color: var(--gray-color);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1rem;
}

.key-features {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.key-features h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.key-features i {
    color: var(--success-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.service-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.service-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Style avec grille (fallback) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--success-color);
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-service:hover {
    background-color: #004494;
    color: white;
}

/* ===== PROCESSUS DE TRAVAIL ===== */
.work-process {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.process-step {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.process-step p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== PROJETS RÉFÉRENCES ===== */
.reference-projects {
    padding: 100px 0;
    background-color: white;
}

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

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.project-meta i {
    color: var(--primary-color);
    width: 16px;
}

.project-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-results {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
}

.result-item i {
    color: var(--success-color);
}

.btn-view-project {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-project:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== FAQ SERVICES ===== */
.services-faq {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
    background-color: white;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--dark-color);
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
}

/* ===== SECTION CTA ===== */
.services-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d82 100%);
    color: white;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

.cta-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.service-modal-content {
    max-width: 900px;
}

.project-modal-content {
    max-width: 1000px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--gray-color);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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