/* THEME VARIABLES */
:root {
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.2);
  --max-width: 1280px;

  /* Light theme par défaut */
  --bg-shell: #f3f4f6;
  --bg-main: #ffffff;
  --bg-alt: #f9fafb;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #f9fafb;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-soft: rgba(156, 163, 175, 0.6);
}

:root[data-theme="dark"] {
  --bg-main: #020617;
  --bg-alt: #020617;
  --bg-shell: radial-gradient(circle at top, #0f172a 0, #020617 52%, #000 100%);
  --bg-card: #020617;
  --bg-elevated: #020617;
  --bg-elevated-soft: rgba(15,23,42,0.92);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-shell);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.fiche-page-shell {
  min-height: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

:root[data-theme="dark"] header {
  background: linear-gradient(to bottom, rgba(15,23,42,0.94), rgba(15,23,42,0.8));
}

:root[data-theme="light"] header {
  background: rgba(249,250,251,0.96);
}

.fiche-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.fiche-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.fiche-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.55);
  background:
    radial-gradient(circle at 20% 0, #38bdf8 0, transparent 55%),
    radial-gradient(circle at 80% 100%, #22c55e 0, transparent 60%),
    #020617;
  position: relative;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.6), 0 10px 26px rgba(15,23,42,0.3);
}

.fiche-brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.7);
}

.fiche-brand-text-main {
  font-weight: 650;
  letter-spacing: 0.09em;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.fiche-brand-text-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.fiche-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.fiche-nav-link {
  color: var(--text-muted);
  padding: 0.25rem 0;
  white-space: nowrap;
}
.fiche-nav-link:hover {
  color: var(--text-main);
}

.fiche-nav-link--active {
  color: var(--accent);
  position: relative;
}
.fiche-nav-link--active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.27rem;
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent), #22c55e);
}

.fiche-nav-cta {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  padding: 0.3rem 0.95rem;
  font-size: 0.82rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.18), transparent 60%);
  box-shadow: 0 10px 26px rgba(15,23,42,0.15);
  white-space: nowrap;
}
.fiche-nav-cta span:first-child {
  font-size: 1rem;
  opacity: 0.9;
}

/* Bouton thème */
.fiche-theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  padding: 0.2rem 0.6rem 0.2rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.fiche-theme-toggle-icon {
  font-size: 1rem;
}

.fiche-theme-toggle-label {
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Burger mobile */
.fiche-burger-btn {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: transparent;
  padding: 0.25rem 0.55rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fiche-burger-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.fiche-burger-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}

.fiche-burger-icon span:nth-child(1) {
  top: 4px;
}
.fiche-burger-icon span:nth-child(2) {
  top: 8px;
}
.fiche-burger-icon span:nth-child(3) {
  top: 12px;
}

.fiche-burger-btn.open .fiche-burger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.fiche-burger-btn.open .fiche-burger-icon span:nth-child(2) {
  opacity: 0;
}
.fiche-burger-btn.open .fiche-burger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.fiche-burger-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fiche-mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
}

.fiche-mobile-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.4rem 2rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.fiche-mobile-nav a {
  color: var(--text-muted);
  padding: 0.28rem 0;
}

.fiche-mobile-nav a.fiche-nav-link--active {
  color: var(--accent);
}

.fiche-mobile-nav.open {
  display: block;
}

@media (max-width: 900px) {
  .fiche-header-inner {
    padding-inline: 1.1rem;
  }
  nav {
    display: none;
  }
  .fiche-theme-toggle-label {
    display: none;
  }
  .fiche-burger-btn {
    display: inline-flex;
  }
}

main {
  flex: 1;
}

.fiche-main-inner {
  max-width: var(--max-width);
  margin: 1.6rem auto 2.6rem;
  padding: 0 2rem 2.4rem;
}

@media (max-width: 800px) {
  .fiche-main-inner {
    padding-inline: 1.1rem;
  }
}

/* Breadcrumb (fil d'Ariane) */
.fiche-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.fiche-breadcrumb--bottom {
  margin-top: 1.8rem;
}

.fiche-breadcrumb a {
  color: var(--text-muted);
}

.fiche-breadcrumb a:hover {
  color: var(--accent);
}

.fiche-breadcrumb-separator {
  opacity: 0.7;
}

/* HERO */
.fiche-hero {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.2fr);
  gap: 1.75rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.fiche-hero-text {
  padding: 1.6rem 1.8rem 1.55rem;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

:root[data-theme="dark"] .fiche-hero-text {
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.24), transparent 55%),
    radial-gradient(circle at bottom right, rgba(59,130,246,0.18), transparent 60%),
    var(--bg-card);
}

.fiche-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.06);
  border: 1px solid var(--border-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

:root[data-theme="dark"] .fiche-hero-label {
  background: rgba(15,23,42,0.9);
}

.fiche-hero-label-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.3);
}

.fiche-hero-title {
  font-size: clamp(1.7rem, 2.4vw + 1.1rem, 2.3rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.fiche-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1rem;
}

.fiche-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-size: 0.83rem;
}

.fiche-hero-meta-badge {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-alt);
  color: var(--text-muted);
}

.fiche-hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-soft);
  margin-top: 0.75rem;
}

.fiche-hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fiche-hero-chip {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
}

/* Hero image */
.fiche-hero-media {
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.fiche-hero-media-picture {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.fiche-hero-media-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.fiche-hero-media-tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(249,250,251,0.9);
  color: var(--text-muted);
  font-size: 0.74rem;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

:root[data-theme="dark"] .fiche-hero-media-tag {
  background: rgba(15,23,42,0.88);
}

.fiche-hero-media-tag a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(148,163,184,0.8);
}

.fiche-hero-media-footer {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
}

.fiche-hero-copy-code {
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: radial-gradient(circle at 0 0, rgba(56,189,248,0.2), transparent 55%);
  color: var(--text-main);
}

.fiche-hero-copy-code span:first-child {
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .fiche-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Layout principal */
.fiche-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(0, 1.2fr);
  gap: 1.8rem;
  align-items: flex-start;
}

@media (max-width: 980px) {
  .fiche-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fiche-toc-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 1.2rem 1.25rem;
  font-size: 0.84rem;
  position: sticky;
  top: 4.4rem;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .fiche-toc-card {
  background: radial-gradient(circle at top, rgba(56,189,248,0.22), transparent 70%);
}

.fiche-toc-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.fiche-toc-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.fiche-toc-list li {
  margin-bottom: 0.28rem;
}

.fiche-toc-link {
  color: var(--text-muted);
}
.fiche-toc-link:hover {
  color: var(--accent);
}

.fiche-toc-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Contenu principal */
.fiche-content {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 1.6rem 1.9rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

:root[data-theme="dark"] .fiche-content {
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 60%),
    var(--bg-card);
}

.fiche-content section + section {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
}

.fiche-content h2 {
  font-size: 1.08rem;
  margin: 0 0 0.65rem;
}

.fiche-content p {
  margin: 0 0 0.65rem;
  color: var(--text-main);
}

.fiche-content p + p {
  margin-top: 0.3rem;
}

/* espace spécifique au bloc des pills sous la carte compagnies */
.fiche-content p.content-pills {
  margin-top: 0.8rem;
  margin-bottom: 0;
}

.fiche-content-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem 1.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 720px) {
  .fiche-content {
    padding: 1.2rem 1.2rem 1.4rem;
  }
  .fiche-content-keys {
    grid-template-columns: minmax(0,1fr);
  }
}

.fiche-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.14rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 0.32rem;
  margin-bottom: 0.28rem;
  background: var(--bg-alt);
}

/* Fiche technique */
.fiche-tech-card {
  margin-top: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  padding: 1rem 1.2rem 1.1rem;
}

:root[data-theme="dark"] .fiche-tech-card {
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
}

.fiche-tech-title {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.fiche-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.55rem 1.4rem;
  font-size: 0.86rem;
}

.fiche-tech-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.fiche-tech-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.fiche-tech-value {
  color: var(--text-main);
}

@media (max-width: 720px) {
  .fiche-tech-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Info cards (horaires / accès / parkings / compagnies) */
.fiche-info-card {
  margin-top: 0.8rem;
  border-radius: 14px;
  border: 1px dashed var(--border-soft);
  background: var(--bg-elevated-soft);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
}

:root[data-theme="light"] .fiche-info-card {
  background: #f9fafb;
}

.fiche-info-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.fiche-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.4rem 1.3rem;
}

.fiche-info-item-label {
  font-weight: 500;
  color: var(--text-main);
}

.fiche-info-item-text {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .fiche-info-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

.fiche-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.fiche-tag-chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.16rem 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

/* FAQ accordéon */
.fiche-faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated-soft);
  padding: 0.65rem 0.9rem;
}

.fiche-faq-item + .fiche-faq-item {
  margin-top: 0.85rem;
}

.fiche-faq-toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-size: 0.93rem;
}

.fiche-faq-question {
  font-weight: 600;
  margin-right: 0.75rem;
}

.fiche-faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.fiche-faq-answer {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 0.45rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.fiche-faq-item.open .fiche-faq-answer {
  max-height: 500px;
  opacity: 1;
}

.fiche-faq-item.open .fiche-faq-icon {
  transform: rotate(90deg);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: 1.4rem 0 2.2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

:root[data-theme="dark"] footer {
  background: radial-gradient(circle at top, #020617 0, #000 70%);
}

.fiche-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 800px) {
  .fiche-footer-inner {
    padding-inline: 1.1rem;
  }
}

.fiche-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.fiche-footer-links a {
  color: var(--text-muted);
}
.fiche-footer-links a:hover {
  color: var(--accent);
}

.fiche-footer-copy {
  opacity: 0.9;
}

.fiche-footer-note {
  flex-basis: 100%;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 900px;
}

.fiche-footer-note p {
  margin: 0.15rem 0;
}
