/* ================================================================
   KTF — departures.css
   Page Départs + Section partielle + Bannière promo
   Charte : bleu #1EAAE2 · rouge #D93A2B · orange #F07828 · jaune #F5C800
   ================================================================ */

/* ════════════════════════════════════════════════
   BANNIÈRE PROMO (ktf-promo-banner)
   ════════════════════════════════════════════════ */
   /* ── Barre de progression ── */
.trk-scroll-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--red) 33%, var(--orange) 66%, var(--yellow) 100%);
  transition: width .1s linear; pointer-events: none;
}

#ktfPromoBanner {
  width: 100%;
  position: relative;
  z-index: 190;
  overflow: hidden;
  transition: max-height .38s ease, opacity .3s ease;
}

.ktf-pb {
  background: linear-gradient(110deg,
    var(--dark)   0%,
    var(--dark-3) 40%,
    var(--dark-2) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Motif de points décoratif */
.ktf-pb::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(
    circle, rgba(255,255,255,.055) 1px, transparent 1px
  );
  background-size: 22px 22px;
  pointer-events: none;
}

/* Barre tricolore en bas */
.ktf-pb::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--blue) 0% 33.33%,
    var(--red)  33.33% 66.66%,
    var(--orange) 66.66% 100%
  );
}

/* Halos lumineux */
.ktf-pb__halo {
  position: absolute; border-radius: 50%;
  pointer-events: none;
}
.ktf-pb__halo--1 {
  width: 280px; height: 280px;
  right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(30,170,226,.12) 0%, transparent 65%);
}
.ktf-pb__halo--2 {
  width: 160px; height: 160px;
  left: -40px; bottom: -60px;
  background: radial-gradient(circle, rgba(240,120,40,.1) 0%, transparent 65%);
}

.ktf-pb__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: 1.1rem; padding: .85rem 0;
  flex-wrap: wrap;
}

/* Badge pill */
.ktf-pb__badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .85rem;
  background: var(--orange);
  color: #fff;
  border-radius: 20px;
  font-family: var(--fd);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  animation: ktfPbPulse 2.4s ease-in-out infinite;
}
@keyframes ktfPbPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(240,120,40,.4); }
  50%     { box-shadow: 0 0 0 7px rgba(240,120,40,0); }
}

/* Texte */
.ktf-pb__text { flex: 1; min-width: 200px; }
.ktf-pb__title {
  font-family: var(--fd);
  font-size: 1rem; font-weight: 700;
  color: #fff; margin: 0 0 .1rem;
  line-height: 1.25; letter-spacing: .02em;
  text-transform: uppercase;
}
.ktf-pb__sub {
  font-family: var(--fs);
  font-size: .82rem; color: rgba(255,255,255,.62);
  margin: 0; line-height: 1.4;
}

/* Compte à rebours */
.ktf-pb__cd {
  display: flex; align-items: center;
  gap: .4rem; flex-shrink: 0;
}
.ktf-pb__cd-sep {
  font-size: 1.1rem; font-weight: 800;
  color: rgba(255,255,255,.3); margin-top: -3px;
}
.ktf-pb__cd-unit {
  text-align: center;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r1); padding: .32rem .6rem;
  min-width: 42px;
}
.ktf-pb__cd-num {
  display: block;
  font-family: var(--fd);
  font-size: 1.5rem; font-weight: 700;
  color: var(--yellow); line-height: 1;
}
.ktf-pb__cd-lbl {
  display: block; font-family: var(--fs);
  font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.4); margin-top: 1px;
}

/* CTA */
.ktf-pb__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1.3rem;
  background: var(--blue); color: #fff;
  border-radius: var(--r1);
  font-family: var(--fd);
  font-size: .88rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(30,170,226,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.ktf-pb__cta:hover {
  background: var(--blue-dk); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30,170,226,.5);
}

/* Bouton fermer */
.ktf-pb__close {
  position: absolute; top: 50%; right: 0;
  transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  cursor: pointer; font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, color .18s;
}
.ktf-pb__close:hover { background: rgba(255,255,255,.25); color: #fff; }

/* Validité */
.ktf-pb__validity {
  width: 100%; text-align: center;
  font-family: var(--fs);
  font-size: .72rem; color: rgba(255,255,255,.35);
  padding: .1rem 0 .4rem; letter-spacing: .03em;
}
.ktf-pb__validity i { margin-right: .3rem; color: var(--yellow); opacity: .7; }

/* ════════════════════════════════════════════════
   SECTION DÉPARTS (commune page + partial)
   ════════════════════════════════════════════════ */
.dep-section {
  padding: 5.5rem 0;
  background: var(--off);
}

/* En-tête section */
.dep-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.dep-head__text {}
.dep-head__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dep-stat {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: var(--r2);
  padding: .85rem 1.25rem;
  min-width: 90px;
}
.dep-stat__num {
  display: block;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: .2rem;
}
.dep-stat__lbl {
  font-family: var(--fs);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--g500);
}
.dep-head__link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--fb); font-weight: 600; font-size: .85rem;
  color: var(--blue); text-decoration: none;
  border-bottom: 1.5px solid rgba(30,170,226,.3);
  padding-bottom: 2px;
  transition: gap .2s, border-color .2s;
}
.dep-head__link:hover { gap: .7rem; border-color: var(--blue); }

/* Mini stats page complète */
.dep-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.dep-hero-stat {
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: var(--r3);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all .28s var(--ease);
}
.dep-hero-stat:hover { transform: translateY(-4px); box-shadow: var(--sh-card); }
.dep-hero-stat__ico {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin: 0 auto .85rem;
}
.dep-hero-stat:nth-child(1) .dep-hero-stat__ico { background: rgba(30,170,226,.1); color: var(--blue); }
.dep-hero-stat:nth-child(2) .dep-hero-stat__ico { background: rgba(217,58,43,.1);  color: var(--red); }
.dep-hero-stat:nth-child(3) .dep-hero-stat__ico { background: rgba(240,120,40,.1); color: var(--orange); }
.dep-hero-stat:nth-child(4) .dep-hero-stat__ico { background: rgba(245,200,0,.12); color: var(--yellow-dk); }
.dep-hero-stat__num {
  font-family: var(--fd); font-weight: 700; font-size: 2.2rem;
  line-height: 1; color: var(--dark); margin-bottom: .25rem;
}
.dep-hero-stat:nth-child(1) .dep-hero-stat__num { color: var(--blue); }
.dep-hero-stat:nth-child(2) .dep-hero-stat__num { color: var(--red); }
.dep-hero-stat:nth-child(3) .dep-hero-stat__num { color: var(--orange); }
.dep-hero-stat:nth-child(4) .dep-hero-stat__num { color: var(--yellow-dk); }
.dep-hero-stat__lbl {
  font-family: var(--fb); font-weight: 600; font-size: .82rem;
  color: var(--dark); margin-bottom: .15rem;
}
.dep-hero-stat__sub {
  font-family: var(--fs); font-size: .72rem; color: var(--g500);
}

/* Barre de filtres */
.dep-filters {
  display: flex; align-items: center;
  gap: .5rem; margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.dep-ftab {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem;
  font-family: var(--fd); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid var(--g100);
  border-radius: var(--r4);
  background: var(--white); color: var(--g700);
  cursor: pointer; transition: all .22s var(--ease);
  white-space: nowrap;
}
.dep-ftab:hover { border-color: var(--blue); color: var(--blue); background: rgba(30,170,226,.06); }
.dep-ftab--active { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 4px 14px rgba(30,170,226,.3); }
.dep-ftab--active:hover { background: var(--blue-dk); border-color: var(--blue-dk); }
/* Accents couleur par mode */
.dep-ftab[data-depfilter="routier"].dep-ftab--active  { background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 14px rgba(240,120,40,.3); }
.dep-ftab[data-depfilter="maritime"].dep-ftab--active { background: var(--blue-dk); border-color: var(--blue-dk); }
.dep-ftab[data-depfilter="aerien"].dep-ftab--active   { background: var(--red); border-color: var(--red); box-shadow: 0 4px 14px rgba(217,58,43,.3); }

/* Bouton refresh */
.dep-refresh {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem;
  font-family: var(--fs); font-size: .8rem; font-weight: 600;
  color: var(--g500); border: 1.5px solid var(--g100);
  border-radius: var(--r4); background: var(--white);
  cursor: pointer; margin-left: auto;
  transition: all .22s;
}
.dep-refresh:hover { color: var(--blue); border-color: var(--blue); }
.dep-refresh.spinning i { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* En-tête tableau (desktop) */
.dep-thead {
  display: grid;
  grid-template-columns: 100px 1fr 130px 140px 110px 160px;
  gap: 0;
  background: var(--dark);
  border-radius: var(--r2) var(--r2) 0 0;
  padding: .75rem 1.25rem;
  font-family: var(--fd); font-weight: 600;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.dep-thead span:last-child { text-align: right; }

/* Wrapper liste */
.dep-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--g100);
  border-top: none;
  border-radius: 0 0 var(--r2) var(--r2);
  overflow: hidden;
  background: var(--white);
}

/* Ligne départ */
.dep-row {
  display: grid;
  grid-template-columns: 100px 1fr 130px 140px 110px 160px;
  gap: 0;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--g100);
  transition: background .2s;
  position: relative;
}
.dep-row:last-child { border-bottom: none; }
.dep-row:hover { background: var(--off); }
.dep-row--full { opacity: .65; }

/* Barre colorée gauche selon mode */
.dep-row::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 2px;
}
.dep-row[data-depmode="routier"]::before  { background: var(--orange); }
.dep-row[data-depmode="maritime"]::before { background: var(--blue); }
.dep-row[data-depmode="aerien"]::before   { background: var(--red); }

/* ── Colonnes ── */
.dep-col { display: flex; align-items: center; }

/* Date */
.dep-date {
  display: flex; flex-direction: column; line-height: 1.1;
  padding-left: .5rem;
}
.dep-date strong {
  font-family: var(--fd); font-weight: 700; font-size: 1.6rem;
  color: var(--dark); line-height: 1;
}
.dep-date span {
  font-family: var(--fs); font-size: .72rem; color: var(--g500);
  text-transform: uppercase; letter-spacing: .05em;
}

/* Trajet */
.dep-route {
  display: flex; align-items: center; gap: .75rem;
}
.dep-route__pt { display: flex; flex-direction: column; }
.dep-route__city {
  font-family: var(--fb); font-weight: 700; font-size: .95rem;
  color: var(--dark);
}
.dep-route__co {
  font-family: var(--fs); font-size: .72rem; color: var(--g500);
}
.dep-route__arrow {
  color: var(--g300); font-size: .85rem; flex-shrink: 0;
}

/* Mode badge */
.dep-mode {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .75rem;
  border-radius: var(--r4);
  font-family: var(--fs); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em;
}
.dep-mode--routier  { background: rgba(240,120,40,.1); color: var(--orange-dk); }
.dep-mode--maritime { background: rgba(30,170,226,.1); color: var(--blue-dk); }
.dep-mode--aerien   { background: rgba(217,58,43,.1);  color: var(--red-dk); }

/* Disponibilité */
.dep-dispo { flex-direction: column; align-items: flex-start; }
.dep-dispo strong { font-family: var(--fb); font-weight: 700; font-size: .92rem; color: var(--dark); }
.dep-dispo small  { font-family: var(--fs); font-size: .7rem; color: var(--g500); }
.dep-dispo--lim strong { color: var(--orange-dk); }
.dep-dispo--full {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--fs); font-size: .78rem; font-weight: 600;
  color: var(--red-dk);
}

/* Statuts */
.dep-status {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; border-radius: var(--r4);
  font-family: var(--fs); font-size: .75rem; font-weight: 700;
}
.dep-s-open { background: rgba(30,170,226,.1); color: var(--blue-dk); }
.dep-s-lim  { background: rgba(240,120,40,.1); color: var(--orange-dk); }
.dep-s-full { background: rgba(217,58,43,.1);  color: var(--red-dk); }

/* Actions */
.dep-col--action { justify-content: flex-end; }
.dep-actions { display: flex; align-items: center; gap: .5rem; }

.dep-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem;
  font-family: var(--fd); font-weight: 600;
  font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  border-radius: var(--r1); text-decoration: none;
  transition: all .22s var(--ease); white-space: nowrap;
  border: none; cursor: pointer;
}
.dep-btn--reserve {
  background: var(--blue); color: #fff;
  box-shadow: 0 3px 10px rgba(30,170,226,.35);
}
.dep-btn--reserve:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,170,226,.45); }
.dep-btn--wa {
  background: #25D366; color: #fff;
  padding: .55rem .75rem;
  box-shadow: 0 3px 10px rgba(37,211,102,.3);
}
.dep-btn--wa:hover { background: #1EB359; transform: translateY(-2px); }
.dep-btn--waitlist {
  background: var(--g100); color: var(--g700);
  font-size: .78rem;
}
.dep-btn--waitlist:hover { background: var(--g300); }

/* Message "aucun résultat" */
.dep-empty {
  display: none;
  padding: 3rem; text-align: center;
  font-family: var(--fs); color: var(--g500); font-size: .95rem;
}
.dep-empty i { font-size: 2rem; color: var(--g300); display: block; margin-bottom: .75rem; }
.dep-empty.visible { display: block; }

/* Pied de section */
.dep-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.dep-footer__custom {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--fs); font-size: .88rem; color: var(--g700);
}
.dep-footer__custom i { color: var(--orange); }
.dep-footer__custom a { color: var(--blue); font-weight: 600; text-decoration: none; }
.dep-footer__custom a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════
   BANNIÈRE CTA FINALE (page complète)
   ════════════════════════════════════════════════ */
.dep-cta-section {
  padding: 5rem 0;
  background: var(--dark-2);
  position: relative; overflow: hidden;
}
.dep-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%,
    rgba(30,170,226,.1) 0%, transparent 65%);
  pointer-events: none;
}
.dep-cta-section::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--red) 33%, var(--orange) 66%, var(--yellow) 100%);
}
.dep-cta-inner {
  position: relative; z-index: 2;
  text-align: center;
}
.dep-cta-tag {
  font-family: var(--fs); font-size: .7rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: .85rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.dep-cta-tag::before, .dep-cta-tag::after {
  content: ''; display: block;
  width: 24px; height: 1.5px; background: var(--blue-lt);
}
.dep-cta-title {
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--white); line-height: 1.1; margin-bottom: .6rem;
}
.dep-cta-title span { color: var(--blue-lt); }
.dep-cta-sub {
  font-family: var(--fs); font-size: .97rem;
  color: rgba(255,255,255,.55); max-width: 520px;
  margin: 0 auto 2rem;
}
.dep-cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.btn-wa-green {
  background: #25D366; color: #fff;
  box-shadow: 0 5px 18px rgba(37,211,102,.35);
}
.btn-wa-green:hover { background: #1EB359; transform: translateY(-3px); }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .dep-thead { display: none; }
  .dep-row {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: .5rem; padding: 1.1rem 1rem 1.1rem 1.35rem;
  }
  .dep-col--date   { grid-column: 1; grid-row: 1; }
  .dep-col--route  { grid-column: 2; grid-row: 1; }
  .dep-col--mode   { grid-column: 1 / -1; grid-row: 2; }
  .dep-col--dispo  { grid-column: 1 / 2; grid-row: 3; }
  .dep-col--status { grid-column: 2 / 3; grid-row: 3; }
  .dep-col--action { grid-column: 1 / -1; grid-row: 4; justify-content: flex-start; }
  .dep-hero-stats  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dep-section { padding: 4rem 0; }
  .dep-head { flex-direction: column; align-items: flex-start; }
  .ktf-pb__inner  { gap: .8rem; padding: .75rem 0; }
  .ktf-pb__title  { font-size: .92rem; }
  .ktf-pb__sub    { display: none; }
  .ktf-pb__cd-num { font-size: 1.25rem; }
  .ktf-pb__cta    { padding: .55rem 1rem; font-size: .82rem; }
  .dep-cta-actions { flex-direction: column; }
  .dep-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .dep-hero-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .ktf-pb__cd     { display: none; }
  .ktf-pb__badge  { font-size: .65rem; }
}
