/* ============================================================
   Le Guide RPS — Ombodhi™ · Page de capture (version statique)
   Palette : Ivoire #F9F6EF · Bleu Nuit #07253D · Or Doux #F2DC99
             Terracotta #C0533A · Blanc cassé #F9F8F3
   ============================================================ */

:root {
  --ivoire: #f9f6ef;
  --blanc-casse: #f9f8f3;
  --bleu-nuit: #07253d;
  --or-doux: #f2dc99;
  --terracotta: #c0533a;
  --bordure: #e5dcc8;
  --serif-titre: "Bodoni Moda", Georgia, serif;
  --serif-corps: "Cormorant Garamond", Georgia, serif;
  --sans: "Public Sans", -apple-system, sans-serif;
}

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

::selection { background: var(--or-doux); color: var(--bleu-nuit); }

body {
  background: var(--ivoire);
  color: var(--bleu-nuit);
  font-family: var(--serif-corps);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

/* ---------- Étiquettes (Public Sans, capitales espacées) ---------- */
.overline,
.badges,
.card__label,
.form label,
.form__submit,
.footer,
.nav__wordmark,
.nav__link,
.cover__brand,
.cover__legal {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  animation: fadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.nav__wordmark {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.35em;
  color: var(--bleu-nuit);
  text-decoration: none;
}

.nav__link {
  font-size: 0.5625rem;
  color: rgba(7, 37, 61, 0.5);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__link:hover { color: var(--terracotta); }

/* ---------- Structure principale ---------- */
.hero {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.hero__left { display: flex; flex-direction: column; justify-content: center; padding: 8rem 0 1.5rem; }
.hero__right { display: flex; align-items: center; padding: 0 0 4rem; }

/* ---------- Colonne verticale RPS ---------- */
.rps-column {
  display: none;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}
.rps-column__letter {
  font-family: var(--serif-titre);
  font-size: 4.5rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bleu-nuit);
}
.rps-column__filet { width: 1px; height: 3.5rem; background: var(--or-doux); }

/* ---------- Titre avec révélation ligne par ligne ---------- */
.overline { font-size: 0.6875rem; color: rgba(7, 37, 61, 0.55); margin-bottom: 1.5rem; }

.hero__title {
  font-family: var(--serif-titre);
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}
.hero__title em { font-style: italic; color: var(--terracotta); }

.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span {
  display: block;
  transform: translateY(112%);
  animation: lineUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.line:nth-child(1) > span { animation-delay: 0.45s; }
.line:nth-child(2) > span { animation-delay: 0.58s; }
.line:nth-child(3) > span { animation-delay: 0.71s; }

.hero__sub {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(7, 37, 61, 0.7);
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* ---------- Statistiques ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}
.stat__value { font-family: var(--serif-titre); font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--terracotta); }
.stat__desc { font-size: 0.9375rem; line-height: 1.35; color: rgba(7, 37, 61, 0.6); }

.badges { font-size: 0.625rem; color: rgba(7, 37, 61, 0.45); }

/* ---------- Filets Or Doux ---------- */
.filet { height: 1px; background: var(--or-doux); border: none; }
.filet--short { width: 2rem; margin: 0.5rem 0; }
.filet--mini { width: 1.5rem; margin-bottom: 0.4rem; }
.filet--card { position: absolute; top: 0; left: 2rem; right: 2rem; }

/* ---------- Carte du formulaire (Bleu Nuit, écriture Or Doux) ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  background: var(--bleu-nuit);
  border: 1px solid var(--bleu-nuit);
  border-radius: 1rem;
  padding: 2.5rem;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}
.card__label { font-size: 0.625rem; color: var(--terracotta); margin-bottom: 0.75rem; }
.card__title { font-family: var(--serif-titre); font-size: 1.5rem; line-height: 1.3; color: var(--or-doux); }

/* ---------- Mini couverture du guide ---------- */
.cover {
  flex-shrink: 0;
  width: 6rem;
  background: var(--blanc-casse);
  border: 1px solid var(--or-doux);
  border-radius: 0.5rem;
  padding: 0.375rem;
  transform: rotate(3deg);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cover:hover { transform: rotate(0deg) scale(1.05); }
.cover__inner { border: 1px solid var(--or-doux); border-radius: 0.375rem; padding: 0.625rem; }
.cover__brand { font-size: 0.375rem; letter-spacing: 0.3em; color: rgba(7, 37, 61, 0.5); margin-bottom: 1rem; }
.cover__title { font-family: var(--serif-titre); font-size: 1rem; line-height: 1.2; color: var(--bleu-nuit); margin-bottom: 0.375rem; }
.cover__title em { font-style: italic; color: var(--terracotta); }
.cover__desc { font-size: 0.5625rem; line-height: 1.3; color: rgba(7, 37, 61, 0.55); margin-bottom: 1rem; }
.cover__legal { font-size: 0.3125rem; letter-spacing: 0.25em; color: rgba(7, 37, 61, 0.4); }

/* ---------- Formulaire ---------- */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__field label { display: block; font-size: 0.625rem; color: rgba(242, 220, 153, 0.8); }
.form__field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(242, 220, 153, 0.3);
  color: var(--or-doux);
  font-family: var(--serif-corps);
  font-size: 1.125rem;
  padding: 0.75rem 0;
  outline: none;
  transition: border-color 0.3s;
}
.form__field input::placeholder { color: rgba(242, 220, 153, 0.35); }
.form__field input:focus { border-bottom-color: var(--or-doux); }

.form__error { font-size: 1rem; color: #e8a08c; }
.form__error a { color: var(--or-doux); }

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--blanc-casse);
  font-size: 0.625rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.form__submit:hover { background: var(--or-doux); color: var(--bleu-nuit); transform: scale(1.015); }
.form__submit:active { transform: scale(0.985); }
.form__submit:disabled { opacity: 0.6; cursor: wait; }
.form__submit-arrow { transition: transform 0.3s; }
.form__submit:hover .form__submit-arrow { transform: translateX(6px); }

/* ---------- Succès ---------- */
.success { padding: 1rem 0; animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.success__check {
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--or-doux);
  border-radius: 999px;
  color: var(--or-doux);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.success__title { font-family: var(--serif-titre); font-size: 1.5rem; color: var(--or-doux); margin-bottom: 0.75rem; }
.success__text { font-size: 1.125rem; line-height: 1.6; color: rgba(242, 220, 153, 0.7); margin-bottom: 1.5rem; }
.success__download {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.625rem;
  color: var(--or-doux);
  text-decoration: none;
  transition: color 0.3s;
}
.success__download:hover { color: var(--blanc-casse); }

/* ---------- Pied de page ---------- */
.footer {
  border-top: 1px solid var(--bordure);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.5625rem;
  color: rgba(7, 37, 61, 0.45);
}
.footer a { color: rgba(7, 37, 61, 0.4); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--bleu-nuit); }

/* ---------- Animations ---------- */
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.anim-fade { opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
.anim-fade--3 { animation-delay: 0.95s; }
.anim-fade--4 { animation-delay: 1.15s; }
.anim-fade--5 { animation-delay: 1.27s; }
.anim-fade--6 { animation-delay: 1.39s; }
.anim-fade--7 { animation-delay: 1.5s; }
.anim-card { opacity: 0; animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards; }

/* ---------- Grand écran ---------- */
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 6rem; padding: 0 4rem; }
  .hero__left { padding: 4rem 0; }
  .hero__right { padding: 4rem 0; }
  .nav { padding: 2rem 4rem; }
  .footer { padding: 1.5rem 4rem; }
}

@media (min-width: 1280px) {
  .hero__inner { padding: 0 6rem; }
  .rps-column { display: flex; }
}
