/* ==========================================================================
   STYLE GÉNÉRAL & BASE
   ========================================================================== */
.container, .container_octon { 
    max-width: 1100px; 
    margin: 20px auto;
    padding: 0 15px;
}

/* --- GRAPHIQUES & CARTES --- */
.graph-card { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    margin-bottom: 25px; 
    text-align: center; 
}
.bar-chart-svg { background: #fff; border-radius: 4px; }

/* --- BADGES & JAUGES --- */
.badge-record-chaud { background: #d63031; color: white; font-size: 0.7em; padding: 2px 6px; border-radius: 10px; margin-left: 5px; text-transform: uppercase; }
.badge-record-froid { background: #3498db; color: white; font-size: 0.7em; padding: 2px 6px; border-radius: 10px; margin-left: 5px; text-transform: uppercase; }

.bar-container { background: #e0e0e0; border-radius: 4px; width: 60px; height: 7px; display: inline-block; vertical-align: middle; overflow: hidden; margin-left: 5px; }
.bar-pluie { height: 100%; background: #3498db; }
.valeur { display: inline-block; width: 55px; font-weight: bold; text-align: right; color: #2d3436; }
.unit { font-size: 0.75em; color: #95a5a6; }

/* ==========================================================================
   TABLEAUX (STATISTIQUES ET LISTES)
   ========================================================================== */
table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 95%;
    max-width: 1200px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Bandeau de titre */
table tr:first-child:not(.current-year), 
table thead tr {
    background-color: #1e3c72 !important;
}

table tr:first-child:not(.current-year) td, 
table tr:first-child:not(.current-year) th,
table thead th {
    color: #ffffff !important;
    font-weight: bold;
    padding: 15px 10px;
    text-transform: uppercase;
    font-size: 0.85em;
    text-align: center;
}

/* Lignes de données */
table tr td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
    color: #333333 !important;
}

/* Zebra (Lignes alternées) */
table tr:nth-child(even):not(.current-year),
table tbody tr:nth-child(even):not(.current-year) {
    background-color: #f8f9fa;
}

/* L'année en cours (Jaune) */
table tr.current-year,
table tbody tr.current-year {
    background-color: #fff9e6 !important;
    border-left: 5px solid #f1c40f;
}

table tr.current-year td {
    color: #333333 !important;
    text-transform: none !important;
    font-weight: normal;
}

table tr.current-year td strong { font-weight: bold; }

/* Colonne Température (3ème) */
table tbody tr td:nth-child(3) {
    font-weight: bold;
    color: #1e3c72 !important;
}

/* ==========================================================================
   FORMULAIRES DE RECHERCHE & NAVIGATION
   ========================================================================== */
   
.form-releve-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin: 20px auto;
}

.releve-flex-form {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.btn-releve {
    height: 40px;
    padding: 0 20px;
    background-color: #1e3c72;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group { display: flex; flex-direction: column; text-align: left; }
.input-group label { font-size: 0.85em; font-weight: bold; color: #444; margin-bottom: 5px; }

input[type="date"] {
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

/* ==========================================================================
   BLOC "CONSULTER UNE ANNÉE" - VERSION ULTIME
   ========================================================================== */


#yearForm label {
    font-size: 0.95em !important;
    font-weight: bold !important;
    color: #4a5568 !important;
    margin: 0 !important;
    display: inline-block !important;
}

#yearForm select {
    padding: 6px 15px !important;
    border: 1px solid #3182ce !important;
    color: #3182ce !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    background: white !important;
    cursor: pointer !important;
}

.year-form-wrapper {
    border: 5px solid red !important;
}

/* ==========================================================================
   DIVERS & IFRAME
   ========================================================================== */
#zone-stats { display: none; opacity: 0; }
#zone-stats.visible { display: block !important; opacity: 1; }

.iframe-wrapper { position: relative; width: 100%; margin-top: 30px; }
iframe { width: 100%; height: 2000px; border: none; }