/**
 * Taxi Lille Connect — Interior-page components (phase 2).
 * Page hero, breadcrumbs, article layout with aside card, practical
 * checklist, related links, hub cards, legal prose, 404, blog defaults.
 */

/* =========================================================
   Page hero (compact dark opener for every interior page)
   ========================================================= */

.tlc-page-hero {
  position: relative;
  padding: calc(var(--tlc-header-height) + var(--tlc-space-xl)) 0 var(--tlc-space-xl);
  background:
    radial-gradient(120% 130% at 85% -20%, rgba(198, 161, 91, 0.12), transparent 55%),
    linear-gradient(160deg, var(--tlc-color-navy) 0%, var(--tlc-color-midnight) 55%, var(--tlc-color-ink) 100%);
  color: var(--tlc-color-text-inverse);
  border-bottom: 1px solid rgba(198, 161, 91, 0.16);
}

/* Photo-backed variant: the same gradient is layered over the image so
   the breadcrumb, H1 and lead stay legible whatever the photo does. */
.tlc-page-hero--photo {
  background-size: cover;
  background-position: center;
}

.tlc-page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.82) 45%, rgba(5, 10, 16, 0.55) 100%),
    linear-gradient(to top, rgba(5, 10, 16, 0.9), rgba(5, 10, 16, 0.2) 60%);
}

.tlc-page-hero--photo > * {
  position: relative;
  z-index: 2;
}

.tlc-page-hero h1 {
  max-width: 18ch;
  margin-bottom: var(--tlc-space-sm);
  color: var(--tlc-color-ivory);
}

.tlc-page-hero__lead {
  max-width: 58ch;
  font-size: var(--tlc-text-lead);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tlc-space-sm);
  margin-top: var(--tlc-space-lg);
}

/* ---------- Breadcrumbs ---------- */

.tlc-breadcrumb {
  margin-bottom: var(--tlc-space-md);
  font-size: var(--tlc-text-xs);
  letter-spacing: 0.04em;
}

.tlc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tlc-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-breadcrumb li + li::before {
  content: "›";
  color: var(--tlc-color-gold);
  opacity: 0.7;
}

.tlc-breadcrumb a {
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-breadcrumb a:hover {
  color: var(--tlc-color-gold);
}

.tlc-breadcrumb [aria-current="page"] {
  color: var(--tlc-color-ivory);
}

/* =========================================================
   Article layout: prose + sticky aside card
   ========================================================= */

.tlc-article {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: var(--tlc-space-2xl);
  align-items: start;
}

.tlc-prose {
  max-width: 68ch;
}

.tlc-prose h2 {
  font-size: var(--tlc-text-h3);
  margin: var(--tlc-space-xl) 0 var(--tlc-space-sm);
}

.tlc-prose h2:first-child {
  margin-top: 0;
}

.tlc-prose h3 {
  font-family: var(--tlc-font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: var(--tlc-space-lg) 0 0.5rem;
}

.tlc-prose p,
.tlc-prose li {
  color: var(--tlc-color-text-soft);
  line-height: 1.75;
}

.tlc-prose ul {
  padding-left: 1.1rem;
  margin: 0 0 1.1em;
}

.tlc-prose li {
  margin-bottom: 0.45rem;
}

.tlc-prose li::marker {
  color: var(--tlc-color-gold-muted);
}

.tlc-prose a:not(.tlc-btn) {
  color: var(--tlc-color-gold-text);
  text-decoration: underline;
  text-decoration-color: var(--tlc-color-gold-line);
  text-underline-offset: 3px;
}

/* Hover firms up the rule rather than lightening the text, which used to drop
   the link to 2.3:1 on paper. */
.tlc-prose a:not(.tlc-btn):hover {
  text-decoration-color: currentColor;
}

/* ---------- Aside contact/booking card ---------- */

/* A dark card inside a light section, so it has to invert the gold roles the
   way the .tlc-surface-* classes do — its eyebrow sits on midnight, not paper. */
.tlc-aside-card {
  position: sticky;
  top: calc(var(--tlc-header-height) + var(--tlc-space-md));
  padding: var(--tlc-space-lg);
  --tlc-color-focus: var(--tlc-color-gold);
  --tlc-color-gold-text: var(--tlc-color-gold);
  background: var(--tlc-color-midnight);
  color: var(--tlc-color-text-inverse);
  border-radius: var(--tlc-radius-md);
  box-shadow: var(--tlc-shadow-soft);
}

.tlc-aside-card .tlc-eyebrow {
  margin-bottom: 0.6rem;
}

.tlc-aside-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--tlc-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--tlc-color-ivory);
}

.tlc-aside-card p {
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-inverse-soft);
}

.tlc-aside-card__actions {
  display: grid;
  gap: var(--tlc-space-xs);
  margin-top: var(--tlc-space-md);
}

.tlc-aside-card__actions .tlc-btn {
  width: 100%;
}

.tlc-aside-card__note {
  margin-top: var(--tlc-space-sm);
  font-size: var(--tlc-text-xs);
  color: rgba(239, 234, 224, 0.55);
}

/* =========================================================
   Practical checklist (« Bon à savoir »)
   ========================================================= */

.tlc-practical {
  border-top: 1px solid var(--tlc-color-line-light);
}

.tlc-practical__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--tlc-space-lg);
  margin-top: var(--tlc-space-lg);
}

.tlc-practical__item {
  display: flex;
  gap: var(--tlc-space-sm);
  align-items: flex-start;
}

.tlc-practical__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--tlc-color-gold-muted);
  border: 1px solid var(--tlc-color-gold-line);
  border-radius: 50%;
}

.tlc-practical__icon svg {
  width: 17px;
  height: 17px;
}

.tlc-practical__item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--tlc-font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.tlc-practical__item p {
  margin: 0;
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-soft);
  line-height: 1.6;
}

/* ---------- Inline article figure ----------
   A real <img> inside the prose: indexable, alt-bearing, and surrounded
   by the topical text that image search actually reads. */

.tlc-prose figure {
  margin: var(--tlc-space-xl) 0;
}

.tlc-prose figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--tlc-radius-sm);
}

.tlc-prose figcaption {
  padding-top: 0.7rem;
  font-size: var(--tlc-text-xs);
  letter-spacing: 0.03em;
  color: var(--tlc-color-muted);
}

/* The same treatment outside the prose column, so the pages built from
   their own sections (contact, FAQ, réservation, avis) can carry an
   indexable photograph too. */
.tlc-inline-figure {
  margin: var(--tlc-space-xl) 0 0;
}

/* On /faq/ the figure opens the section and the question groups follow it
   directly, so it needs the trailing rhythm the prose version gets from the
   paragraph after it. */
.tlc-container > .tlc-inline-figure {
  margin-bottom: var(--tlc-space-xl);
}

.tlc-inline-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--tlc-radius-sm);
}

.tlc-inline-figure figcaption {
  padding-top: 0.7rem;
  font-size: var(--tlc-text-xs);
  letter-spacing: 0.03em;
  color: var(--tlc-color-muted);
}

/* ---------- Regulated tariff table ----------
   Wide content must scroll inside its own container rather than pushing the
   page sideways; the wrapper is what carries the overflow. */

.tlc-table-wrap {
  margin: var(--tlc-space-lg) 0;
  overflow-x: auto;
  border: 1px solid var(--tlc-color-line-light);
  border-radius: var(--tlc-radius-sm);
}

.tlc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tlc-text-small);
}

.tlc-table caption {
  padding: var(--tlc-space-sm) var(--tlc-space-md);
  font-size: var(--tlc-text-xs);
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--tlc-color-muted);
  border-bottom: 1px solid var(--tlc-color-line-light);
}

.tlc-table th,
.tlc-table td {
  padding: 0.7rem var(--tlc-space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tlc-color-line-light);
}

.tlc-table thead th {
  font-family: var(--tlc-font-body);
  font-size: var(--tlc-text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tlc-color-muted);
  background: var(--tlc-color-surface-ivory, #F6F2EA);
}

/* The amount column reads as a figure list, so keep it from wrapping. */
.tlc-table td:last-child,
.tlc-table th:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tlc-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Small print under a table or a figure. */
.tlc-note {
  margin-top: var(--tlc-space-sm);
  font-size: var(--tlc-text-xs);
  color: var(--tlc-color-muted);
}

/* ---------- Hub card photograph ---------- */

.tlc-hub-card {
  padding: 0;
}

.tlc-hub-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--tlc-transition-slow);
}

.tlc-hub-card:hover .tlc-hub-card__img,
.tlc-hub-card:focus-visible .tlc-hub-card__img {
  transform: scale(1.04);
}

.tlc-hub-card__body {
  padding: var(--tlc-space-lg);
}

.tlc-hub-card {
  overflow: hidden;
}

/* =========================================================
   Related links
   ========================================================= */

.tlc-related {
  border-top: 1px solid var(--tlc-color-line-light);
  padding-top: var(--tlc-space-lg);
  margin-top: var(--tlc-space-xl);
}

.tlc-related__title {
  margin: 0 0 var(--tlc-space-sm);
  font-family: var(--tlc-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: var(--tlc-tracking-wider);
  text-transform: uppercase;
  color: var(--tlc-color-gold-text);
}

.tlc-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tlc-space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tlc-related a {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: var(--tlc-text-xs);
  font-weight: 500;
  color: var(--tlc-color-text-soft);
  border: 1px solid var(--tlc-color-line-light);
  border-radius: 999px;
  transition: border-color var(--tlc-transition), color var(--tlc-transition), background var(--tlc-transition);
}

.tlc-related a:hover,
.tlc-related a:focus-visible {
  border-color: var(--tlc-color-gold);
  color: var(--tlc-color-gold-text);
  background: rgba(198, 161, 91, 0.06);
}

/* =========================================================
   Hub cards (services/ and destinations/ index pages)
   ========================================================= */

.tlc-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--tlc-color-line-light);
  border-left: 1px solid var(--tlc-color-line-light);
  margin-top: var(--tlc-space-lg);
}

.tlc-hub-card {
  display: block;
  padding: var(--tlc-space-lg);
  border-right: 1px solid var(--tlc-color-line-light);
  border-bottom: 1px solid var(--tlc-color-line-light);
  color: inherit;
  transition: background var(--tlc-transition);
}

.tlc-hub-card:hover,
.tlc-hub-card:focus-visible {
  background: rgba(198, 161, 91, 0.07);
}

.tlc-hub-card__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--tlc-space-sm);
  color: var(--tlc-color-gold-muted);
}

.tlc-hub-card__icon svg {
  width: 26px;
  height: 26px;
}

.tlc-hub-card h2,
.tlc-hub-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--tlc-font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.tlc-hub-card p {
  margin: 0 0 0.7rem;
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-soft);
  line-height: 1.6;
}

.tlc-hub-card__more {
  font-size: var(--tlc-text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tlc-color-gold-text);
}

.tlc-hub-group + .tlc-hub-group {
  margin-top: var(--tlc-space-2xl);
}

.tlc-hub-group > h2 {
  font-size: var(--tlc-text-h3);
}

/* =========================================================
   Contact page
   ========================================================= */

.tlc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--tlc-space-md);
  margin-top: var(--tlc-space-lg);
}

/* min-width:0 because the grid-item default of auto pins each 1fr track to the
   mailto button's 355px min-content and shears the cards off the viewport. */
.tlc-contact-card {
  min-width: 0;
  padding: var(--tlc-space-lg);
  border: 1px solid var(--tlc-color-line-light);
  border-radius: var(--tlc-radius-md);
  background: var(--tlc-color-white);
  text-align: center;
}

.tlc-contact-card .tlc-practical__icon {
  margin-inline: auto;
  margin-bottom: var(--tlc-space-sm);
}

/* The e-mail address is one unbreakable token; let it wrap rather than push. */
.tlc-contact-card .tlc-btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tlc-contact-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--tlc-font-body);
  font-size: 1rem;
  font-weight: 600;
}

.tlc-contact-card p {
  margin: 0 0 var(--tlc-space-sm);
  font-size: var(--tlc-text-small);
  color: var(--tlc-color-text-soft);
}

/* =========================================================
   Legal pages — narrow centered prose
   ========================================================= */

.tlc-legal .tlc-prose {
  margin-inline: auto;
}

.tlc-legal .tlc-todo {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(198, 161, 91, 0.14);
  border: 1px dashed var(--tlc-color-gold-muted);
  border-radius: var(--tlc-radius-sm);
  font-size: 0.85em;
  color: var(--tlc-color-gold-text);
}

/* =========================================================
   404
   ========================================================= */

.tlc-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% -30%, rgba(198, 161, 91, 0.1), transparent 60%),
    linear-gradient(170deg, var(--tlc-color-navy), var(--tlc-color-ink));
  color: var(--tlc-color-text-inverse);
  padding: calc(var(--tlc-header-height) + var(--tlc-space-xl)) 0 var(--tlc-space-2xl);
}

.tlc-404__code {
  display: block;
  font-family: var(--tlc-font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  color: var(--tlc-color-gold);
  margin-bottom: var(--tlc-space-sm);
}

.tlc-404 h1 {
  color: var(--tlc-color-ivory);
}

.tlc-404 p {
  max-width: 46ch;
  margin-inline: auto;
}

.tlc-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tlc-space-sm);
  margin-top: var(--tlc-space-lg);
}

/* =========================================================
   Blog defaults (archives, single, search) — restrained
   ========================================================= */

body.blog #main-content,
body.archive #main-content,
body.search #main-content,
body.single-post #main-content {
  padding-top: calc(var(--tlc-header-height) + var(--tlc-space-lg));
}

body.single-post .et_post_meta_wrapper h1,
body.blog article h2,
body.archive article h2 {
  font-family: var(--tlc-font-display);
}

/* =========================================================
   Divi bridge for interior layouts
   (rows tagged tlc-grid-row become grids — see divi.css)
   ========================================================= */

/* Stretch, not start: sticky needs the aside's grid area to be as tall as the
   row. Divi then nests the card inside .et_pb_module > .et_pb_code_inner, and
   that inner div is the card's containing block, so the whole chain has to
   grow with it or the card still pins for barely a hundred pixels. */
.et_pb_row.tlc-row-article {
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  gap: var(--tlc-space-2xl);
  align-items: stretch;
}

.tlc-row-article > .et_pb_column:last-child,
.tlc-row-article > .et_pb_column:last-child .et_pb_module,
.tlc-row-article > .et_pb_column:last-child .et_pb_code_inner {
  height: 100%;
}

@media (max-width: 1080px) {
  .et_pb_row.tlc-row-article {
    grid-template-columns: 1fr;
    gap: var(--tlc-space-xl);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .tlc-article {
    grid-template-columns: 1fr;
    gap: var(--tlc-space-xl);
  }

  .tlc-aside-card {
    position: static;
    max-width: 460px;
  }

  .tlc-practical__grid,
  .tlc-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tlc-hub-grid {
    grid-template-columns: 1fr;
  }

  .tlc-practical__grid,
  .tlc-contact-grid {
    grid-template-columns: 1fr;
  }

  .tlc-page-hero__actions .tlc-btn {
    flex: 1 1 auto;
  }
}
