/**
 * Theros Solutions Secteur - Front CSS
 * Path: modules/therosolutionssecteur/views/css/front.css
 */

.theros-solutions-secteur {
    padding: 70px 0 80px;
    background-color: #ffffff;
}

.theros-header {
    margin-bottom: 50px;
    text-align: left;
}

.theros-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #008080;
    margin-bottom: 20px;
    padding-left: 22px;
    border-left: 5px solid #008080;
    line-height: 1.3;
}

.theros-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    color: #4a4a4a;
    max-width: 100%;
    margin: 0;
    font-weight: 400;
}

/* Grille 2 colonnes */
.theros-sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    margin-top: 40px;
}

/* Carte secteur */
.theros-sector-card {
    background: #f5f7f8;
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 240px;
    border: 1px solid #e8eced;
}

.theros-sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 128, 128, 0.12);
    background: #ffffff;
}

/* Header avec icône et titre côte à côte */
.theros-sector-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.theros-sector-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e0e5e7;
}

.theros-sector-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.theros-sector-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #008080;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

/* Description */
.theros-sector-description {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #5a5a5a;
    margin-bottom: 20px;
    flex: 1;
}

/* Bouton flèche en bas à droite */
.theros-sector-link {
    width: 48px;
    height: 48px;
    background: #00b8b8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-end;
    text-decoration: none;
    flex-shrink: 0;
}

.theros-sector-link:hover {
    background: #008c8c;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 184, 184, 0.3);
}

.theros-sector-link svg {
    width: 22px;
    height: 22px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .theros-sectors-grid {
        gap: 24px 20px;
    }
    
    .theros-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .theros-solutions-secteur {
        padding: 50px 0 60px;
    }
    
    .theros-main-title {
        font-size: 1.85rem;
    }
    
    .theros-subtitle {
        font-size: 0.95rem;
    }
    
    .theros-sector-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .theros-solutions-secteur {
        padding: 40px 0 50px;
    }
    
    .theros-main-title {
        font-size: 1.65rem;
        padding-left: 18px;
        border-left-width: 4px;
    }
    
    .theros-subtitle {
        font-size: 0.9rem;
    }
    
    /* 1 colonne sur mobile */
    .theros-sectors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .theros-sector-card {
        padding: 28px 24px;
        min-height: 220px;
    }
    
    .theros-sector-header {
        gap: 15px;
        margin-bottom: 16px;
    }
    
    .theros-sector-icon {
        width: 56px;
        height: 56px;
    }
    
    .theros-sector-icon img {
        width: 32px;
        height: 32px;
    }
    
    .theros-sector-title {
        font-size: 1.05rem;
    }
    
    .theros-sector-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .theros-sector-link {
        width: 44px;
        height: 44px;
    }
    
    .theros-sector-link svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .theros-solutions-secteur {
        padding: 30px 0 40px;
    }
    
    .theros-main-title {
        font-size: 1.45rem;
        padding-left: 15px;
    }
    
    .theros-subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .theros-sector-card {
        padding: 24px 20px;
        min-height: 200px;
    }
    
    .theros-sector-header {
        gap: 12px;
    }
    
    .theros-sector-icon {
        width: 52px;
        height: 52px;
    }
    
    .theros-sector-icon img {
        width: 30px;
        height: 30px;
    }
    
    .theros-sector-title {
        font-size: 1rem;
    }
    
    .theros-sector-description {
        font-size: 0.875rem;
    }
}

h2.theros-main-title {
    border-width: 7px;
}

.theros-sectors-grid {
    grid-template-columns: repeat(2,1fr);
}

.theros-sector-card {
    box-shadow: unset;
    background: rgba(239, 246, 246, 1);
    border: 1px solid rgba(242, 242, 242, 1);
    min-height: auto;
    justify-content: start;
}


.theros-sector-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

h3.theros-sector-title {
    font-size: 18px;
}

.theros-sector-icon {
    width: 25px;
    height: 25px;
    background: transparent;
}

.theros-sector-card {
    padding: 24px;
    padding-bottom: 61px;
}

a.theros-sector-link {
    margin: 0;
    position: absolute;
    bottom: 20px;
}