/* V3 ETIKA - Secteurs d'Activité
 * Compact grid layout for 21 sectors
 */

.secteurs-activite {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.secteurs-activite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(68, 134, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.secteurs-activite .section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.secteurs-activite .section-header .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #448600;
    margin-bottom: 20px;
}

.secteurs-activite .section-header .subtitle::before,
.secteurs-activite .section-header .subtitle::after {
    content: '';
    width: 40px;
    height: 2px;
    background: #448600;
}

.secteurs-activite .section-header .title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

/* Compact Layout */
.secteurs-compact {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Central Hub - Compact */
.secteurs-hub-compact {
    text-align: center;
    margin-bottom: 50px;
}

.secteurs-hub-compact img {
    width: 160px;
    height: auto;
    margin-bottom: 10px;
}

.secteurs-hub-compact span {
    display: block;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Grid Layout - 7 columns for 21 items in 3 rows */
.secteurs-grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px 15px;
}

.secteurs-grid-compact .secteur-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 5px;
    border-radius: 10px;
}

.secteurs-grid-compact .secteur-item:hover {
    background: rgba(68, 134, 0, 0.06);
    transform: translateY(-4px);
}

.secteurs-grid-compact .secteur-item .secteur-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(68, 134, 0, 0.1);
    transition: all 0.3s ease;
}

.secteurs-grid-compact .secteur-item .secteur-icon i {
    font-size: 22px;
    color: #448600;
    transition: all 0.3s ease;
}

.secteurs-grid-compact .secteur-item:hover .secteur-icon {
    background: #448600;
    box-shadow:
        0 8px 25px rgba(68, 134, 0, 0.3),
        0 0 0 3px rgba(68, 134, 0, 0.2);
    transform: scale(1.15);
}

.secteurs-grid-compact .secteur-item:hover .secteur-icon i {
    color: #fff;
}

.secteurs-grid-compact .secteur-item .secteur-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.secteurs-grid-compact .secteur-item:hover .secteur-name {
    color: #448600;
}

/* Tricolor icon alternation: green / red / blue */
.secteurs-grid-compact .secteur-item:nth-child(3n+2) .secteur-icon i {
    color: var(--etika-red, #C1272D);
}
.secteurs-grid-compact .secteur-item:nth-child(3n+2) .secteur-icon {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(193, 39, 45, 0.1);
}
.secteurs-grid-compact .secteur-item:nth-child(3n+2):hover .secteur-icon {
    background: var(--etika-red, #C1272D);
    box-shadow:
        0 8px 25px rgba(193, 39, 45, 0.3),
        0 0 0 3px rgba(193, 39, 45, 0.2);
    transform: scale(1.15);
}
.secteurs-grid-compact .secteur-item:nth-child(3n+2):hover .secteur-icon i {
    color: #fff;
}
.secteurs-grid-compact .secteur-item:nth-child(3n+2):hover .secteur-name {
    color: var(--etika-red, #C1272D);
}

.secteurs-grid-compact .secteur-item:nth-child(3n) .secteur-icon i {
    color: var(--etika-bleu, #0055A4);
}
.secteurs-grid-compact .secteur-item:nth-child(3n) .secteur-icon {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(0, 85, 164, 0.1);
}
.secteurs-grid-compact .secteur-item:nth-child(3n):hover .secteur-icon {
    background: var(--etika-bleu, #0055A4);
    box-shadow:
        0 8px 25px rgba(0, 85, 164, 0.3),
        0 0 0 3px rgba(0, 85, 164, 0.2);
    transform: scale(1.15);
}
.secteurs-grid-compact .secteur-item:nth-child(3n):hover .secteur-icon i {
    color: #fff;
}
.secteurs-grid-compact .secteur-item:nth-child(3n):hover .secteur-name {
    color: var(--etika-bleu, #0055A4);
}

/* Staggered animation */
.secteurs-grid-compact .secteur-item {
    opacity: 0;
    animation: fadeInSector 0.5s ease forwards;
}

.secteurs-grid-compact .secteur-item:nth-child(1) { animation-delay: 0.05s; }
.secteurs-grid-compact .secteur-item:nth-child(2) { animation-delay: 0.08s; }
.secteurs-grid-compact .secteur-item:nth-child(3) { animation-delay: 0.11s; }
.secteurs-grid-compact .secteur-item:nth-child(4) { animation-delay: 0.14s; }
.secteurs-grid-compact .secteur-item:nth-child(5) { animation-delay: 0.17s; }
.secteurs-grid-compact .secteur-item:nth-child(6) { animation-delay: 0.20s; }
.secteurs-grid-compact .secteur-item:nth-child(7) { animation-delay: 0.23s; }
.secteurs-grid-compact .secteur-item:nth-child(8) { animation-delay: 0.26s; }
.secteurs-grid-compact .secteur-item:nth-child(9) { animation-delay: 0.29s; }
.secteurs-grid-compact .secteur-item:nth-child(10) { animation-delay: 0.32s; }
.secteurs-grid-compact .secteur-item:nth-child(11) { animation-delay: 0.35s; }
.secteurs-grid-compact .secteur-item:nth-child(12) { animation-delay: 0.38s; }
.secteurs-grid-compact .secteur-item:nth-child(13) { animation-delay: 0.41s; }
.secteurs-grid-compact .secteur-item:nth-child(14) { animation-delay: 0.44s; }
.secteurs-grid-compact .secteur-item:nth-child(15) { animation-delay: 0.47s; }
.secteurs-grid-compact .secteur-item:nth-child(16) { animation-delay: 0.50s; }
.secteurs-grid-compact .secteur-item:nth-child(17) { animation-delay: 0.53s; }
.secteurs-grid-compact .secteur-item:nth-child(18) { animation-delay: 0.56s; }
.secteurs-grid-compact .secteur-item:nth-child(19) { animation-delay: 0.59s; }
.secteurs-grid-compact .secteur-item:nth-child(20) { animation-delay: 0.62s; }
.secteurs-grid-compact .secteur-item:nth-child(21) { animation-delay: 0.65s; }

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

/* Tablet: 5 columns */
@media (max-width: 1199px) {
    .secteurs-grid-compact {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px 12px;
    }
}

/* Tablet small: 4 columns */
@media (max-width: 991px) {
    .secteurs-activite {
        padding: 80px 0;
    }

    .secteurs-grid-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 10px;
    }

    .secteurs-hub-compact img {
        width: 120px;
    }
}

/* Mobile: 3 columns */
@media (max-width: 767px) {
    .secteurs-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 8px;
    }

    .secteurs-activite .section-header {
        margin-bottom: 30px;
    }

    .secteurs-hub-compact {
        margin-bottom: 30px;
    }

    .secteurs-grid-compact .secteur-item .secteur-icon {
        width: 48px;
        height: 48px;
    }

    .secteurs-grid-compact .secteur-item .secteur-icon i {
        font-size: 20px;
    }

    .secteurs-grid-compact .secteur-item .secteur-name {
        font-size: 11px;
    }
}

/* Small mobile: 2 columns */
@media (max-width: 480px) {
    .secteurs-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Partenaires Section */
.v3-partenaires {
    padding: 60px 0;
    background: #f8f9fa;
}

.v3-partenaires .subtitle {
    color: #448600;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partenaire-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.partenaire-logo:hover {
    border-color: #448600;
    box-shadow: 0 5px 20px rgba(68, 134, 0, 0.15);
    transform: translateY(-3px);
}

.partenaire-logo span {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 1px;
}
