@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ============================================================
   Design tokens — reproduit le système Quasar/SCSS de la SPA
   ============================================================ */
:root {
  --brand:         #ffde00;
  --brand-low:     #fff8cc;
  --bg:            #fafafa;
  --bg-box:        #f5f5f5;
  --text:          #1d1d1d;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --radius:        10px;
  --radius-sm:     6px;
  --container:     1000px;
  --shadow:        0 2px 8px rgba(0,0,0,.08);
}

/* ============================================================
   Reset / Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); font-size: 16px; }

body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Typography  (reproduit _typography.scss + quasar.variables)
   ============================================================ */
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.3rem;  font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3;  }
h4 { font-size: 1rem;    font-weight: 500; }

p  { line-height: 1.65; }

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

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1400px) { .container { max-width: 1200px; } }

/* ============================================================
   Header / Toolbar  — reproduit ToolbarContent.vue
   bg-white, border-bottom subtle, padding 20px
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  padding: 20px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 51px;
  margin-inline: auto;
  padding: 20px 48px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo img { display: block; height: 36px; width: auto; }

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  flex: 1;
}

.site-header__nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 24px;
  transition: color .15s, background .15s;
}

.site-header__nav a img { display: block; }

.site-header__nav a:hover,
.site-header__nav a.active {
  color: var(--text);
  background: var(--brand-low);
}

.site-header__spacer { flex: 1; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand);
  color: #000;
  font-size: .875rem;
  font-weight: 400;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, transform .1s;
}

.btn-cta:hover { opacity: .9; text-decoration: underline; transform: translateY(-1px); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text-muted);
  padding: .75rem 0 .5rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: underline; }
.breadcrumb a:hover { text-decoration: underline; color: var(--text); }
.breadcrumb .sep { color: #cbd5e1; }

/* ============================================================
   Main content area
   ============================================================ */
main {
  padding-block: 2rem 4rem;
}

/* Lede / intro paragraph */
.lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: .5rem;
  margin-bottom: 1.5rem;
  max-width: 68ch;
}

/* ============================================================
   Section headers
   ============================================================ */
section { margin-top: 2.5rem; }
section h2 {
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* ============================================================
   Definition list (En bref)
   ============================================================ */
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5rem 1.5rem;
  background: var(--bg-box);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

dt { font-weight: 600; font-size: .875rem; color: var(--text-muted); }
dd { font-size: .9rem; }

/* ============================================================
   Accordion / Details  — reproduit Accordion.vue
   ============================================================ */
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  background: #fff;
  overflow: hidden;
}

details + details { margin-top: 0; }

summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: .95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background .15s;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
}

details[open] > summary { background: var(--brand-low); }
details[open] > summary::after { transform: rotate(-135deg); }

summary:hover { background: var(--bg-box); }

details > div {
  padding: 1rem 1.25rem 1.25rem;
  font-size: .9rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

details > div p + p { margin-top: .75rem; }
details > div ul, details > div ol { padding-left: 1.5rem; margin-top: .5rem; }
details > div li { margin-bottom: .25rem; }

/* ============================================================
   Blockquote — témoignages
   ============================================================ */
blockquote {
  border-left: 3px solid var(--brand);
  margin: 0;
  padding: .75rem 1rem;
  background: var(--brand-low);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: .9rem;
  line-height: 1.65;
}

/* ============================================================
   Article cards (lists)
   ============================================================ */
.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px)  { .card-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-list { grid-template-columns: repeat(3, 1fr); } }

.card-list li a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, transform .15s;
  gap: .5rem;
}

.card-list li a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-list li strong {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}

.card-list li p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-list li .type {
  display: inline-block;
  background: var(--brand);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .7rem;
  color: #000;
  margin-top: auto;
}

/* ============================================================
   Category / hub link list
   ============================================================ */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text);
  transition: background .15s, border-color .15s;
}

.link-list a:hover { background: var(--brand-low); border-color: var(--brand); text-decoration: none; }

.link-list a span {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================================
   CTA block
   ============================================================ */
.cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--brand);
  border-radius: var(--radius);
  text-align: center;
}

.cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.cta a:hover { text-decoration: underline; }

/* ============================================================
   Similar pistes aside
   ============================================================ */
aside#pistes-similaires {
  background: var(--bg-box);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

aside#pistes-similaires ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

aside#pistes-similaires a {
  display: inline-block;
  padding: .35rem .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

aside#pistes-similaires a:hover { background: var(--brand-low); border-color: var(--brand); }

/* ============================================================
   Témoignages section
   ============================================================ */
#temoignages article {
  margin-bottom: 1.5rem;
}

#temoignages h3 {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-muted);
}

/* ============================================================
   Footer  — reproduit Footer.vue
   bg black, border-top 5px solid brand, 3 cols
   ============================================================ */
.site-footer {
  background: #000;
  color: #fff;
  border-top: 5px solid var(--brand);
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 2fr; } }
@media (min-width: 1400px) { .site-footer__grid { max-width: 1200px; } }

.site-footer__logo {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 1rem;
}

.site-footer__about p {
  margin-bottom: 1rem;
}

.site-footer__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: white;
  color: black;
  font-size: .875rem;
  font-weight: 400;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-outline:hover {
  text-decoration: underline;
  opacity: .9;
  transform: translateY(-1px);
}

.site-footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.875rem;
}

.site-footer a {
  text-decoration: none;
  font-size: .875rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.site-footer__social {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transition: border-color .15s, background .15s;
}

.social-icon:hover { border-color: var(--brand); background: var(--brand); }
.social-icon:hover svg path { fill: #000; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container);
  margin-inline: auto;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}

@media (min-width: 1400px) { .site-footer__bottom { max-width: 1200px; } }

.site-footer__bottom a {
  text-decoration: underline;
  font-size: .8rem;
  color: white;
}

.site-footer__bottom a:hover { color: rgba(255,255,255,.8); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

/* ============================================================
   Article content (prose from markdown)
   ============================================================ */
#description h2,
#description h3 { margin-block: 1.5rem .5rem; }
#description p   { margin-bottom: .75rem; }
#description ul,
#description ol  { padding-left: 1.5rem; margin-bottom: .75rem; }
#description li  { margin-bottom: .25rem; }

/* ============================================================
   Piste detail — aligné sur la SPA (PisteView.vue)
   ============================================================ */
.piste-detail__title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 1.25rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 2rem 0 1rem;
}

/* Hero carousel — scroll-snap horizontal (sans JS) */
.hero-carousel {
  margin: 1rem 0 1.5rem;
  position: relative;
}

.hero-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .75rem;
}

.hero-carousel__item {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: start;
  margin: 0;
}

.hero-carousel__item img {
  width: 200px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--bg-box);
}

mux-player.hero-carousel__player {
  display: block;
  width: 200px;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: auto;
  --media-object-fit: cover;
  --controls-backdrop-color: rgba(0, 0, 0, 0.4);
}

.hero-carousel__caption {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero-carousel__item,
  .hero-carousel__item img,
  .hero-carousel__item .hero-carousel__player { width: 160px; }
  .hero-carousel__item img,
  .hero-carousel__item .hero-carousel__player { height: 260px; }
}

/* Tags grid — 6 chips icône + label */
.tags-section { margin: 1.5rem 0 2rem; }

.tags-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.tag img {
  width: 80px;
  height: 60px;
  object-fit: contain;
}

.tag__label {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .tags-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Accordion (<details>) — mime q-expansion-item */
.additionals { margin: 2rem 0; }

.accordion {
  margin-bottom: .5rem;
}

.accordion__summary {
  cursor: pointer;
  min-height: 56px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__summary::after {
  content: '';
  position: static;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion[open] > .accordion__summary::after {
  transform: rotate(-135deg);
}

.accordion__body {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-top: 1px solid var(--border);
}

.accordion__body p { margin-bottom: .75rem; }

/* Témoignages & pistes proches (bonus SEO, non affichés dans la SPA) */
.temoignages { margin: 2rem 0; }

.temoignage {
  background: var(--bg-box);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.25rem;
  margin: .75rem 0;
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.related-pistes ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem .75rem;
}

.related-pistes a {
  display: block;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.related-pistes a:hover {
  border-color: var(--text);
  text-decoration: none;
}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 640px) {
  .site-header__nav { display: none; }
  .site-header__inner { padding-inline: 1rem; }
  dl { grid-template-columns: 1fr; }
}
