/* 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. */

/* ═══════════════════════════════════════════════
   HERO — Version finale soignée
   ═══════════════════════════════════════════════ */
.hero { display:block; position:relative; background:transparent; }
.hero::before,.hero::after { display:none; }

/* Zone fond sombre — charte TADAO alignée itinéraire */
.hero-bg {
  background: #111;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,.022) 18px,
    rgba(255,255,255,.022) 36px
  );
  padding: 40px 0 80px;
  border-bottom: 4px solid #cc0000;
  position: relative;
}
/* Fond épuré : un seul accent de marque (coin haut-droit) + vignette basse
   pour la lisibilité — remplace l'ancienne superposition photo de métro en
   filigrane + double halo rouge, plus chargée que nécessaire. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 88% 0%, rgba(204,0,0,.28) 0%, transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid, .hero-tabs { position: relative; z-index: 1; }
.hero-trafic { position: relative; z-index: 1; }

/* Grille centrée */
.hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ── Bloc commun (blocs 2 & 3 : fond blanc) ── */
.hbloc {
  background: white;
  border-radius: 24px 24px 24px 24px;
  border: 1px solid rgba(255,255,255,.15);
  padding: 32px 32px 52px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.10);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: visible;
}
.hbloc:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.14), 0 16px 40px rgba(0,0,0,.14);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.3);
}

/* ── Bloc itinéraire (premier) : dark comme Tadao ── */
.hbloc:first-child {
  background: #111;
  border-color: rgba(255,255,255,.08);
}
.hbloc:first-child .hbloc-title strong { color: white; }
.hbloc:first-child .hbloc-title strong:last-child { color: rgba(255,255,255,.55); }
.hbloc:first-child .hbloc-inputs {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.hbloc:first-child .hbloc-input { color: white; }
.hbloc:first-child .hbloc-input::placeholder { color: rgba(255,255,255,.35); }
.hbloc:first-child .hbloc-hr { background: rgba(255,255,255,.1); }
.hbloc:first-child .hbloc-inputs:focus-within { border-color: rgba(255,255,255,.35); box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.hbloc:first-child .hbloc-foot { border-top-color: rgba(255,255,255,.1); }
.hbloc:first-child .hbloc-btn { background: white; color: #111; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.hbloc:first-child .hbloc-btn:hover { background: var(--primary); color: white; box-shadow: 0 6px 24px rgba(204,0,0,.4); }
.hbloc:first-child .hbloc-btn:active {
  transform: translateY(2px) scale(0.985);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.2);
}.hbloc:first-child .hbloc-btn-arr { background: #cc0000; }
.hbloc:first-child .hbloc-btn:hover .hbloc-btn-arr { background: white; color: #cc0000; }
.hbloc:first-child .hbloc-btn-sub { color: rgba(0,0,0,.4); }
.hbloc:first-child:hover { border-color: rgba(255,255,255,.15); }

/* Icône décorative coin haut droit */
.hbloc-icon {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.hbloc:not(:first-child) .hbloc-icon {
  background: #ffffff;
}

/* ── Titre TADAO 2 lignes ── */
.hbloc-title {
  margin-bottom: 10px;
  padding-right: 60px;
}
.hbloc-title strong {
  font-family: 'Plus Jakarta Sans',sans-serif;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #111;
  display: block;
}
.hbloc-title strong:first-child { font-size: clamp(26px, 2.4vw, 34px); }
.hbloc-title strong:last-child  { font-size: clamp(20px, 1.8vw, 26px); margin-left: 0; color: #444; }

/* Séparateur fin sous le titre */
.hbloc-rule {
  height: 2px;
  width: 36px;
  background: #cc0000;
  border-radius: 2px;
  margin: 14px 0 16px;
}

/* ── Description ── */
.hbloc-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #888;
  margin-bottom: 20px;
  font-weight: 400;
}
.hbloc:first-child .hbloc-desc { color: rgba(255,255,255,.45); }

/* ── Encart départ/arrivée ── */
.hbloc-inputs {
  background: #f7f7f5;
  border-radius: 14px;
  border: 1.5px solid #e4e4e0;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .2s;
}
.hbloc-inputs:focus-within { border-color: #cc0000; box-shadow: 0 0 0 3px rgba(204,0,0,.08); }
.hbloc-input {
  width: 100%; padding: 14px 16px; border: none; background: transparent;
  font-size: 14px; font-weight: 500;
  font-family: 'Plus Jakarta Sans',sans-serif;
  color: #111; outline: none; box-sizing: border-box; display: block;
}
.hbloc-input::placeholder { color: #bbb; font-weight: 400; }
.hbloc-hr { height: 1px; background: #e4e4e0; margin: 0; }

/* ── Input arrêt ── */
.hbloc-stop {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid #e4e4e0; border-radius: 14px;
  font-size: 14px; font-weight: 500;
  font-family: 'Plus Jakarta Sans',sans-serif;
  color: #111; background: #f7f7f5; outline: none; box-sizing: border-box;
  transition: border-color .2s;
}
.hbloc-stop::placeholder { color: #bbb; font-weight: 400; }
.hbloc-stop:focus { border-color: #cc0000; box-shadow: 0 0 0 3px rgba(204,0,0,.08); background: white; }

/* ── Sélecteur ligne (fiches horaires) ── */
.hbloc-select {
  width: 100%; padding: 14px 40px 14px 16px;
  border: 1.5px solid #e4e4e0; border-radius: 14px;
  font-size: 14px; font-weight: 500;
  font-family: 'Plus Jakarta Sans',sans-serif;
  color: #111; background: #f7f7f5; outline: none; box-sizing: border-box;
  transition: border-color .2s; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.hbloc-select:invalid { color: #bbb; }
.hbloc-select:focus { border-color: #cc0000; box-shadow: 0 0 0 3px rgba(204,0,0,.08); background-color: white; }

/* ── Bouton en bas à droite — style TADAO ── */
.hbloc-foot {
  position: absolute;
  right: 0;
  bottom: -26px;
  z-index: 10;
}

.hbloc-foot::before { display: none; }

.hbloc-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 8px 0 26px;
  background: var(--primary); color: white;
  border: none; border-radius: 100px;
  font-size: 13px; font-weight: 900;
  font-family: 'Plus Jakarta Sans',sans-serif;
  cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
  height: 52px;
  transition: background .2s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(204,0,0,.35);
  white-space: nowrap;
}
.hbloc-btn:hover { background: var(--prim-d); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(204,0,0,.45); }
.hbloc-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .08s, box-shadow .08s;
}

.hbloc-btn-arr {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(0,0,0,.18); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin: 7px 0;
  transition: background .2s, transform .2s;
}
.hbloc-btn:hover .hbloc-btn-arr { background: rgba(0,0,0,.2); transform: translateX(3px); }
.hbloc:first-child .hbloc-btn-arr { background: #cc0000; }
.hbloc:first-child .hbloc-btn:hover .hbloc-btn-arr { background: rgba(204,0,0,.85); }
.hbloc-btn-sub {
  display: block; font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.45); text-transform: none; letter-spacing: 0;
  margin-top: 1px;
}

/* ── Autocomplete ── */
.hbloc-ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 400;
  background: white; border: 1px solid #e4e4e0; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: 220px; overflow-y: auto;
}
.hbloc-sug {
  padding: 11px 16px; font-size: 13px; font-weight: 500; color: #111;
  cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px;
  transition: background .1s; border-bottom: 1px solid #f5f5f2;
}
.hbloc-sug:last-child { border-bottom: none; }
.hbloc-sug:hover { background: #fdf5f5; color: #cc0000; }

/* ── Bande INFO TRAFIC — style TADAO ── */
.hero-trafic {
  background: #fff;
  border-top: none;
  border-bottom: 3px solid #f4f4ee;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.htb-inner {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 1280px;
}
.htb-left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.htb-title { font-size: 28px; font-weight: 900; color: #111; text-transform: uppercase; letter-spacing: 1.4px; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; }
.htb-sep { width: 1px; height: 36px; background: #e4e4e0; flex-shrink: 0; }
.htb-lines {
  display: flex; align-items: center; gap: 6px;
  flex: 1; min-width: 0;
  overflow-x: auto; overflow-y: visible;
  padding: 10px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.htb-lines::-webkit-scrollbar { display: none; }
/* Desktop : ronds compacts 48px */
.htb-lines a {
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: visible !important; position: relative; text-decoration: none;
  background: #f4f4ee;
  transition: transform .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.htb-lines a:hover { transform: scale(1.13); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.htb-lines a img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
/* Lien texte desktop */
.htb-more {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 26px; font-weight: 700; color: #333;
  text-decoration: none; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid #e0e0d8;
  transition: all .15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.htb-more:hover { color: #cc0000; border-color: #cc0000; background: #fdf0f0; }
.htb-more i { font-size: 10px; }
/* Mobile : ronds 44px + bouton rond noir */
@media(max-width: 768px) {
  .hero-trafic { padding: 10px 14px; gap: 8px; }
  .htb-sep { display: none; }
  .htb-title { font-size: 10px; letter-spacing: .8px; font-weight: 900; }
  .htb-lines { gap: 8px; }
  .htb-lines a { width: 52px !important; height: 52px !important; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
  .htb-lines a img { padding: 5px; }
  .htb-more {
    width: 44px; height: 44px; min-width: 44px;
    border-radius: 50% !important;
    background: #111; color: white; border-color: #111;
    padding: 0; justify-content: center;
  }
  .htb-more i { font-size: 16px; }
  .htb-more span { display: none; }
  .htb-more:hover { background: #cc0000; border-color: #cc0000; color: white; }
}

/* ── Onglets mobile ── */
.hero-tabs { display: none; padding: 14px 16px 0; gap: 6px; }
.hero-tab {
  flex: 1; padding: 10px 6px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2); border-radius: 100px;
  font-size: 11px; font-weight: 800; font-family: 'Plus Jakarta Sans',sans-serif;
  color: rgba(255,255,255,.7); cursor: pointer; text-align: center;
  text-transform: uppercase; letter-spacing: .3px;
  transition: all .15s; outline: none;
}
.hero-tab.htab-on { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Responsive ── */
@media(max-width:1100px) {
  .hero-grid { padding: 0 24px; gap: 18px; }
  .hero-trafic { padding: 0 24px; }
}
@media(max-width:900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hbloc:first-child { grid-column: 1 / -1; }
  .hero-bg { padding: 28px 0 48px; }
}
@media(max-width:768px) {
  .hero-tabs { display: flex; }
  .hero-bg { padding: 0 0 40px; }
  .hero-grid { grid-template-columns: 1fr !important; padding: 14px 14px 0 !important; gap: 0 !important; }
  .hbloc { display: none !important; border-radius: 18px !important; padding-bottom: 28px !important; }
  .hbloc.mob-on { display: flex !important; }
  .hbloc:first-child { grid-column: auto; }
  .hero-trafic { padding: 0 14px; }
  .htb-title { font-size: 11px; }
  /* Bouton reste dans le bloc sur mobile */
  .hbloc-foot { position: static; margin-top: 20px; }
  .hbloc-btn { width: 100%; justify-content: space-between; }
}
