/**
 * Ferry Recycling - Styles spécifiques pour la page Déchets
 */

/* Wastes Hero Section */
#wastes-hero {
    padding: 180px 0 80px;
    background: linear-gradient(to right, rgba(59, 148, 94, 0.8), rgba(26, 101, 158, 0.8)), url('../images/wastes-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

#wastes-hero h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#wastes-hero .lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Wastes Overview Section */
#wastes-overview {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    color: #1A659E;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.6;
}

.wastes-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    padding: 0 15px;
}

.wastes-filter .filter-btn {
    background-color: #F9F9F9;
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 10px 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.wastes-filter .filter-btn:hover {
    background-color: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wastes-filter .filter-btn.active {
    background-color: #3B945E;
    color: white;
    border-color: #3B945E;
    box-shadow: 0 4px 10px rgba(59, 148, 94, 0.3);
}

.wastes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 40px;
}

.waste-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
    border-top: 5px solid #1A659E;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.waste-card[data-category*="dangerous"] {
    border-top-color: #A62639;
}

.waste-card[data-category*="non-dangerous"] {
    border-top-color: #3B945E;
}

.waste-card[data-category*="electronic"] {
    border-left: 3px solid #F2C14E;
}

.waste-card[data-category*="metal"] {
    border-left: 3px solid #1A659E;
}

.waste-card.show {
    opacity: 1;
    transform: translateY(0);
}

.waste-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.waste-icon {
    font-size: 2.5rem;
    color: #1A659E;
    margin-bottom: 20px;
}

.waste-card[data-category*="dangerous"] .waste-icon {
    color: #A62639;
}

.waste-card[data-category*="non-dangerous"] .waste-icon {
    color: #3B945E;
}

.waste-card h3 {
    margin-bottom: 10px;
}

.waste-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: #1A659E;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.waste-card[data-category*="dangerous"] .waste-category {
    background-color: #A62639;
}

.waste-card[data-category*="non-dangerous"] .waste-category {
    background-color: #3B945E;
}

.waste-details {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.waste-details p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Statistics Section */
#waste-statistics {
    padding: 80px 0;
    background-color: #F9F9F9;
    position: relative;
}

#waste-statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.03;
    pointer-events: none;
}

.statistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.chart-container {
    background-color: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border-bottom: 4px solid #1A659E;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
    color: #1A659E;
    font-weight: 600;
}

.chart-container.full-width {
    grid-column: 1 / -1;
    margin-top: 30px;
}

canvas {
    max-width: 100%;
    height: auto !important;
}

/* Statistics Highlights */
.statistics-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 30px;
}

.highlight-box {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #1A659E;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 101, 158, 0.05), rgba(59, 148, 94, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.highlight-box:hover::before {
    opacity: 1;
}

.highlight-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1A659E;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
}

.highlight-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #3B945E;
    border-radius: 3px;
}

.highlight-box p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Process Section */
#waste-process {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1A659E, #3B945E);
    border-radius: 4px;
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #1A659E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1A659E;
    z-index: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover .timeline-icon {
    background-color: #1A659E;
    color: white;
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 101, 158, 0.3);
}

.timeline-content {
    width: calc(50% - 60px);
    background-color: #F9F9F9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #1A659E;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }
    
    #wastes-hero h1 {
        font-size: 2.4rem;
    }
    
    .chart-container {
        padding: 25px;
    }
    
    .statistics-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .highlight-number {
        font-size: 3rem;
    }
    
    .process-timeline::before {
        left: 40px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-icon {
        left: 40px;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px;
    }
}

@media (max-width: 768px) {
    .wastes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .wastes-filter {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .wastes-filter::-webkit-scrollbar {
        height: 4px;
    }
    
    .wastes-filter::-webkit-scrollbar-thumb {
        background-color: rgba(26, 101, 158, 0.3);
        border-radius: 4px;
    }
    
    .wastes-filter .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 5px;
    }
    
    #wastes-hero h1 {
        font-size: 2.2rem;
    }
    
    #wastes-hero .lead {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .waste-card {
        padding: 25px;
    }
    
    .highlight-box {
        padding: 25px 15px;
    }
    
    .highlight-number {
        font-size: 2.8rem;
        margin-bottom: 10px;
    }
    
    .highlight-box p {
        font-size: 1rem;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 25px;
        margin-left: 90px;
        width: calc(100% - 90px);
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .wastes-grid {
        grid-template-columns: 1fr;
    }
    
    #wastes-hero h1 {
        font-size: 1.8rem;
    }
    
    #wastes-hero .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .waste-icon {
        font-size: 2rem;
    }
    
    .chart-container h3 {
        font-size: 1.2rem;
    }
    
    .statistics-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .highlight-box {
        padding: 20px 15px;
    }
    
    .highlight-number {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        left: 30px;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        padding: 20px;
        margin-left: 70px;
        width: calc(100% - 70px);
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
}
