/* Container principal */
.records-container {
    margin: 0 auto;
}

/* Grille masonry avec CSS Columns */
.records-grid {
    column-count: auto;
    column-width: 320px;
    column-gap: 25px;
    column-fill: balance;
    margin: 30px 0;
}

/* Tuiles arrondies modernes */
.record-tile {
    #border-radius: 20px;
    padding: 25px;
    #box-shadow: 
    #    0 8px 32px rgba(0, 0, 0, 0.12),
    #    0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    
    /* Propriétés pour CSS Columns */
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 25px;
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

/* Règle pour le thème sombre */
body.dark .record-tile {
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.record-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    #border-radius: 20px 20px 0 0;
}

#.record-tile:hover {
#    transform: translateY(-8px);
#    box-shadow: 
#        0 20px 40px rgba(0, 0, 0, 0.15),
#        0 4px 16px rgba(0, 0, 0, 0.1);
#}

/* Couleurs thématiques */
#.temp-tile { --accent-color: linear-gradient(45deg, #ff6b6b, #ffa726); }
#.wind-tile { --accent-color: linear-gradient(45deg, #42a5f5, #26c6da); }
#.rain-tile { --accent-color: linear-gradient(45deg, #66bb6a, #42a5f5); }
#.humid-tile { --accent-color: linear-gradient(45deg, #ab47bc, #7e57c2); }
#.pressure-tile { --accent-color: linear-gradient(45deg, #ef5350, #ff7043); }

/* En-tête de tuile */
.tile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 110%;
    font-weight: bold;
}

.tile-icon {
    font-size: 18pt;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Style des enregistrements */
.record-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.record-tile .record-item:last-child {
    border-bottom: none;
}

/* Règle pour le thème sombre */
body.dark .record-item {
    border-bottom: 1px solid rgba(255,255,255,0.25);
}

.record-item:hover {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    padding: 12px 8px;
    margin: 0 -8px;
}

/* En thème sombre */
body.dark .record-item:hover {
    background: rgba(255,255,255,0.05);
}

.record-label {
    flex: 1;
}

.record-values {
    text-align: right;
    flex: 1;
}

.value-year {
    font-weight: 500;
    margin-bottom: 4px;
}

.value-absolute {
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 2px;
}

.value-date {
    font-size: 75%;
    color: #7f8c8d;
    font-style: italic;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 768px) {
    .records-grid {
        column-count: 1;
        gap: 15px;
    }
    
    .record-tile {
        padding: 20px;
        #border-radius: 15px;
        margin-bottom: 15px;
    }

    .tile-icon {
        font-size: 16pt;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .record-tile {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .tile-header {
        font-size: 100%;
        margin-bottom: 15px;
    }
}
