/* =====================================================================
   style2026.css - Styles communs des pages du nouveau site
   (a charger APRES dashboard2026.css)
   ===================================================================== */

/* Bandeau avec photo */
.weather-masthead {
  background:
    radial-gradient(ellipse 60% 75% at 50% 42%, rgba(15,23,42,.50) 0%, rgba(15,23,42,.22) 55%, rgba(15,23,42,0) 100%),
    url('IMG_0014.JPG') center 55% / cover no-repeat,
    linear-gradient(125deg, #0f172a 0%, #1e3a8a 48%, #0284c7 100%);
  min-height: 230px;
}
.weather-masthead .meteo-bar-container { background: rgba(15, 23, 42, 0.45); }
.masthead-title-box { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 20px 18px; }
.masthead-title-box h1, .masthead-title-box .site-titre { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; filter: drop-shadow(0 3px 10px rgba(0,0,0,.75)); }
.masthead-title-box p { font-size: clamp(0.9rem, 1.6vw, 1.08rem); margin-top: 6px; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.masthead-haut { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 18px; padding: 16px 22px 12px; }
.masthead-haut .masthead-title-box { padding: 8px 0; }
.masthead-cote { display: flex; align-items: center; gap: 10px; }
.masthead-cote.gauche { justify-content: flex-start; }
.masthead-cote.droite { justify-content: flex-end; flex-direction: column; align-items: flex-end; }
.ic-boite { display: block; line-height: 0; background: rgba(255,255,255,.92); border-radius: 12px; padding: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.ic-boite iframe { display: block; border: 0; border-radius: 8px; background: #fff; }
.ic-vignette { line-height: 0; }
.ic-vignette iframe { display: block; border: 0; background: transparent; max-width: 100%; }
/* StatIC et Infoclimat : deux badges identiques */
.masthead-cote.droite .ic-boite, .masthead-cote.droite .ic-logo { display: flex; align-items: center; justify-content: center; width: 150px; height: 58px; padding: 6px 10px; background: rgba(255,255,255,.95); border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.25); line-height: 0; transition: transform .15s ease; }
.masthead-cote.droite .ic-boite:hover, .masthead-cote.droite .ic-logo:hover { transform: translateY(-2px); }
.masthead-cote.droite img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 0; background: none; padding: 0; }
@media (max-width: 1050px) {
  .masthead-haut { grid-template-columns: 1fr 1fr; }
  .masthead-haut .masthead-title-box { grid-column: 1 / -1; order: -1; }
  .masthead-cote.gauche { justify-content: flex-end; }
  .masthead-cote.droite { align-items: flex-start; justify-content: center; }
}
@media (max-width: 560px) {
  .masthead-haut { grid-template-columns: 1fr; justify-items: center; }
  .masthead-cote.gauche, .masthead-cote.droite { justify-content: center; align-items: center; }
  .masthead-cote.droite { flex-direction: row; }
}

/* En-tete de page centre */
.date-heading { text-align: center; margin: 4px 0 18px; }
.date-heading .eyebrow { letter-spacing: 0.14em; }
.date-heading h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  color: #0f172a; margin: 4px 0 6px;
}
.date-heading p { font-size: 0.9rem; color: #64748b; }

/* Onglets 48 h / Mois / Annee */
.graph-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.graph-tabs a {
  padding: 8px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  color: #334155; background: #ffffff; border: 1px solid #e2e8f0; transition: all .15s ease;
}
.graph-tabs a:hover { border-color: #7dd3fc; color: #0284c7; }
.graph-tabs a.active { background: #0284c7; border-color: #0284c7; color: #ffffff; }

/* Petites cartes de valeurs */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.mini-stat {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(15,23,42,.03); position: relative; overflow: hidden;
}
.mini-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, #38bdf8); }
.mini-stat small { display: block; font-size: 0.74rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.mini-stat strong { display: block; font-size: 1.45rem; font-weight: 800; color: #0f172a; margin-top: 2px; }
.mini-stat strong span { font-size: 0.9rem; font-weight: 600; color: #64748b; margin-left: 2px; }
.mini-stat em { display: block; font-style: normal; font-size: 0.76rem; color: #94a3b8; }

/* Carte graphique */
.graph-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,.04); margin-bottom: 18px; position: relative; overflow: hidden;
}
.graph-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--g1, #f97316), var(--g2, #ef4444)); }
.graph-card-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; }
.graph-card-head h2 { font-size: 1.1rem; font-weight: 800; color: #0f172a; }
.graph-card-head a { font-size: 0.82rem; color: #0284c7; text-decoration: none; font-weight: 600; }
.graph-card-head a:hover { text-decoration: underline; }
.graph-img { display: block; width: 100%; height: auto; border-radius: 10px; background: #f8fafc; }
.graph-legende { margin-top: 10px; font-size: 0.78rem; color: #94a3b8; text-align: right; }

/* Pied de page */
.site-footer {
  margin-top: 22px; padding: 14px 18px; border-radius: 14px;
  background: #ffffff; border: 1px solid #e2e8f0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px;
  font-size: 0.82rem; color: #64748b;
}

/* Tablette / telephone */
@media (max-width: 1050px) {
  .site-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .content { min-width: 0; }
  .sidebar { padding: 8px; }
  .sidebar-footer { display: none; }
  .station-topbar { margin-bottom: 14px; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .site { padding: 8px; }
  .masthead-title-box { padding: 20px 14px 12px; }
  .masthead-title-box h1, .masthead-title-box .site-titre { font-size: 2.2rem; }
  .meteo-bar-container { padding: 8px 10px; justify-content: flex-start; }
  .meteo-bar-item { padding: 2px 8px; }
  .graph-card { padding: 14px 12px; }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(180deg, #070d1a 0%, #0b1220 40%, #0a1020 100%); color: #e2e8f0; }
  .station-topbar, .sidebar, .graph-card, .mini-stat, .site-footer, .graph-tabs a { background: #111a2e; border-color: #1e293b; box-shadow: none; }
  .station-topbar-title, .station-name, .date-heading h1, .graph-card-head h2, .mini-stat strong { color: #f1f5f9; }
  .station-topbar-subtitle, .date-heading p, .sidebar-footer, .mini-stat small, .mini-stat strong span, .site-footer { color: #94a3b8; }
  .station-topbar-status { background: rgba(16,185,129,.12); border-color: #065f46; color: #34d399; }
  .header-time { background: #e2e8f0; color: #0f172a; }
  .nav-item { color: #cbd5e1; }
  .nav-item:hover { background: #1e293b; color: #38bdf8; }
  .nav-item.active { background: rgba(2,132,199,.18); color: #38bdf8; }
  .nav-section { color: #64748b; }
  .sidebar-footer { border-color: #1e293b; }
  .graph-tabs a { color: #cbd5e1; }
  .graph-tabs a:hover { color: #38bdf8; border-color: #0369a1; }
  .graph-tabs a.active { background: #0284c7; border-color: #0284c7; color: #ffffff; }
  .graph-card-head a { color: #38bdf8; }
  .graph-img { background: #ffffff; padding: 4px; }
}

/* Statut hors ligne, liens du pied de page, graphique absent */
.station-topbar-status.hors-ligne { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.station-topbar-status.hors-ligne .status-dot { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.25); }
.pied-liens a { color: inherit; font-weight: 600; text-decoration: none; }
.pied-liens a:hover { color: #0284c7; }
.graph-absent { text-align: center; padding: 40px 10px; color: #94a3b8; background: #f8fafc; border-radius: 10px; }
@media (prefers-color-scheme: dark) {
  .station-topbar-status.hors-ligne { background: rgba(220,38,38,.15); border-color: #7f1d1d; color: #fca5a5; }
  .graph-absent { background: #0b1220; }
}

/* Titre du bandeau (lien vers l accueil) sur les pages interieures */
.masthead-title-box .site-titre { display: block; font-weight: 800; text-decoration: none; color: #fff; background: linear-gradient(90deg, #ffffff 0%, #bae6fd 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Police du titre de la banniere : DM Sans */
.masthead-title-box h1, .masthead-title-box .site-titre { font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.04em; }
