/* ------------------------------------------------------------------
   components.css — section, label + titre, pill, bouton doré, carte.
   Le geste de la page : un label condensé en capitales espacées, en or,
   posé sur un titre serif italique énorme à chasse négative.
   ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  scroll-margin-top: var(--nav-h);
}

/* Séparateur entre sections : un filet d'or qui s'éteint aux deux bouts */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(var(--gold-rgb) / 0.25) 30%,
    rgb(var(--gold-rgb) / 0.25) 70%,
    transparent
  );
}

.wrap {
  width: 100%;
  max-width: var(--w-page);
  margin-inline: auto;
}

.wrap-read {
  max-width: var(--w-read);
}

.section-head {
  margin-bottom: var(--head-gap);
  text-align: center;
}

.label {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.title {
  color: var(--text-title);
  font-family: var(--font-title);
  font-size: var(--fs-h2);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

/* Pill : une pastille, un mot d'ordre */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgb(var(--gold-rgb) / 0.28);
  border-radius: 100px;
  background: rgb(var(--gold-rgb) / 0.06);
  color: var(--gold-bright);
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pill::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgb(var(--gold-rgb) / 0.8);
}

/* La pilule à six ombres. Aucun backdrop-filter ici : le relief vient des rehauts. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 36px;
  border: 0;
  border-radius: 100px;
  /* Deux couches : un reflet oblique, garé hors champ, qui balaie le bouton au survol ; l'or dessous */
  background:
    linear-gradient(110deg, transparent 38%, rgb(var(--white-rgb) / 0.38) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(160deg, var(--gold-mid) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  box-shadow:
    0 0 32px rgb(var(--gold-rgb) / 0.45),
    0 6px 24px rgb(var(--black-rgb) / 0.5),
    inset 0 1px 0 rgb(var(--white-rgb) / 0.45),
    inset 0 -1px 0 rgb(var(--black-rgb) / 0.3),
    inset 1px 0 0 rgb(var(--white-rgb) / 0.12),
    inset -1px 0 0 rgb(var(--black-rgb) / 0.2);
  color: var(--deep);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  touch-action: manipulation;
  transition: transform 250ms var(--ease-out), background-position 800ms var(--ease-out);
}

/* Reflet spéculaire sur les 48 % supérieurs */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 48%;
  border-radius: 100px 100px 0 0;
  background: linear-gradient(180deg, rgb(var(--white-rgb) / 0.28), rgb(var(--white-rgb) / 0));
  pointer-events: none;
}

/* Halo qui pulse : un anneau qui s'étend de 0 à 10 px */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  animation: halo 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes halo {
  0% {
    box-shadow: 0 0 0 0 rgb(var(--gold-rgb) / 0.4);
  }

  100% {
    box-shadow: 0 0 0 10px rgb(var(--gold-rgb) / 0);
  }
}

.btn:hover {
  background-position: -60% 0, 0 0;
  transform: translateY(-3px) scale(1.04);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline-color: var(--white);
  border-radius: 100px;
}

.btn-small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.875rem;
}

/* Le bouton de palier, sous le schéma : large, mais plafonné pour ne pas écraser ce qu'il suit */
.btn-wide {
  width: 100%;
  max-width: var(--w-read);
}

/* Un bouton seul, centré, à la fin d'une section */
.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* Carte : pleine, jamais en verre. Un filet d'un pixel, un rebord lumineux interne. */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card), var(--deep));
  box-shadow:
    inset 0 1px 0 rgb(var(--gold-rgb) / 0.15),
    0 20px 60px rgb(var(--black-rgb) / 0.5);
  transition: border-color 350ms ease-out, box-shadow 350ms ease-out, transform 350ms ease-out;
}

.card:hover {
  border-color: rgb(var(--gold-rgb) / 0.4);
  box-shadow:
    inset 0 1px 0 rgb(var(--gold-rgb) / 0.2),
    0 24px 60px rgb(var(--black-rgb) / 0.5),
    0 0 48px rgb(var(--gold-rgb) / 0.14);
  transform: translateY(-3px);
}

.card-title {
  color: var(--text-title);
  font-size: var(--fs-card-title);
  font-weight: 600;
  line-height: 1.4;
}

.card-body {
  margin-top: 10px;
  font-size: var(--fs-card-body);
  line-height: 1.65;
}

/* Numéro fantôme : grand, presque invisible, et entièrement dans la carte —
   rogné par le bord, il se lisait comme un défaut d'affichage */
.ghost-num {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgb(var(--white-rgb) / 0.05);
  font-family: var(--font-title);
  font-size: 64px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Sur téléphone les boutons d'action prennent toute la largeur — sauf celui de la nav */
@media (max-width: 479px) {
  .btn:not(.btn-small) {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .cta-row {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .card {
    transition: none;
  }

  .btn::after {
    animation: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
