/* Layouts optimisés pour les icônes */

/* Sections avec icônes de fond */
.icon-section {
    position: relative;
    overflow: hidden;
}

.icon-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20rem;
    opacity: 0.03;
    z-index: 0;
}

.icon-section.rats::before { content: '\f6e3'; /* disease */ }
.icon-section.bugs::before { content: '\f188'; /* bug */ }
.icon-section.wasps::before { content: '\f071'; /* triangle-exclamation */ }
.icon-section.shield::before { content: '\f3ed'; /* shield-virus */ }
.icon-section.spray::before { content: '\e569'; /* spray-can */ }

/* Cartes avec icônes intégrées */
.icon-card {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-card .icon-wrapper i {
    font-size: 2rem;
    color: white;
}

/* Hero sections avec icônes animées */
.hero-icon-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(20px) rotate(3deg); }
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 6s; }
.floating-icon:nth-child(5) { top: 50%; left: 50%; animation-delay: 8s; }

/* Listes avec icônes */
.icon-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.icon-list li::before {
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #F97316;
}

.icon-list.check li::before { content: '\f00c'; }
.icon-list.arrow li::before { content: '\f061'; }
.icon-list.shield li::before { content: '\f132'; }

/* Bannières d'alerte avec icônes */
.icon-alert {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.icon-alert .alert-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.icon-alert.warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 4px solid #F59E0B;
}

.icon-alert.danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    border-left: 4px solid #EF4444;
}

.icon-alert.success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 4px solid #10B981;
}

/* Statistiques avec icônes */
.stat-icon-box {
    text-align: center;
    padding: 2rem;
}

.stat-icon-box .icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #3B82F6;
}

.stat-icon-box .icon-circle i {
    font-size: 2.5rem;
    color: #1E3A8A;
}

.stat-icon-box .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

/* Grille de services avec grandes icônes */
.service-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-icon-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.service-icon-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon-item i {
    font-size: 4rem;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Témoignages avec icônes */
.testimonial-icon {
    position: relative;
    padding-left: 3rem;
}

.testimonial-icon::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: #3B82F6;
    opacity: 0.3;
}

/* Sections CTA avec icônes animées */
.cta-icon-pulse {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Timeline avec icônes */
.timeline-icon {
    position: relative;
    padding-left: 3rem;
}

.timeline-icon::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: -2rem;
    width: 2px;
    background: #E5E7EB;
}

.timeline-icon .timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon .timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: white;
    border: 3px solid #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 2rem;
    }

    .service-icon-item i {
        font-size: 3rem;
    }

    .stat-icon-box .icon-circle {
        width: 80px;
        height: 80px;
    }

    .stat-icon-box .icon-circle i {
        font-size: 2rem;
    }
}