/*
 * Services Médicaux - Frontend Styles
 * Version: 1.0.0
 * Design inspiré de l'image de référence
 */

/* ================================
   CONTAINER PRINCIPAL
   ================================ */

.services-section-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #C8E6E6;
    padding: 60px 80px;
    overflow: hidden;
}

/* ================================
   SECTION HERO
   ================================ */

.services-hero {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.services-hero-content {
    flex: 1;
    max-width: 450px;
}

.services-hero-title {
    color: #E8743E;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 25px 0;
}

.services-hero-description {
    color: #2C3E50;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.services-hero-image-wrapper {
    flex-shrink: 0;
    width: 380px;
}

.services-hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ================================
   SECTION GRILLE D'ICÔNES
   ================================ */

.services-grid-section {
    background: transparent;
}

.services-grid-title {
    color: #1B7A7A;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 50px 0;
}

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

/* Carte de service */
.service-card {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.service-card.active .service-icon-box {
    border: 2px solid #1B7A7A;
    box-shadow: 0 4px 12px rgba(27, 122, 122, 0.2);
}

/* Cadre blanc de l'icône */
.service-icon-box {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Titre en dehors du cadre */
.service-card-name {
    color: #1B7A7A;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* ================================
   RESPONSIVE - TABLETTES
   ================================ */

@media (max-width: 1200px) {
    .services-section-wrapper {
        padding: 50px 60px;
    }
    
    .services-hero {
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .services-hero-image-wrapper {
        width: 320px;
    }
    
    .services-hero-image {
        height: 260px;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* ================================
   RESPONSIVE - TABLETTES PORTRAIT
   ================================ */

@media (max-width: 900px) {
    .services-section-wrapper {
        padding: 40px 40px;
    }
    
    .services-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .services-hero-content {
        max-width: 100%;
    }
    
    .services-hero-image-wrapper {
        width: 100%;
        max-width: 400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================
   RESPONSIVE - MOBILE
   ================================ */

@media (max-width: 768px) {
    .services-section-wrapper {
        padding: 35px 30px;
    }
    
    .services-hero {
        margin-bottom: 40px;
    }
    
    .services-hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .services-hero-description {
        font-size: 16px;
    }
    
    .services-hero-image {
        height: 240px;
        border-radius: 20px;
    }
    
    .services-grid-title {
        font-size: 26px;
        margin-bottom: 35px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .service-card {
        gap: 12px;
    }
    
    .service-icon-box {
        padding: 25px;
        min-height: 100px;
        border-radius: 12px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-card-name {
        font-size: 14px;
    }
}

/* ================================
   RESPONSIVE - PETIT MOBILE
   ================================ */

@media (max-width: 480px) {
    .services-section-wrapper {
        padding: 30px 20px;
    }
    
    .services-hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .services-hero-description {
        font-size: 15px;
    }
    
    .services-hero-image {
        height: 200px;
    }
    
    .services-grid-title {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        gap: 15px;
    }
    
    .service-card {
        gap: 10px;
    }
    
    .service-icon-box {
        padding: 20px;
        min-height: 90px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-card-name {
        font-size: 13px;
    }
}

/* ================================
   ACCESSIBILITÉ
   ================================ */

.service-card:focus {
    outline: 2px solid #1B7A7A;
    outline-offset: 3px;
}

/* Réduction du mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-icon-box {
        transition: none;
    }
}
