:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f2f2f2;
  --gray-mid: #cccccc;
  --gray-dark: #555555;
  --max-width: 720px;
  --space-unit: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

/* Loading page */

.loading-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  perspective: 800px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-page.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 5rem;
  height: 5rem;
  filter: invert(1);
  animation: loader-spin 4s linear infinite;
}

@keyframes loader-spin {
  0%   { transform: rotateX(0deg) rotateY(0deg); }
  25%  { transform: rotateX(180deg); }
  50%  { transform: rotateX(180deg) rotateY(180deg); }
  75%  { transform: rotateX(359deg) rotateY(180deg); }
  100% { transform: rotateX(359deg) rotateY(359deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loader {
    animation: none;
  }
}

/* Teaser page */

.teaser-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--black);
  perspective: 800px;
}

.teaser-date {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: inherit;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.logo-icon {
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Hero */

.hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 800;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--gray-dark);
}

.hero-status {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero .btn {
  margin-top: 2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--black);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-dark);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  width: 100%;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* Sales banner */

.sales-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 0.85rem 0;
  font-size: 0.9rem;
}

/* Section spacing */

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.tarifs,
.acces,
.infos-pratiques {
  padding: 3.5rem 0;
}

.tarifs {
  border-bottom: 1px solid var(--gray-mid);
}

.acces {
  border-bottom: 1px solid var(--gray-mid);
}

/* Tarifs */

.tarif-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tarif-card {
  border: 1px solid var(--black);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}

.tarif-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tarif-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.tarif-desc {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.tarif-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-dark);
  text-align: center;
}

/* Infos pratiques */

.infos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.infos-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.infos-row dt {
  color: var(--gray-dark);
}

.infos-row dd {
  font-weight: 600;
  text-align: right;
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.footer-links {
  margin-top: 0.5rem;
}

/* Tablet and up */

@media (min-width: 640px) {
  .tarif-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Scroll reveal — progressive enhancement, only active once JS confirms support */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.reveal-delay-1 {
  transition-delay: 0.1s;
}

.js-reveal .reveal.reveal-delay-2 {
  transition-delay: 0.2s;
}

.js-reveal .reveal.reveal-delay-3 {
  transition-delay: 0.3s;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
