/* Variables CSS pour les couleurs - Identiques à la page d'accueil */
:root {
    --netflix-red: #E50914;
    --netflix-dark-red: #B20710;
    --netflix-black: #000000;
    --netflix-dark-gray: #141414;
    --netflix-white: #FFFFFF;
    --netflix-gray: #808080;
    --netflix-light-gray: #333333;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    --info-blue: #2196F3;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--netflix-black);
    color: var(--netflix-white);
    line-height: 1.6;
}

/* Contenu principal */
.leaks-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section - Fond identique à la page d'accueil */
.leaks-hero {
    background: linear-gradient(135deg, var(--netflix-black) 0%, var(--netflix-dark-red) 50%, var(--netflix-red) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaks-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(229, 9, 20, 0.1) 0%, transparent 50%);
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--netflix-white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--netflix-gray);
}

.status-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--success-green);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.operational {
    background: var(--success-green);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.status-dot.degraded {
    background: var(--warning-orange);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.status-dot.outage {
    background: var(--error-red);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

/* Leaks Grid - Style identique à la page d'accueil */
.leaks-grid {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--netflix-black);
}

.leaks-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.status-section {
    background: var(--netflix-dark-gray);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--netflix-light-gray);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.status-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--netflix-red);
    opacity: 0.8;
}

.status-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--netflix-white);
    border-bottom: 2px solid var(--netflix-red);
    padding-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Service Cards - Style identique à status.css */
.service-card {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--netflix-light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-green);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

.service-card:hover::before {
    background: var(--netflix-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--netflix-red), var(--netflix-dark-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--netflix-white);
}

.service-info p {
    font-size: 0.9rem;
    color: var(--netflix-gray);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.service-status.operational {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.service-status.degraded {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.service-status.outage {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-details > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--netflix-light-gray);
}

.service-details > div:last-child {
    border-bottom: none;
}

.service-details .label {
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.service-details .value {
    color: var(--netflix-white);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--netflix-light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--netflix-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

.stat-card:hover::before {
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--netflix-red), var(--netflix-dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--netflix-gray);
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--netflix-gray);
    z-index: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--netflix-black);
    border: 2px solid var(--netflix-light-gray);
    border-radius: 12px;
    color: var(--netflix-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.clear-search-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--netflix-gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: var(--netflix-light-gray);
    color: var(--netflix-white);
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-filters select {
    padding: 0.75rem 1rem;
    background: var(--netflix-black);
    border: 2px solid var(--netflix-light-gray);
    border-radius: 8px;
    color: var(--netflix-white);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-filters select:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

/* Leaks Actions */
.leaks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.leaks-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--netflix-red), var(--netflix-dark-red));
    color: var(--netflix-white);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: var(--netflix-dark-gray);
    color: var(--netflix-white);
    border: 2px solid var(--netflix-light-gray);
}

.btn-secondary:hover {
    background: var(--netflix-light-gray);
    border-color: var(--netflix-red);
    transform: translateY(-2px);
}

/* Loading and No Leaks States */
.loading-leaks,
.no-leaks {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--netflix-gray);
}

.loading-leaks i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--netflix-red);
}

.no-leaks i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--netflix-gray);
}

.no-leaks h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
}

.no-leaks p {
    margin-bottom: 2rem;
}

/* Leaks Grid */
.leaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.leak-card {
    background: var(--netflix-black);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--netflix-light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.leak-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--netflix-red);
    transition: all 0.3s ease;
}

.leak-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(229, 9, 20, 0.2);
    border-color: var(--netflix-red);
}

.leak-card:hover::before {
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.leak-card.featured::before {
    background: linear-gradient(90deg, var(--warning-orange), var(--netflix-red));
}

.leak-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.leak-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--netflix-white);
    margin-bottom: 0.5rem;
}

.leak-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--netflix-red);
    color: var(--netflix-white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.leak-description {
    color: var(--netflix-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.leak-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--netflix-gray);
}

.leak-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.leak-priority.low {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-green);
}

.leak-priority.medium {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-orange);
}

.leak-priority.high {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-red);
}

.leak-priority.critical {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.leak-actions {
    display: flex;
    gap: 0.5rem;
}

.leak-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Footer - Style identique à la page d'accueil */
.leaks-footer {
    background: linear-gradient(135deg, var(--netflix-dark-gray) 0%, var(--netflix-black) 100%);
    border-top: 1px solid var(--netflix-light-gray);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    position: relative;
}

.leaks-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--netflix-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--netflix-white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--netflix-red);
    text-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

.footer-section p {
    color: var(--netflix-gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--netflix-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--netflix-red);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--netflix-light-gray);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: var(--netflix-gray);
}

/* Animations - Style identique à la page d'accueil */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card {
    animation: slideInRight 0.6s ease-out;
}

.status-section {
    animation: fadeInUp 0.8s ease-out;
}

.leak-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Animation de glow pour les éléments actifs */
.service-card:hover,
.stat-card:hover,
.leak-card:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaks-hero {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .leaks-grid {
        padding: 2rem 1rem;
    }
    
    .status-section {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leaks-grid {
        grid-template-columns: 1fr;
    }
    
    .leaks-footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .leaks-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .leaks-actions {
        justify-content: center;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-filters select {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .status-indicator {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .service-status {
        align-self: center;
    }
    
    .leak-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .leak-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}