/* ==========================================================================
   Dragon Team Moreira — charte d'interface commune
   Un seul endroit pour les boutons, titres, libellés, arrondis, conteneurs
   et le pied de page. Chargé en dernier sur toutes les pages.
   ========================================================================== */

:root {
  --ui-cyan: #00d2ff;
  --ui-black: #0a0a0a;
  --ui-dark: #121212;
  --ui-gray: #a0a0a0;
  --ui-line: rgba(255, 255, 255, 0.1);

  --ui-container: 1264px;          /* 1200 px de contenu, aligné sur la barre de navigation */
  --ui-radius-sm: 1rem;            /* petites cartes, vignettes, champs */
  --ui-radius-lg: 1.5rem;          /* grands blocs, cartes principales */
  --ui-radius-pill: 999px;         /* boutons, pastilles */

  --ui-section-y: 6rem;            /* espacement vertical des sections */
  --ui-font-display: "Anton", sans-serif;
  --ui-font-body: "Inter", sans-serif;
}
@media (min-width: 640px) {
  :root { --ui-section-y: 7rem; }
}

/* ---------- Conteneurs ---------- */
.ui-container,
.max-w-7xl,
.max-w-6xl.mx-auto {
  max-width: var(--ui-container);
}
.ui-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .ui-container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .ui-container { padding-inline: 2rem; } }

.ui-section {
  padding-block: var(--ui-section-y);
}

/* ---------- Libellés ---------- */
.eyebrow {
  display: block;
  margin: 0 0 1rem;
  font-family: var(--ui-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ui-cyan);
}
.eyebrow--lg {
  font-size: 13px;
}
@media (max-width: 639px) {
  .eyebrow--lg { font-size: 11px; }
}
.ui-label {
  font-family: var(--ui-font-body);
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

/* ---------- Titres ---------- */
.page-title,
.section-title,
.card-title {
  font-family: var(--ui-font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #fff;
  margin: 0;
}
.page-title span,
.section-title span { color: var(--ui-cyan); }

.page-title {
  font-size: clamp(3rem, 1.6rem + 4.2vw, 4.5rem);
  line-height: 0.92;
}
.section-title {
  font-size: clamp(2.25rem, 1.45rem + 3.2vw, 3.75rem);
  line-height: 0.95;
}
.card-title {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  line-height: 1.05;
}

/* ---------- Textes ---------- */
.lead {
  font-family: var(--ui-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ui-gray);
  max-width: 42rem;
  margin: 0;
}
.body-text {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ---------- En-tête de page (toutes les pages intérieures) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9rem 0 3.5rem;
}
@media (min-width: 640px) {
  .page-hero { padding: 10rem 0 4.5rem; }
}
.page-hero__glow {
  pointer-events: none;
  position: absolute;
  right: -8rem;
  top: 2rem;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.09);
  filter: blur(120px);
}
.page-hero__inner { position: relative; }
.page-hero .page-title { max-width: 60rem; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.page-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover,
.back-link:focus-visible { color: var(--ui-cyan); }

/* ---------- En-tête de section ---------- */
.section-head {
  margin: 0 auto 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head .lead { margin-top: 1.25rem; }
.section-head--left {
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
}
@media (min-width: 640px) {
  .section-head { margin-bottom: 4rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--ui-radius-pill);
  font-family: var(--ui-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ui-cyan); outline-offset: 3px; }

/* Principal : l'action la plus importante */
.btn--primary {
  background: var(--ui-cyan);
  border-color: var(--ui-cyan);
  color: #000;
}
.btn--primary:hover,
.btn--primary.bg-white {
  background: #fff;
  border-color: #fff;
  color: #000;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
}

/* Secondaire : contour cyan */
.btn--secondary {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.45);
  color: var(--ui-cyan);
}
.btn--secondary:hover {
  background: var(--ui-cyan);
  border-color: var(--ui-cyan);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.3);
}

/* Secondaire posé sur une photo : fond sombre pour rester lisible */
.btn--secondary.btn--on-media { background: rgba(0, 0, 0, 0.72); }
.btn--secondary.btn--on-media:hover { background: var(--ui-cyan); color: #000; }

/* Neutre : actions secondaires (fermer, annuler) */
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Variante sombre, uniquement sur fond cyan */
.btn--dark {
  background: #000;
  border-color: #000;
  color: #fff;
}
.btn--dark:hover { background: #151515; border-color: #151515; }

.btn--sm {
  min-height: 36px;
  padding: 0 1rem;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.btn--block { width: 100%; justify-content: space-between; }
.specialty-info-button.btn { width: auto; justify-content: space-between; }

/* Bouton "En savoir plus" de la barre de navigation (injecté par site-ui.js) */
.site-flow-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  min-height: 36px !important;
  padding: 0 1rem !important;
  border: 1px solid rgba(0, 210, 255, 0.45) !important;
  border-radius: var(--ui-radius-pill) !important;
  background: rgba(0, 210, 255, 0.06) !important;
  color: var(--ui-cyan) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
.site-flow-button:hover {
  background: var(--ui-cyan) !important;
  border-color: var(--ui-cyan) !important;
  color: #000 !important;
}
.site-flow-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Pastilles (filtres de saison) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: var(--ui-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: rgba(0, 210, 255, 0.45); color: var(--ui-cyan); }
.chip--active,
.chip--active:hover { background: #fff; border-color: #fff; color: #000; }

/* ---------- Liens texte ---------- */
.text-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ui-cyan);
}

/* ---------- Arrondis harmonisés ---------- */
.ui-radius-lg { border-radius: var(--ui-radius-lg) !important; }
.ui-radius-sm { border-radius: var(--ui-radius-sm) !important; }

.profile-shell,
.featured-stage,
.contact-strip,
.event-row,
.stage-row,
.specialty-reveal { border-radius: var(--ui-radius-lg) !important; }
.metric,
.result-box { border-radius: var(--ui-radius-sm) !important; }

/* ---------- Pages d'actualité : libellés, titres et textes de cartes ---------- */
.event-meta,
.stage-meta,
.stage-credit,
.season-heading small {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
}
.event-title,
.stage-row-title {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem) !important;
  line-height: 1.05 !important;
}
.stage-title {
  font-size: clamp(1.875rem, 1.6rem + 1vw, 2.25rem) !important;
  line-height: 1 !important;
}
.event-text,
.stage-text {
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
}

/* ---------- Pied de page commun ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #000;
  padding: 3rem 0 2rem;
  font-family: var(--ui-font-body);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.5), transparent);
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}
.site-footer__logo { display: flex; height: 4rem; align-items: center; }
.site-footer__logo img { height: 100%; width: auto; object-fit: contain; }
.site-footer__name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__tag {
  margin: 0.5rem 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ui-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 10px;
  color: var(--ui-gray);
}
.site-footer__bottom p { margin: 0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.site-footer__credit span.site-footer__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.375rem 0.75rem;
}
.site-footer__credit img { height: 1rem; width: auto; }
.site-footer__legal {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer__legal:hover,
.site-footer__legal:focus-visible { color: var(--ui-cyan); }
@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
