/* ===================================
   ED TUILE CHIFFRE - CSS
   =================================== */

.ed-tuile-chiffre {
    position: relative;
    margin: 50px 0;
    width: 100%;
}

.tuile-grid {
    display: grid;
    gap: 30px;
}

/* Grille selon le nombre de colonnes */
.ed-tuile-columns-2 .tuile-grid {
    grid-template-columns: repeat(2, 1fr);
}

.ed-tuile-columns-3 .tuile-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ed-tuile-columns-4 .tuile-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Tuile individuelle */
.tuile-item {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.tuile-item:nth-child(1) { animation-delay: 0.1s; }
.tuile-item:nth-child(2) { animation-delay: 0.2s; }
.tuile-item:nth-child(3) { animation-delay: 0.3s; }
.tuile-item:nth-child(4) { animation-delay: 0.4s; }
.tuile-item:nth-child(5) { animation-delay: 0.5s; }
.tuile-item:nth-child(6) { animation-delay: 0.6s; }
.tuile-item:nth-child(7) { animation-delay: 0.7s; }
.tuile-item:nth-child(8) { animation-delay: 0.8s; }

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

.tuile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tuile-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tuile-number-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.tuile-number {
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    color: #5c8374;
}

.tuile-suffix {
    font-size: 40px;
    font-weight: 700;
    color: #5c8374;
}

.tuile-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #2d313d;
    margin: 0;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media screen and (max-width: 768px) {
    .ed-tuile-chiffre {
        margin: 30px 0;
    }
    
    /* Toujours 2 colonnes sur mobile */
    .ed-tuile-columns-2 .tuile-grid,
    .ed-tuile-columns-3 .tuile-grid,
    .ed-tuile-columns-4 .tuile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tuile-item {
        padding: 30px 20px;
    }
    
    .tuile-number {
        font-size: 48px;
    }
    
    .tuile-suffix {
        font-size: 32px;
    }
    
    .tuile-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .tuile-number {
        font-size: 40px;
    }
    
    .tuile-suffix {
        font-size: 28px;
    }
    
    .tuile-text {
        font-size: 14px;
    }
}
