/* Sorti de views/index.ejs le 15/11/2026 pour alléger les pages (fichier mis en cache par le navigateur). Modifier ICI, plus dans la vue. */

.ith-section {
  max-width: 1280px; margin: 0 auto 64px; padding: 0 40px;
}
.ith-head {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ith-head-title {
  font-size: 34px; font-weight: 900; color: #111;
  letter-spacing: -.6px; font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}
.ith-head-sep { font-size: 28px; color: #e5e7eb; font-weight: 200; line-height: 1; }
.ith-head-link {
  font-size: 14px; font-weight: 700; color: var(--primary, #cc0000);
  text-decoration: none; display: flex; align-items: center; gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  opacity: .85; transition: opacity .15s; white-space: nowrap;
}
.ith-head-link:hover { opacity: 1; }

/* Messages admin */
.ith-msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ith-msg {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 12px; border-left: 4px solid;
}
.ith-msg.info    { background: #eff6ff; border-color: #3b82f6; }
.ith-msg.warning { background: #fffbeb; border-color: #f59e0b; }
.ith-msg.alert   { background: #fef2f2; border-color: #ef4444; }
.ith-msg-ico { font-size: 15px; flex-shrink: 0; }
.ith-msg.info    .ith-msg-ico { color: #3b82f6; }
.ith-msg.warning .ith-msg-ico { color: #f59e0b; }
.ith-msg.alert   .ith-msg-ico { color: #ef4444; }
.ith-msg-titre { font-size: 13px; font-weight: 800; color: #111; }
.ith-msg-corps  { font-size: 12px; color: #6b7280; margin-top: 1px; }

/* 3 cartes modes */
.ith-modes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.ith-mode {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 36px 20px 28px;
  background: #fff; border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  text-decoration: none; transition: all .25s ease;
}
.ith-mode::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: currentColor; transform: scaleX(0);
  transform-origin: center; transition: transform .25s ease;
}
.ith-mode.metro { color: #c8a800; }
.ith-mode.tram  { color: #7c3aed; }
.ith-mode.bus   { color: #0075c9; }
.ith-mode.ter   { color: #8B1538; }
.ith-mode:hover { transform: translateY(-5px); border-color: currentColor; box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.ith-mode:hover::after { transform: scaleX(1); }

.ith-mode-logo { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(43,0,5,.18)); transition: transform .25s; }
.ith-mode:hover .ith-mode-logo { transform: scale(1.06); }

.ith-mode-name {
  font-size: 15px; font-weight: 900; color: #111;
  text-transform: uppercase; letter-spacing: .6px;
}
.ith-mode-lines {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: -8px;
}
.ith-mode-lines img { height: 22px; width: auto; }
.ith-mode-cta {
  font-size: 11px; font-weight: 700; color: currentColor;
  display: flex; align-items: center; gap: 4px; margin-top: auto;
  opacity: 0; transform: translateY(4px); transition: all .2s;
}
.ith-mode:hover .ith-mode-cta { opacity: 1; transform: translateY(0); }
.ith-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 20px; margin-top: 8px; letter-spacing: .2px;
}
.ith-status-ok { background: rgba(16,185,129,.12); color: #059669; }
.ith-status-alert { background: rgba(217,119,6,.12); color: #d97706; }
.ith-status-interruption { background: rgba(204,0,0,.10); color: var(--primary); }
.ith-mode--alert { border-color: rgba(204,0,0,.25) !important; }

@media (max-width: 768px) {
  .ith-section { padding: 0 20px; }
  .ith-head-title { font-size: 18px; }
}
@media (max-width: 560px) {
  .ith-modes { gap: 10px; }
  .ith-mode { padding: 26px 14px 22px; gap: 14px; }
  .ith-mode-logo { width: 60px; height: 60px; }
  .ith-mode-name { font-size: 13px; }
  .ith-mode-lines { display: none; }
  .ith-mode-cta { display: none; }
}

/* Bannière récap pannes métro */
.ith-recap-banner {
  margin-top: 16px; display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 18px;
  padding: 18px 22px; text-decoration: none; transition: all .2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ith-recap-banner:hover {
  border-color: rgba(204,0,0,.3); box-shadow: 0 10px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.ith-recap-ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(204,0,0,.1); color: var(--primary, #cc0000);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ith-recap-txt { flex: 1; min-width: 0; }
.ith-recap-title {
  font-size: 15px; font-weight: 900; color: #111;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ith-recap-desc { font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.ith-recap-cta {
  flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--primary, #cc0000);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
@media (max-width: 640px) {
  .ith-recap-banner { flex-wrap: wrap; padding: 16px 18px; }
  .ith-recap-desc { display: none; }
  .ith-recap-cta { margin-left: 62px; font-size: 12px; }
}

.ith-head-time {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; color: #9ca3af;
  font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap;
}
.ith-head-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}
