/* MiniProf — page Offres / conversion */
:root {
  --ink: #0b1c33;
  --ink-soft: #8a9bb0;
  --paper: #f6f3ee;
  --paper-deep: #ebe6dc;
  --lavender: #c4a8ef;
  --shell: #8b4db8;
  --shell-deep: #5c2d8a;
  --plastron: #f3e6a8;
  --line: rgba(11, 28, 51, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Newsreader", "Georgia", serif;
  --max: 1040px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.offres {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Top bar ——— */
.offres-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.15rem, 4vw, 2.5rem);
  background: rgba(11, 28, 51, 0.92);
  backdrop-filter: blur(12px);
  color: var(--paper);
}

.offres-top .brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
}

.offres-top-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.offres-top-nav a {
  color: rgba(246, 243, 238, 0.88);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.offres-top-nav a:hover {
  color: var(--plastron);
}

.nav-text-btn,
.nav-cta-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.3rem;
  background: transparent;
  color: rgba(246, 243, 238, 0.88);
}

.nav-text-btn:hover {
  color: var(--plastron);
}

.nav-cta-btn {
  background: var(--plastron);
  color: var(--ink);
  font-weight: 700;
}

.auth-status {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: rgba(246, 243, 238, 0.7);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.billing-option {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(11, 28, 51, 0.72);
  backdrop-filter: blur(6px);
}

.auth-overlay.hidden {
  display: none;
}

.auth-box {
  position: relative;
  width: min(100%, 400px);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--paper);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.auth-box h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.auth-sub {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #5a6b80;
}

.auth-box input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: 0.55rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.auth-box input:focus {
  outline: none;
  border-color: var(--shell);
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.error-msg {
  min-height: 1.2em;
  margin: 0.65rem 0 0;
  color: #c0392b;
  font-size: 0.9rem;
}

.auth-alt {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #5a6b80;
}

.auth-alt a {
  color: var(--shell-deep);
  font-weight: 600;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 110;
  max-width: min(92vw, 28rem);
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  background: #333;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.error {
  background: #c0392b;
}

#toast.success {
  background: #28a745;
}

/* ——— Hero ——— */
.offres-hero {
  position: relative;
  padding:
    clamp(2.75rem, 7vw, 4.5rem)
    clamp(1.15rem, 4vw, 2.5rem)
    clamp(2.5rem, 6vw, 3.5rem);
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(139, 77, 184, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 168, 239, 0.18), transparent 50%),
    var(--ink);
  overflow: hidden;
}

.offres-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

.offres-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

.offres-hero .brand-mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  letter-spacing: -0.04em;
  color: var(--plastron);
}

.offres-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.offres-hero .lede {
  margin: 0 0 1.1rem;
  max-width: 38rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: rgba(246, 243, 238, 0.88);
}

.offres-hero .trust {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(246, 243, 238, 0.72);
}

.offres-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-offres {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s;
}

.btn-offres:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-offres-primary {
  background: var(--plastron);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shell);
}

.btn-offres-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(246, 243, 238, 0.45);
}

.btn-offres-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--shell);
}

.btn-offres-shell {
  background: var(--shell-deep);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--plastron);
}

/* ——— Sections ——— */
.offres-section {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.15rem, 4vw, 2.5rem);
  max-width: calc(var(--max) + 2 * clamp(1.15rem, 4vw, 2.5rem));
  margin: 0 auto;
}

.offres-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  text-align: center;
}

.offres-section .section-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
  color: #5a6b80;
  font-size: 1.05rem;
}

/* ——— Billing choice (annual savings) ——— */
.billing-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max);
  margin: 0 auto 2.25rem;
  border-top: 2px solid var(--shell);
  border-bottom: 2px solid var(--shell);
}

.billing-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.1rem;
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: background 0.2s var(--ease-out);
}

.billing-option + .billing-option {
  border-left: 1.5px solid var(--line);
}

.billing-option:hover {
  background: rgba(139, 77, 184, 0.06);
}

.billing-option.is-featured {
  background: rgba(243, 230, 168, 0.45);
}

.billing-option .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--shell-deep);
}

.billing-option .amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.billing-option .amount span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5a6b80;
}

.billing-option .hint {
  margin: 0;
  font-size: 0.92rem;
  color: #5a6b80;
  line-height: 1.35;
}

.billing-option .save-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--shell-deep);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.billing-note {
  margin: -1.25rem auto 2rem;
  max-width: var(--max);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--shell-deep);
}

/* ——— Comparison table ——— */
.compare-wrap {
  max-width: var(--max);
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  background: rgba(11, 28, 51, 0.04);
  color: var(--ink);
}

.compare-table thead th.col-pro {
  background: rgba(139, 77, 184, 0.12);
  color: var(--shell-deep);
}

.compare-table tbody th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #3d4d63;
  background: rgba(246, 243, 238, 0.8);
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 9.5rem;
}

.compare-table td.col-pro {
  background: rgba(139, 77, 184, 0.05);
  font-weight: 600;
  color: var(--ink);
}

.compare-table .star {
  color: var(--shell-deep);
  font-size: 0.85em;
}

.compare-foot {
  margin: 0.85rem auto 0;
  max-width: var(--max);
  text-align: center;
  font-size: 0.9rem;
  color: #5a6b80;
}

.compare-foot a {
  color: var(--shell-deep);
  font-weight: 600;
}

/* ——— Why PRO ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 2px solid var(--ink);
}

.why-item {
  padding: 1.5rem 1.25rem;
  text-align: left;
}

.why-item + .why-item {
  border-left: 1.5px solid var(--line);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--shell-deep);
}

.why-item p {
  margin: 0;
  color: #3d4d63;
  font-size: 1rem;
  line-height: 1.45;
}

/* ——— Trust ——— */
.trust-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.15rem, 4vw, 2.5rem);
}

.trust-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.trust-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--plastron);
}

.trust-item p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(246, 243, 238, 0.82);
  line-height: 1.45;
}

/* ——— Closing ——— */
.offres-closing {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.15rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

.offres-closing h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  letter-spacing: -0.03em;
}

.offres-closing .closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.35rem;
}

.offres-closing .note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #5a6b80;
}

/* ——— Footer ——— */
.offres-foot {
  padding: 1.5rem clamp(1.15rem, 4vw, 2.5rem) 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.offres-foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.offres-foot a {
  color: #5a6b80;
  font-size: 0.88rem;
  text-decoration: none;
}

.offres-foot a:hover {
  color: var(--shell-deep);
}

.offres-foot .copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ——— Motion ——— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .billing-pick {
    grid-template-columns: 1fr;
  }

  .billing-option + .billing-option {
    border-left: 0;
    border-top: 1.5px solid var(--line);
  }

  .billing-option.is-featured .save-badge {
    top: 1rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-item + .why-item {
    border-left: 0;
    border-top: 1.5px solid var(--line);
  }

  .trust-band-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 520px) {
  .offres-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-offres {
    width: 100%;
  }

  .offres-hero h1 {
    max-width: none;
  }

  .compare-table {
    font-size: 0.88rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.7rem 0.75rem;
  }
}

/* ——— Auth modal ——— */
#authOverlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(11, 28, 51, 0.72);
  backdrop-filter: blur(6px);
}

#authOverlay.hidden {
  display: none;
}

.auth-box {
  position: relative;
  width: min(100%, 400px);
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border-radius: 0.5rem;
  box-shadow: 6px 6px 0 var(--shell);
  text-align: center;
}

.auth-box h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.auth-box .subtitle {
  margin: 0 0 1.25rem;
  color: #5a6b80;
  font-size: 0.95rem;
}

.auth-box input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 0.35rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.auth-box input:focus {
  outline: none;
  border-color: var(--shell);
}

.auth-box .error-msg {
  min-height: 1.25rem;
  margin: 0.35rem 0 0.75rem;
  color: #b42318;
  font-size: 0.9rem;
}

.auth-box .auth-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #5a6b80;
}

.auth-box .signup-hint {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: #5a6b80;
}

.auth-box .signup-hint a {
  color: var(--shell-deep);
  font-weight: 600;
}

#authStatus {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: rgba(246, 243, 238, 0.7);
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 120;
  padding: 0.75rem 1.2rem;
  border-radius: 0.4rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.error {
  background: #8b1e1e;
}

.billing-option {
  cursor: pointer;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  width: 100%;
}

button.billing-option {
  font-family: inherit;
  text-align: left;
}
