/*
 * Offres : hero (texte à gauche, scène à droite dès 1100px) avec un billet d'entrée (ProvSeal Verify, gratuit) et une lettre
 * d'invitation sous enveloppe scellée (ProvSeal Enterprise, programme pilote).
 * Interactions au survol et au focus clavier uniquement (pas de script).
 */

/* ---------- Hero ---------- */

.of-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(244, 81, 30, 0.28), transparent 66%),
    var(--ps-ember);
}

.of-hero-inner {
  padding-top: 56px;
  padding-bottom: 104px;
}

/* Colonne du hero empilée : titre, sous-titre, puis l'appel à l'action. */
.of-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 920px;
}

.of-h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-family: var(--ps-font-sans);
  font-size: clamp(46px, 6.4vw, 104px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.of-hero-lead {
  max-width: 30em;
  margin: 0;
  color: var(--ps-muted-dark);
  font-size: 20px;
  line-height: 1.5;
}

.of-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.of-cta-btn {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

/* ---------- Scène : billet et enveloppe ---------- */

.of-scene-wrap {
  padding-top: 48px;
}

.of-scene {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.of-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
}

/* Étiquette de l'offre : pastille teintée, droite. */
.of-k {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--ps-radius-pill);
  background: rgba(4, 120, 87, 0.12);
  color: #047857;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.of-k--invite {
  background: rgba(244, 81, 30, 0.12);
  color: var(--ps-orange-dark);
}

.ps-page main .of-name {
  margin: 0;
  color: var(--ps-ink);
  font-family: var(--ps-font-sans);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.of-text,
.of-invite {
  margin: 0;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.of-ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0;
  padding: 0;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
  list-style: none;
}

.of-ul li::before {
  content: "✓ ";
  color: var(--ps-orange);
  font-weight: 800;
}

.of-b.ps-btn {
  align-self: flex-start;
  min-height: 48px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
}

.of-b.ps-link {
  margin-top: 8px;
}

/* Billet d'entrée, droit, qui se soulève au survol ou au focus. */
.of-ticket {
  display: grid;
  grid-template-columns: 1fr 64px;
  border-radius: var(--ps-radius-md);
  background: #fffaf2;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ps-ease);
}

.of-ticket:hover,
.of-ticket:focus-within {
  transform: translateY(-6px);
}

.of-tmain {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-right: 2px dashed #d8c6b9;
}

/* Encoches de la ligne de découpe. */
.of-tmain::before,
.of-tmain::after {
  content: "";
  position: absolute;
  right: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ps-ember);
}

.of-tmain::before {
  top: -12px;
}

.of-tmain::after {
  bottom: -12px;
}

.of-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.of-bar {
  width: 34px;
  height: 120px;
  background: repeating-linear-gradient(0deg, var(--ps-ink) 0 2px, transparent 2px 4px, var(--ps-ink) 4px 7px, transparent 7px 9px);
}

/* Lettre glissée dans une enveloppe scellée : elle sort un peu au survol ou au focus. */
.of-env {
  position: relative;
  padding-top: 40px;
}

.of-letter {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 18px;
  padding: 28px 28px 132px;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--ps-ease);
}

.of-env:hover .of-letter,
.of-env:focus-within .of-letter {
  transform: translateY(-22px);
}

/* Face avant de l'enveloppe : hauteur fixe pour ne jamais masquer le bouton de la lettre. */
.of-env::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  z-index: 2;
  height: 170px;
  border-radius: 6px;
  background: #c84a1f;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8);
  clip-path: polygon(0 18%, 50% 52%, 100% 18%, 100% 100%, 0 100%);
  pointer-events: none;
}

.of-wax {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a45, #b8350f);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 -4px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.of-wax img {
  width: 44px;
  height: 44px;
  filter: brightness(0) invert(1);
}

/* ---------- Bureau : texte à gauche, billet et enveloppe à droite ---------- */

@media (min-width: 1100px) {
  .of-hero-inner {
    display: grid;
    /* Colonne de texte proportionnelle : le titre garde sa taille et tient en trois lignes. */
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
    align-items: center;
    gap: 48px;
  }

  .of-hero-lead {
    font-size: 19px;
  }

  .of-scene-wrap {
    min-width: 0;
    padding-top: 0;
  }

  .of-row {
    gap: 24px;
  }

  .of-k {
    padding: 5px 12px;
    font-size: 13px;
  }

  .ps-page main .of-name {
    font-size: 24px;
  }

  .of-text,
  .of-invite,
  .of-ul {
    font-size: 16px;
    line-height: 1.5;
  }

  .of-ticket {
    grid-template-columns: 1fr 48px;
  }

  .of-tmain {
    padding: 24px 22px;
  }

  .of-bar {
    width: 26px;
  }

  .of-letter {
    margin: 0 12px;
    padding: 24px 22px 132px;
  }
}

/* Entre 1100 et 1279px la colonne est plus étroite : la scène est réduite d'un cran. */
@media (min-width: 1100px) and (max-width: 1279px) {
  .of-scene {
    zoom: 0.86;
  }
}

/* ---------- Questions ---------- */

/* Titre puis sous-titre, empilés dans la colonne de gauche. */
.of-faq-head {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 20px;
}

.of-faq-head .f-lead {
  margin: 0;
  color: var(--ps-muted-light);
}

/* Questions sans numéro : la réponse s'aligne sur la question. */
.ps-page main .f-q p {
  margin-left: 0;
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px) {
  .of-hero-inner {
    padding-top: 32px;
  }

  .of-h1 {
    font-size: clamp(42px, 12.5vw, 64px);
  }

  .of-row {
    grid-template-columns: 1fr;
  }

  .of-scene {
    zoom: 0.62;
  }
}

@media (max-width: 420px) {
  .of-scene {
    zoom: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .of-ticket,
  .of-letter {
    transition: none;
  }
}
