/* Site vitrine MystikTV — palette reprise de packages/ui/src/tokens.ts (thème sombre de l'app). */
:root {
  color-scheme: dark;
  --fond: #07091a;
  --fond-2: #0d1117;
  --surface: #161b27;
  --surface-2: #1e2535;
  --bordure: rgba(255, 255, 255, 0.12);
  --texte: #ffffff;
  --texte-doux: rgba(255, 255, 255, 0.68);
  --accent: #f44336;
  --accent-clair: #ff8a65;
  --violet: #7b61ff;
  --note: #ffd700;
  --rayon: 20px;
  --largeur: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 16px;
}

.degrade {
  background: linear-gradient(90deg, var(--accent-clair), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.surtitre {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-clair);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.doux {
  color: var(--texte-doux);
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bouton:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(244, 67, 54, 0.45);
}

.bouton:focus-visible,
.lien-langue:focus-visible {
  outline: 3px solid var(--accent-clair);
  outline-offset: 3px;
}

.bouton svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.bouton-petit {
  padding: 10px 18px;
  font-size: 15px;
  box-shadow: none;
}

.bouton-petit svg {
  width: 18px;
  height: 18px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.entete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 9, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bordure);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.marque img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.marque em {
  font-style: normal;
  color: var(--accent);
}

.lien-langue {
  padding: 6px 10px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 64px 0 40px;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(244, 67, 54, 0.28), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(123, 97, 255, 0.25), transparent 70%), var(--fond);
}

.hero-grille {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero p.accroche {
  max-width: 520px;
  font-size: 19px;
}

.puces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.puces li {
  padding: 6px 14px;
  border: 1px solid var(--bordure);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.hero-visuel {
  position: relative;
  padding-bottom: 12%;
}

.hero-visuel .tv {
  width: 88%;
  margin-left: auto;
  border-radius: 14px;
}

.hero-visuel .telephone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36%;
}

/* Capture téléphone recadrée au ras du cadre (coins arrondis = ceux du cadre) ; l'appareil
   déborde en bas, on l'estompe. */
.telephone {
  border-radius: 12% 12% 0 0 / 6% 6% 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}

/* ── Avertissement ───────────────────────────────────────────────────────── */
.avertissement {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 14px;
  background: rgba(255, 193, 7, 0.08);
  font-size: 15px;
}

.avertissement strong {
  color: #ffc107;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
section {
  padding: 72px 0;
  /* L'en-tête collant ne doit pas masquer le haut d'une section ciblée par une ancre. */
  scroll-margin-top: 68px;
}

.titre-section {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.fonction {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
}

.fonction h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.fonction + .fonction {
  border-top: 1px solid var(--bordure);
}

.fonction .telephone {
  width: min(320px, 80%);
  margin: 0 auto;
}

.fonction ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fonction li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--texte-doux);
}

.fonction li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-clair), var(--accent));
}

/* ── Étapes ──────────────────────────────────────────────────────────────── */
.alt {
  background: var(--fond-2);
}

.grille {
  display: grid;
  gap: 20px;
}

.carte {
  padding: 28px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--surface);
}

.carte p:last-child {
  margin-bottom: 0;
}

.numero {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  font-size: 20px;
  font-weight: 800;
}

/* ── Galerie TV ──────────────────────────────────────────────────────────── */
.galerie-tv {
  display: grid;
  gap: 24px;
}

.galerie-tv figure {
  margin: 0;
}

.galerie-tv img {
  border-radius: 12px;
}

.galerie-tv figcaption {
  margin-top: 10px;
  color: var(--texte-doux);
  font-size: 15px;
  text-align: center;
}

/* ── Offres ──────────────────────────────────────────────────────────────── */
.offre ul {
  margin: 0;
  padding-left: 20px;
  color: var(--texte-doux);
}

.offre li {
  margin-bottom: 8px;
}

.offre-premium {
  border-color: rgba(244, 67, 54, 0.6);
  background:
    linear-gradient(160deg, rgba(244, 67, 54, 0.14), rgba(123, 97, 255, 0.1)), var(--surface);
}

.offre .etiquette {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offre-premium .etiquette {
  background: var(--accent);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--bordure);
}

.faq summary {
  padding: 20px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  color: var(--texte-doux);
}

/* ── Appel final ─────────────────────────────────────────────────────────── */
.appel {
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(244, 67, 54, 0.25), transparent 70%), var(--fond);
}

.appel img {
  width: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
}

/* ── Pied de page ────────────────────────────────────────────────────────── */
.pied {
  padding: 40px 0;
  border-top: 1px solid var(--bordure);
  background: var(--fond-2);
  color: var(--texte-doux);
  font-size: 14px;
}

.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.pied nav a {
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
}

.pied nav a:hover {
  text-decoration: underline;
}

/* ── Petits écrans : le bouton du hero suffit, l'en-tête garde le nom lisible. ── */
@media (max-width: 479px) {
  .entete .bouton {
    display: none;
  }
}

/* ── Écrans larges ───────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .grille-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grille-2,
  .galerie-tv {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Trois captures TV : la première sur toute la largeur. */
  .galerie-tv figure:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 96px 0 64px;
  }

  .hero-grille {
    grid-template-columns: 1fr 1.1fr;
  }

  .fonction {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  /* Une fonction sur deux : capture à gauche. */
  .fonction:nth-of-type(even) .fonction-visuel {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bouton {
    transition: none;
  }
}

/* ── Pages légales ───────────────────────────────────────────────────────── */
.legal {
  max-width: 800px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 32px;
}

.legal h2 {
  margin-top: 40px;
  font-size: 22px;
  color: var(--accent-clair);
}

.legal h3 {
  margin-top: 24px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: var(--texte-doux);
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent-clair);
}
