/* ============================================================
   TRANSFERT GARE — styles dédiés
   Identité : gare / ferroviaire — tableau de départ, tickets, rail
   ============================================================ */

/* ---------- HERO asymétrique (texte gauche / visuel droite) ---------- */
.tg-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  min-height: 620px;
  background: var(--text-hi);
  overflow: hidden;
}

.tg-hero h1 {
  color: #fff;
  margin-top: 16px;
  line-height: 1.08;
}
.tg-hero .lead {
  color: rgba(255,255,255,0.78);
  margin-top: 18px;
  max-width: 480px;
}
.tg-hero-bg {
  position: relative;
  overflow: hidden;
}
.tg-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--text-hi) 0%, rgba(10,10,10,0.35) 28%, rgba(10,10,10,0) 55%);
  z-index: 1;
}
.tg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

@media (max-width: 900px) {
  .tg-hero { grid-template-columns: 1fr; min-height: 0; }
  .tg-hero-bg { height: 300px; order: -1; }
  
  
  .tg-hero-bg::before { background: linear-gradient(180deg, rgba(10,10,10,0) 55%, var(--text-hi) 100%); }
}

/* ---------- TABLEAU DE DÉPART (split-flap) ---------- */
.tg-board {
  background: #0A0A0A;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.tg-board-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tg-board-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 10px;
  border-left: 1px dashed rgba(255,255,255,0.12);
}
.tg-board-item:first-child { border-left: none; }
.tg-board-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--accent-soft);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.tg-board-lbl {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .tg-board-row { grid-template-columns: repeat(2, 1fr); }
  .tg-board-item:nth-child(3) { border-left: none; }
}

/* ---------- INTRO ---------- */
.tg-intro { max-width: 760px; }
.tg-intro p { font-size: 1.05rem; line-height: 1.75; color: var(--text-mid); }
.tg-intro p + p { margin-top: 14px; }

/* ---------- GROUPES DE GARES ---------- */
.tg-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 8px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.tg-group-title-alt { margin-top: 48px; }

/* ---------- TICKETS (cartes façon billet perforé) ---------- */
.tg-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tg-ticket {
  position: relative;
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 2px 10px rgba(10,10,10,0.04);
  display: flex;
  flex-direction: column;
}
.tg-ticket::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 54px;
  border-top: 1.5px dashed rgba(10,10,10,0.14);
}
.tg-ticket-bus::after { border-top-color: rgba(16,124,86,0.22); }
.tg-ticket-top { display: flex; gap: 6px; margin-bottom: 10px; }
.tg-ticket-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-mid);
  border: 1px solid rgba(10,10,10,0.08);
}
.tg-ticket-tag.is-popular {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-line);
}
.tg-ticket h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 4px;
}
.tg-ticket-sub { font-weight: 500; color: var(--text-low); font-size: 0.88rem; }
.tg-ticket-note { font-size: 0.86rem; color: var(--text-low); margin: 0 0 8px; }
.tg-ticket-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.86rem; color: var(--text-mid); margin-top: auto;
}
.tg-ticket-meta .sep { color: rgba(10,10,10,0.25); }
.tg-ticket-price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-hi);
  font-size: 0.98rem;
}
.tg-ticket-price span { color: var(--accent); }
.tg-ticket-cta {
  margin-top: 12px;
  display: inline-block;
  text-align: center;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--text-hi);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.tg-ticket-cta:hover { background: var(--accent); }
.tg-price-disclaimer { margin-top: 22px; font-size: 0.86rem; color: var(--text-low); max-width: 640px; }

@media (max-width: 900px) {
  .tg-ticket-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tg-ticket-grid { grid-template-columns: 1fr; }
}

/* ---------- RAIL TIMELINE (déroulé du trajet) ---------- */
.tg-rail {
  list-style: none;
  margin: 0; padding: 0;
  max-width: 680px;
  position: relative;
}
.tg-rail-step {
  position: relative;
  padding: 0 0 40px 52px;
  border-left: 2px dashed rgba(16,124,86,0.28);
}
.tg-rail-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.tg-rail-num {
  position: absolute;
  left: -21px;
  top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center;
}
.tg-rail-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tg-rail-step p { color: var(--text-mid); line-height: 1.7; font-size: 0.98rem; }

/* ---------- USAGES ---------- */
.tg-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tg-usage-card {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 26px 22px;
}
.tg-usage-card svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; margin-bottom: 14px; }
.tg-usage-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tg-usage-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.65; }
@media (max-width: 900px) { .tg-usage-grid { grid-template-columns: 1fr; } }

/* ---------- TARIFICATION ---------- */
.tg-pricing { max-width: 700px; }
.tg-pricing p { font-size: 1.02rem; line-height: 1.75; color: var(--text-mid); }
.tg-pricing p + p { margin-top: 14px; }
.tg-pricing .btn { margin-top: 22px; }

/* ============================================================
   CORPS DE PAGE — regles manquantes (sections, sommaire,
   tableaux, encadres, listes, checklist)
   ============================================================ */

/* ---------- SOMMAIRE ---------- */
.tg-toc {
  padding: 56px 0 8px;
}
.tg-toc .container { max-width: 780px; }
.tg-toc h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.tg-toc-list {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.tg-toc-list li { counter-increment: toc; }
.tg-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: var(--text-hi);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.45;
  transition: background .18s ease, color .18s ease;
}
.tg-toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .75;
}
.tg-toc-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- SECTIONS ---------- */
.tg-section {
  padding: 72px 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.tg-section .container { max-width: 820px; }
.tg-section-alt { background: var(--surface-alt, #f7f7f5); }
.tg-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.22;
  margin-bottom: 24px;
}
.tg-section h3 {
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 38px 0 12px;
}
.tg-section p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text-mid);
}
.tg-section p + p { margin-top: 14px; }
.tg-section .btn { margin-top: 26px; }

/* ---------- LISTES ---------- */
.tg-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tg-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.tg-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.tg-list strong { color: var(--text-hi); }

/* ---------- CHECKLIST ---------- */
.tg-checklist {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tg-checklist li {
  position: relative;
  padding: 14px 16px 14px 46px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6e2);
  border-radius: var(--r-md);
  font-size: .98rem;
  line-height: 1.65;
  color: var(--text-mid);
}
.tg-checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 1.15em;
  width: 15px;
  height: 9px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
.tg-checklist strong {
  display: block;
  color: var(--text-hi);
  margin-bottom: 2px;
}

/* ---------- TABLEAUX ---------- */
.tg-table-wrap {
  margin: 24px 0 8px;
  overflow-x: auto;
  border: 1px solid var(--line, #e6e6e2);
  border-radius: var(--r-md);
  background: var(--card, #fff);
  -webkit-overflow-scrolling: touch;
}
.tg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 560px;
}
.tg-table thead th {
  background: var(--text-hi);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: left;
  padding: 13px 18px;
  white-space: nowrap;
}
.tg-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--line, #e6e6e2);
  color: var(--text-mid);
  line-height: 1.6;
  vertical-align: top;
}
.tg-table tbody tr:nth-child(even) { background: rgba(0,0,0,.015); }
.tg-table td:first-child {
  color: var(--text-hi);
  font-weight: 600;
  white-space: nowrap;
}
.tg-table strong { color: var(--text-hi); }

/* ---------- ENCADRES ---------- */
.tg-callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.tg-callout-title {
  margin: 0 0 6px !important;
  font-weight: 700;
  font-size: .78rem !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent) !important;
}
.tg-callout p {
  margin: 0;
  font-size: .97rem !important;
  line-height: 1.7 !important;
  color: var(--text-mid);
}
.tg-callout-info {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.tg-callout-info .tg-callout-title { color: var(--accent) !important; }
.tg-callout-tip {
  border-left-color: var(--amber, #c98a2b);
  background: var(--amber-dim, rgba(201,138,43,.08));
}
.tg-callout-tip .tg-callout-title { color: var(--amber, #c98a2b) !important; }

/* ---------- NOTE / CORRIDORS ---------- */
.tg-note {
  margin-top: 14px !important;
  font-size: .88rem !important;
  line-height: 1.65 !important;
  color: var(--text-low, #8a8a84) !important;
}
.tg-corridor-cities {
  margin: 0 0 10px !important;
  font-size: .82rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent) !important;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .tg-section { padding: 52px 0; }
  .tg-toc { padding: 40px 0 4px; }
  .tg-table { min-width: 480px; }
  .tg-table thead th,
  .tg-table td { padding: 11px 14px; }
}

/* ---------- HERO : adaptation a la structure HTML reelle ----------
   Le HTML place .container directement dans .tg-hero (pas de wrapper
   .tg-hero-content). L'image .tg-hero-bg est le 2e enfant -> colonne droite. */
.tg-hero > .container {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 620px;
  margin: 0;
  padding: 132px 40px 64px 0;
  justify-self: end;
  width: 100%;
}
.tg-hero > .container .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 18px;
}
.tg-hero > .container h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 20px;
}
.tg-hero > .container .lead {
  color: #fff;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  font-weight: 500;
  margin: 0 0 18px;
}
.tg-hero > .container p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0 0 12px;
  max-width: 54ch;
}
.tg-hero > .container .btn { margin-top: 14px; }
.tg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .tg-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tg-hero-bg {
    order: -1;
    height: 260px;
  }
  .tg-hero-bg::before {
    background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 100%);
  }
  .tg-hero > .container {
    max-width: 100%;
    justify-self: stretch;
    padding: 36px var(--gutter, 20px) 48px;
  }
}

/* ============================================================
   FAQ — structure <details>/<summary> (propre aux pages transfert)
   Selecteurs cibles sur .faq-list pour ne pas toucher les FAQ
   <button> des autres pages, qui vivent dans global.css.
   ============================================================ */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.faq-list details.faq-item {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6e6e2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-list details.faq-item[open] {
  border-color: var(--accent-line, rgba(20,120,80,.35));
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
}
.faq-list details.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, inherit);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-hi);
  transition: color .18s ease;
}
/* masquer le marqueur natif (fleche) */
.faq-list details.faq-item > summary::-webkit-details-marker { display: none; }
.faq-list details.faq-item > summary::marker { content: ""; }
.faq-list details.faq-item > summary:hover { color: var(--accent); }
/* chevron */
.faq-list details.faq-item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.faq-list details.faq-item[open] > summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq-list details.faq-item[open] > summary { color: var(--accent); }
.faq-list .faq-answer {
  padding: 0 22px 20px;
  animation: faqReveal .26s ease;
}
.faq-list .faq-answer p {
  margin: 0;
  font-size: .98rem !important;
  line-height: 1.75 !important;
  color: var(--text-mid) !important;
}
.faq-list .faq-answer p + p { margin-top: 10px; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .faq-list details.faq-item > summary { padding: 15px 17px; font-size: .97rem; }
  .faq-list .faq-answer { padding: 0 17px 17px; }
}

/* ---------- HERO : ajustements taille de police + espace header ----------
   Les H1 de ces pages sont longs (54 a 81 caracteres selon la langue).
   On reduit la taille et on degage l'espace sous le header fixe. */
.tg-hero > .container {
  padding-top: calc(var(--header-h, 72px) + 56px);
}
.tg-hero > .container h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.tg-hero > .container .lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.5;
}
.tg-hero > .container p {
  font-size: .96rem;
  line-height: 1.68;
}

/* Tablette */
@media (max-width: 1100px) {
  .tg-hero > .container h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
}

/* Mobile : le H1 doit rester lisible sans occuper la moitie de l'ecran */
@media (max-width: 900px) {
  .tg-hero > .container {
    padding-top: 34px;
  }
  .tg-hero > .container h1 {
    font-size: clamp(1.38rem, 5.4vw, 1.75rem);
    line-height: 1.18;
  }
  .tg-hero > .container .lead { font-size: 1rem; }
  .tg-hero > .container p { font-size: .93rem; line-height: 1.62; }
}
@media (max-width: 400px) {
  .tg-hero > .container h1 { font-size: 1.3rem; }
}

/* Palier tablette basse : eviter que le H1 plafonne trop haut
   quand il occupe toute la largeur */
@media (max-width: 900px) and (min-width: 601px) {
  .tg-hero > .container h1 { font-size: clamp(1.5rem, 3.4vw, 1.85rem); }
}
