/* ============================================================
   page-legal-v2.css — pages texte (CGV, mentions, confidentialite)
   + pages de statut (paiement retour, premium-cancel)
   + page 404
   ============================================================
   Charge APRES framework-v2.css + page-home-v2.css.
   ============================================================ */

/* ── Hero compact pour pages légales ──────────────────────── */
.legal-hero {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem 1rem;
  text-align: center;
}
.legal-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal-hero h1,
.legal-hero .hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0.75rem 0 0.5rem;
}
.legal-hero h1 em,
.legal-hero .hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-rouge-teco);
}
.legal-hero p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0;
}
.legal-hero p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-rouge-teco);
}

/* ── Contenu prose ────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem clamp(3rem, 6vw, 5rem);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.legal-content h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border-subtle);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-primary);
  margin: 1.75rem 0 0.75rem;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content p strong,
.legal-content li strong {
  color: var(--color-text-primary);
  font-weight: 600;
}
.legal-content em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-rouge-teco);
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.legal-content li {
  margin-bottom: 0.5rem;
}
.legal-content a {
  color: var(--color-rouge-teco);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration: none; }
.legal-content .mt-5 {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Page de statut (paiement retour, premium-cancel) ─────── */
.status-page {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  min-height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-page__halo {
  position: absolute;
  width: 500px; height: 500px;
  top: -120px; right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 0, 10, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.status-page__inner {
  max-width: 720px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.status-page__card {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.status-page__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.status-page__icon--success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.status-page__icon--cancel {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
}
.status-page__icon svg { width: 32px; height: 32px; }
.status-page__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
}
.status-page__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-rouge-teco);
}
.status-page__sub {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 0.75rem;
}
.status-page__plan {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}
.status-page__plan strong { color: var(--color-text-primary); }
.status-page__steps {
  text-align: left;
  max-width: 560px;
  margin: 1.5rem auto;
}
.status-page__steps h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-rouge-teco);
  margin: 0 0 1rem;
}
.status-page__steps ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.status-page__steps ol li { margin-bottom: 0.5rem; }
.status-page__notes {
  text-align: left;
  max-width: 560px;
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.status-page__notes p { margin: 0 0 0.5rem; }
.status-page__notes strong { color: var(--color-text-primary); }
.status-page__notes a { color: var(--color-rouge-teco); text-decoration: none; }
.status-page__notes a:hover { text-decoration: underline; }
.status-page__actions {
  margin-top: 1.75rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.status-page__divider {
  height: 1px;
  background: var(--color-border-subtle);
  border: 0;
  margin: 1.5rem 0;
}

/* ── Page 404 ─────────────────────────────────────────────── */
/* La page d'erreur n'a ni barre de navigation ni pied de page :
   sans cette pastille, elle etait le seul ecran du site ou l'on ne
   pouvait pas changer de theme. On la pose dans l'angle haut droit,
   la ou la barre de la vitrine la place. */
.error-page__theme {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 2;
  margin-right: 0;
}
@media (max-width: 600px) {
  .error-page__theme { top: 0.85rem; right: 0.9rem; }
}
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.error-page::before {
  top: -150px; right: -150px;
  background: radial-gradient(circle, rgba(232, 0, 10, 0.18), transparent 70%);
}
.error-page::after {
  bottom: -150px; left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 70%);
}
.error-page__inner {
  max-width: 640px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.error-page__code {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 0.9;
  background: linear-gradient(135deg, var(--color-rouge-teco) 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -4px;
  margin: 0 0 1rem;
}
.error-page__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
}
.error-page__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 2rem;
}
.error-page__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.error-page__helpful {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
}
.error-page__helpful-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.error-page__helpful-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.error-page__helpful-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding: 0.2rem 0;
  transition: color 150ms ease, border-color 150ms ease;
}
.error-page__helpful-links a:hover {
  color: var(--color-rouge-teco);
  border-bottom-color: var(--color-rouge-teco);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .legal-content h2 { font-size: 1.2rem; }
  .legal-content { font-size: 0.95rem; }
  .status-page__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .status-page__actions .btn { width: 100%; justify-content: center; }
  .error-page__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .error-page__actions .btn { width: 100%; justify-content: center; }
}
