/* ──────────────────────────────────────────────────────────────
   PERFLANG — Survival English landing (v1.0.0)
   Mobile-first. Tout est scopé .pfse pour ne rien casser ailleurs.
   ────────────────────────────────────────────────────────────── */

.pfse {
  --se-navy: #0B1F4A;
  --se-navy-deep: #081634;
  --se-orange: #F26A1F;
  --se-orange-dark: #C9520F;
  --se-paper: #F7F5F0;
  --se-sand: #EAE5DB;
  --se-ink: rgba(11, 31, 74, 0.80);
  --se-mute: rgba(11, 31, 74, 0.52);
  --se-line: rgba(11, 31, 74, 0.14);
  --se-line-light: rgba(247, 245, 240, 0.18);
  --se-mute-light: rgba(247, 245, 240, 0.62);
  --se-serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --se-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  font-family: var(--se-sans);
  color: var(--se-ink);
  background: var(--se-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.pfse p { margin: 0 0 18px; font-size: 17px; line-height: 1.75; }
.pfse strong { font-weight: 600; color: var(--se-navy); }
.pfse em { font-style: italic; }
.pfse img { max-width: 100%; }

.pfse-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pfse-narrow { max-width: 760px; }

.pfse-h1 {
  margin: 0 0 20px;
  font-family: var(--se-serif);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--se-paper);
}
.pfse-h1 em { color: var(--se-orange); }

.pfse-h2 {
  margin: 0 0 20px;
  font-family: var(--se-serif);
  font-weight: 400;
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--se-navy);
}
.pfse-h2 em { color: var(--se-orange); }

.pfse-lead {
  font-family: var(--se-serif);
  font-size: clamp(21px, 5.4vw, 26px);
  line-height: 1.34;
  color: var(--se-navy);
}
.pfse-lead em { color: var(--se-orange); }

.pfse-en {
  font-family: var(--se-serif);
  font-style: italic;
  font-size: clamp(20px, 5.2vw, 24px);
  line-height: 1.4;
  color: var(--se-navy);
}
.pfse-strong { font-size: 20px; font-weight: 600; color: var(--se-navy); }
.pfse-muted { font-size: 14px; color: var(--se-mute); }
.pfse-accent { color: var(--se-orange) !important; }

/* Eyebrow ------------------------------------------------------ */
.pfse-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--se-mute); margin-bottom: 16px;
}
.pfse-eyebrow-num { font-family: var(--se-serif); font-style: italic; font-size: 17px; letter-spacing: 0; color: var(--se-orange); }
.pfse-eyebrow-rule { display: block; width: 32px; height: 1px; background: var(--se-line); }

/* Boutons ------------------------------------------------------ */
.pfse-btn {
  display: block; width: 100%; text-align: center;
  background: var(--se-orange); color: #fff !important;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; padding: 19px 20px;
  line-height: 1.35; word-break: normal; overflow-wrap: break-word;
  transition: background .2s ease, transform .2s ease;
}
.pfse-btn:hover { background: var(--se-orange-dark); color: #fff !important; transform: translateY(-1px); }
.pfse-btn:focus-visible { outline: 2px solid var(--se-orange); outline-offset: 3px; }
.pfse-cta-row { margin: 26px 0 0; }
.pfse-cta-inline { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }

.pfse-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--se-orange);
}
.pfse-badge-light { color: var(--se-orange); }

/* HERO --------------------------------------------------------- */
.pfse-hero { background: var(--se-navy); color: var(--se-paper); padding: 44px 0 64px; }
.pfse-hero p { color: rgba(247, 245, 240, 0.82); }
.pfse-hero strong { color: var(--se-paper); }
.pfse-hero-visual { display: none; }
.pfse-hero-book { margin: 22px 0 26px; }
.pfse-hero-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.pfse-proof { font-size: 13px; color: var(--se-mute-light); text-align: center; }

/* Livre 3D ----------------------------------------------------- */
.pfse-book-stage {
  position: relative; height: 330px;
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 2200px; perspective-origin: 50% 30%;
}
.pfse-book {
  position: relative; width: 218px; height: 308px;
  transform-style: preserve-3d;
  transform: rotateX(-5deg) rotateY(17deg);
}
.pfse-book-face { position: absolute; }
.pfse-book-front { inset: 0; overflow: hidden; transform: translateZ(14px); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.pfse-book-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pfse-book-gloss {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.03) 4%, rgba(255,255,255,.09) 6%, rgba(255,255,255,0) 24%, rgba(255,255,255,.03) 64%, rgba(0,0,0,.08) 100%);
}
.pfse-book-spine {
  width: 28px; height: 100%; left: 95px; top: 0;
  transform: rotateY(-90deg) translateZ(109px);
  background: linear-gradient(90deg, #06122B 0%, #112C60 55%, #0B1F4A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.pfse-book-spine-mark { display: block; width: 12px; height: 2px; background: var(--se-orange); }
.pfse-book-spine-title { writing-mode: vertical-rl; font-family: var(--se-serif); font-size: 13px; color: var(--se-paper); white-space: nowrap; }
.pfse-book-spine-title em { color: var(--se-orange); }
.pfse-book-spine-brand { writing-mode: vertical-rl; font-size: 7px; font-weight: 700; letter-spacing: 0.26em; color: rgba(247,245,240,.65); }
.pfse-book-edge {
  width: 26px; height: calc(100% - 4px); left: 96px; top: 2px;
  transform: rotateY(90deg) translateZ(107px);
  background: repeating-linear-gradient(90deg, #F4EFE4 0, #F4EFE4 2px, #DCD4C4 3px);
}
.pfse-book-top {
  width: calc(100% - 4px); height: 26px; left: 2px; top: -13px;
  transform: rotateX(90deg) translateZ(1px);
  background: repeating-linear-gradient(0deg, #F4EFE4 0, #F4EFE4 2px, #DCD4C4 3px);
}
.pfse-book-shadow {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 40px; border-radius: 50%;
  background: rgba(4, 12, 32, .55); filter: blur(22px);
}

/* HISTOIRE ----------------------------------------------------- */
.pfse-story { background: var(--se-paper); padding: 72px 0; }
.pfse-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pfse-byline img { width: 48px; height: 48px; border-radius: 50%; }
.pfse-byline span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--se-mute); }
.pfse-quote {
  margin: 22px 0; padding: 26px 0;
  border-top: 1px solid var(--se-line); border-bottom: 1px solid var(--se-line);
  font-family: var(--se-serif); font-style: italic;
  font-size: clamp(23px, 6vw, 30px); line-height: 1.32; color: var(--se-navy);
}

/* APERÇU ------------------------------------------------------- */
.pfse-demo { background: var(--se-sand); padding: 72px 0; }
.pfse-section-head { margin-bottom: 30px; }
.pfse-table-head { display: none; }
.pfse-row { padding: 20px 0; border-bottom: 1px solid var(--se-line); display: flex; flex-direction: column; gap: 6px; }
.pfse-row-fr { font-size: 14px; color: var(--se-mute); }
.pfse-row-bad { font-size: 15px; color: rgba(11,31,74,.38); text-decoration: line-through; }
.pfse-row-good { font-family: var(--se-serif); font-size: 21px; line-height: 1.25; color: var(--se-navy); }
.pfse-demo-foot { margin-top: 34px; display: flex; flex-direction: column; gap: 20px; }

/* CONTENU ------------------------------------------------------ */
.pfse-contents { background: var(--se-paper); padding: 72px 0; }
.pfse-cat { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--se-line); }
.pfse-cat-num { font-family: var(--se-serif); font-style: italic; font-size: 20px; color: var(--se-orange); flex: 0 0 30px; }
.pfse-cat h3 { margin: 0 0 8px; font-family: var(--se-serif); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--se-navy); }
.pfse-cat p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--se-mute); }

/* POURQUOI ----------------------------------------------------- */
.pfse-why { background: var(--se-navy); color: var(--se-paper); padding: 72px 0; }
.pfse-why .pfse-h2, .pfse-why .pfse-lead { color: var(--se-paper); }
.pfse-why p { color: rgba(247,245,240,.82); }
.pfse-why .pfse-eyebrow { color: var(--se-mute-light); }
.pfse-why .pfse-eyebrow-rule { background: var(--se-line-light); }
.pfse-portrait { display: block; width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 30px; }
.pfse-stats { display: flex; gap: 22px; margin: 20px 0 6px; padding-top: 24px; border-top: 1px solid var(--se-line-light); }
.pfse-stats div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pfse-stats strong { font-family: var(--se-serif); font-weight: 400; font-size: clamp(28px, 7vw, 34px); color: var(--se-paper); line-height: 1; }
.pfse-stats span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.45; color: var(--se-mute-light); }

/* OFFRE + FORMULAIRE ------------------------------------------- */
.pfse-offer { background: var(--se-sand); padding: 72px 0; }
.pfse-form { scroll-margin-top: 90px; }
.pfse-price { font-family: var(--se-serif); font-size: 22px; color: var(--se-navy); margin-bottom: 20px; }
.pfse-price em { color: var(--se-orange); }
.pfse-items { margin-bottom: 34px; border-bottom: 1px solid var(--se-line); }
.pfse-item { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--se-line); font-size: 16px; line-height: 1.5; }
.pfse-item span { font-family: var(--se-serif); font-style: italic; color: var(--se-orange); flex: 0 0 26px; }

.pfse-form { background: var(--se-paper); border: 1px solid var(--se-line); padding: 28px 24px; }
.pfse-form-title { font-family: var(--se-serif); font-size: 22px; line-height: 1.28; color: var(--se-navy); margin-bottom: 22px; }
.pfse-form-title em { color: var(--se-orange); }
.pfse-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pfse-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--se-mute); }
.pfse-field input {
  height: 48px; width: 100%; border: none; border-bottom: 1px solid var(--se-line);
  background: transparent; padding: 0; font-family: var(--se-sans); font-size: 17px; color: var(--se-navy);
  border-radius: 0;
}
.pfse-field input::placeholder { color: rgba(11,31,74,.32); }
.pfse-field input:focus { outline: none; border-bottom-color: var(--se-orange); }
.pfse-field.pfse-invalid input { border-bottom-color: #C0392B; }

.pfse-fieldset { border: none; margin: 0 0 6px; padding: 0; }
.pfse-fieldset legend { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--se-mute); margin-bottom: 14px; padding: 0; }
.pfse-radios { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.pfse-radios label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--se-ink); cursor: pointer; }
.pfse-radios input { accent-color: var(--se-orange); width: 17px; height: 17px; margin: 0; }

.pfse-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.pfse-submit {
  width: 100%; min-height: 60px; height: auto; padding: 18px 18px; border: none; border-radius: 3px; cursor: pointer;
  line-height: 1.35;
  background: var(--se-orange); color: #fff;
  font-family: var(--se-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .2s ease;
}
.pfse-submit:hover { background: var(--se-orange-dark); }
.pfse-submit[disabled] { opacity: .6; cursor: progress; }
.pfse-form-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--se-mute); }
.pfse-form-msg { margin: 14px 0 0; font-size: 14px; line-height: 1.6; min-height: 0; }
.pfse-form-msg.pfse-error { color: #C0392B; }
.pfse-form-msg.pfse-ok { color: #1E7B45; }

/* CTA FINAL ---------------------------------------------------- */
.pfse-final { background: var(--se-navy); color: var(--se-paper); padding: 76px 0 40px; }
.pfse-final .pfse-h2 { color: var(--se-paper); }
.pfse-final p { color: rgba(247,245,240,.78); }
.pfse-final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.pfse-avatar { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 18px; }
.pfse-final .pfse-btn { margin: 10px 0 14px; }
.pfse-final .pfse-muted { color: var(--se-mute-light); }
.pfse-legal {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--se-line-light);
  font-size: 12px; letter-spacing: 0.06em; color: rgba(247,245,240,.45); text-align: center;
}

/* MERCI -------------------------------------------------------- */
.pfse-thanks-hero { padding: 80px 0 64px; }
.pfse-thanks-hero .pfse-badge { margin-bottom: 14px; }
.pfse-thanks-next { background: var(--se-paper); padding: 64px 0 80px; }
.pfse-thanks-next .pfse-btn { display: inline-block; width: auto; }

/* ──────────────────────────────────────────────────────────────
   TABLETTE ≥ 720px
   ────────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .pfse p { font-size: 18px; }
  .pfse-wrap { padding: 0 48px; }
  .pfse-btn { display: inline-block; width: auto; padding: 21px 32px; font-size: 14px; }
  .pfse-cta-inline { flex-direction: row; gap: 26px; text-align: left; }
  .pfse-proof { text-align: left; }
  .pfse-hero { padding: 72px 0 88px; }
  .pfse-hero-actions { flex-direction: row; align-items: center; gap: 26px; }
  .pfse-story, .pfse-demo, .pfse-contents, .pfse-why, .pfse-offer { padding: 96px 0; }
  .pfse-radios { flex-direction: row; gap: 22px; }
  .pfse-form { padding: 40px 36px; }
  .pfse-demo-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .pfse-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
  .pfse-portrait { width: 260px; height: 260px; }
}

/* ──────────────────────────────────────────────────────────────
   DESKTOP ≥ 1024px
   ────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .pfse p { font-size: 19px; }
  .pfse-h1 { font-size: clamp(44px, 4.2vw, 58px); }
  .pfse-h2 { font-size: clamp(34px, 3.2vw, 44px); }

  .pfse-hero { padding: 100px 0 120px; }
  .pfse-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; align-items: center; }
  .pfse-hero-book { display: none; }
  .pfse-hero-visual { display: flex; justify-content: center; }
  .pfse-hero-visual .pfse-book-stage { height: 520px; }
  .pfse-hero-visual .pfse-book { width: 320px; height: 452px; }
  .pfse-hero-visual .pfse-book-front { transform: translateZ(19px); }
  .pfse-hero-visual .pfse-book-spine { width: 38px; left: 141px; transform: rotateY(-90deg) translateZ(160px); }
  .pfse-hero-visual .pfse-book-spine-title { font-size: 17px; }
  .pfse-hero-visual .pfse-book-edge { width: 36px; left: 142px; transform: rotateY(90deg) translateZ(158px); }
  .pfse-hero-visual .pfse-book-top { height: 36px; top: -18px; }
  .pfse-hero-visual .pfse-book-shadow { width: 380px; }

  .pfse-story, .pfse-demo, .pfse-contents, .pfse-why, .pfse-offer { padding: 130px 0; }
  .pfse-section-head { max-width: 820px; margin-bottom: 44px; }

  .pfse-table-head {
    display: grid; grid-template-columns: 290px 300px minmax(0, 1fr); gap: 30px;
    padding-bottom: 14px; border-bottom: 1px solid var(--se-line);
    font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--se-mute);
  }
  .pfse-row { display: grid; grid-template-columns: 290px 300px minmax(0, 1fr); gap: 30px; align-items: baseline; padding: 26px 0; }
  .pfse-row-fr, .pfse-row-bad { font-size: 17px; line-height: 1.45; }
  .pfse-row-good { font-size: 26px; }

  .pfse-cats { column-gap: 70px; }
  .pfse-cat { padding: 30px 0; gap: 24px; }
  .pfse-cat-num { font-size: 24px; flex-basis: 44px; }
  .pfse-cat h3 { font-size: 25px; }
  .pfse-cat p { font-size: 16px; }

  .pfse-why-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 80px; align-items: center; }
  .pfse-portrait { width: 330px; height: 330px; margin: 0; }
  .pfse-stats { gap: 60px; }

  .pfse-offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 80px; align-items: start; }
  .pfse-form { padding: 46px 44px; }
  .pfse-form-title { font-size: 26px; }

  .pfse-final { padding: 140px 0 60px; }
  .pfse-final-inner .pfse-h2 { max-width: 840px; }
  .pfse-final-inner p { max-width: 720px; }
  .pfse-avatar { width: 110px; height: 110px; }
  .pfse-btn-lg { padding: 24px 42px; font-size: 15px; }
}

/* Accessibilité ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .pfse-btn, .pfse-submit { transition: none; }
  .pfse-book { transform: none; }
}

/* ──────────────────────────────────────────────────────────────
   Page de remerciement v1.0.2 — communauté au-dessus de la ligne
   ────────────────────────────────────────────────────────────── */
.pfse-thanks-strip { background: var(--se-navy); color: var(--se-paper); padding: 18px 0; }
.pfse-thanks-strip-inner { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.5; color: rgba(247,245,240,.85); }
.pfse-thanks-strip strong { color: var(--se-paper); }
.pfse-check { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--se-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.pfse-thanks-wa-hero { background: var(--se-paper); padding: 34px 0 48px; }
.pfse-thanks-wa-copy .pfse-badge { margin-bottom: 12px; }
.pfse-thanks-wa-copy .pfse-h2 { margin-bottom: 14px; }
.pfse-thanks-wa-hero .pfse-btn { margin: 4px 0 12px; }
.pfse-thanks-visual { margin-top: 30px; }
.pfse-community-photo { display: block; width: 100%; border-radius: 4px; }

.pfse-chat { background: var(--se-navy); border-radius: 6px; padding: 18px 16px 20px; }
.pfse-chat-head { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--se-mute-light); margin-bottom: 14px; }
.pfse-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; }
.pfse-bubble { font-size: 14px; line-height: 1.5; padding: 11px 14px; border-radius: 10px; margin-bottom: 10px; max-width: 88%; }
.pfse-bubble b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; opacity: .75; font-weight: 700; }
.pfse-bubble-in { background: rgba(247,245,240,.10); color: var(--se-paper); border-bottom-left-radius: 3px; }
.pfse-bubble-out { background: var(--se-orange); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.pfse-bubble-out b { opacity: .85; }

.pfse-thanks-next { background: var(--se-sand); padding: 56px 0 72px; }
.pfse-thanks-next .pfse-eyebrow { margin-top: 26px; }
.pfse-thanks-next .pfse-eyebrow:first-child { margin-top: 0; }

@media (min-width: 900px) {
  .pfse-thanks-wa-hero { padding: 70px 0 90px; }
  .pfse-thanks-wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 70px; align-items: center; }
  .pfse-thanks-visual { margin-top: 0; }
  .pfse-thanks-strip-inner { font-size: 16px; }
}

/* Champ facultatif + aide (v1.0.3) */
.pfse-optional { font-weight: 500; letter-spacing: 0.06em; color: rgba(11,31,74,0.38); text-transform: none; }
.pfse-help { font-size: 13px; line-height: 1.5; color: var(--se-mute); margin-top: 2px; }

/* Mot personnel d'Adé — page de remerciement (v1.0.4) */
.pfse-note {
  margin: 38px 0 0; padding: 30px 26px; text-align: center;
  background: var(--se-paper); border: 1px solid var(--se-line);
  display: flex; flex-direction: column; align-items: center;
}
.pfse-note-photo { width: 84px; height: 84px; min-width: 84px; border-radius: 50%; margin-bottom: 18px; object-fit: cover; }
.pfse-note-quote {
  margin: 0 0 12px; font-family: var(--se-serif); font-style: italic;
  font-size: clamp(21px, 5.4vw, 26px); line-height: 1.32; color: var(--se-navy);
}
.pfse-note-text { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: var(--se-ink); max-width: 480px; }
.pfse-note-sign { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--se-mute); font-weight: 600; }

@media (min-width: 720px) {
  .pfse-note { padding: 40px 44px; }
}
