/* ==========================================
   SITE CLIMAT - STYLE PRINCIPAL
   Design inspiré de Declaration.jsx
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

.navbar .nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #4CAF50;
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.page-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   HEADER PAGE
   ========================================== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
}

.page-header .date {
    font-style: italic;
    color: #64748b;
    margin-top: 10px;
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    margin-bottom: 40px;
}

.section h2 {
    color: #38bdf8;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
    padding-left: 15px;
}

.section h3 {
    color: #7dd3fc;
    font-size: 1.3rem;
    margin: 25px 0 15px;
}

.section p {
    color: #cbd5e1;
    margin-bottom: 15px;
    text-align: justify;
}

/* ==========================================
   GRAPHIQUES
   ========================================== */
.graph-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.graph-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.graph-caption {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 15px;
    font-style: italic;
}

/* ==========================================
   CARTES ACCUEIL
   ========================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #4CAF50;
}

.card h3 {
    color: #4CAF50;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card p {
    color: #94a3b8;
    font-size: 1rem;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ==========================================
   TABLEAU DE DONNEES
   ========================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    font-weight: bold;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   ENCADRES
   ========================================== */
.info-box {
    background: rgba(56, 189, 248, 0.1);
    border-left: 4px solid #38bdf8;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

.success-box {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

/* ==========================================
   SOURCES
   ========================================== */
.sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sources h3 {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources li {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.sources li::before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
}

.sources a {
    color: #38bdf8;
    text-decoration: none;
}

.sources a:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .navbar .nav-links {
        gap: 15px;
    }

    .container {
        padding: 80px 15px 40px;
    }

    .page-container {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
