/* ========================================
   Variables & Reset
   ======================================== */

:root {
  --navy: #0A1F44;
  --blue-accent: #2E5BFF;
  --coral: #FF6B5B;
  --white-off: #FAFAFA;
  --gray-text: #4A5568;
  --gray-light: #E2E8F0;
  --radius: 14px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--gray-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========================================
   Password Overlay
   ======================================== */

.password-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}

.password-box {
  text-align: center;
  padding: 2.5rem;
  max-width: 380px;
  width: 90%;
}

.password-logo {
  height: 36px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}

.password-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.password-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.password-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.password-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.password-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.password-btn:hover {
  opacity: 0.9;
}

.password-error {
  color: var(--coral);
  font-size: 0.8125rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.password-error.visible {
  opacity: 1;
}

.password-overlay.shake .password-input {
  animation: shakeInput 0.4s var(--ease);
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 760px;
}

/* ========================================
   Header
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header.scrolled {
  border-bottom-color: var(--gray-light);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 36px;
  width: auto;
}

.header-mention {
  font-size: 0.75rem;
  color: rgba(74, 85, 104, 0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 80px 0;
}

.section--light {
  background: var(--white-off);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-text);
  margin-bottom: 3rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Hero
   ======================================== */

.hero {
  padding: 120px 0 80px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.65;
  color: var(--gray-text);
  max-width: 680px;
  margin-top: 1.25rem;
  font-weight: 300;
}

.hero-date {
  font-size: 0.875rem;
  color: rgba(74, 85, 104, 0.5);
  margin-top: 2rem;
  font-weight: 400;
}

/* ========================================
   Steps
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(10, 31, 68, 0.04), 0 6px 24px rgba(10, 31, 68, 0.03);
}

.step-number {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ========================================
   Callout
   ======================================== */

.callout {
  border-left: 3px solid var(--coral);
  background: rgba(255, 107, 91, 0.04);
  padding: 1.75rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout p {
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--navy);
}

/* ========================================
   Pricing
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card--featured {
  border: 2px solid var(--navy);
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.06), 0 16px 40px rgba(10, 31, 68, 0.04);
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.015) 0%, #fff 100%);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--coral);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.pricing-tag {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  margin-bottom: 0.5rem;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pricing-ht {
  font-size: 0.8125rem;
  color: rgba(74, 85, 104, 0.6);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.pricing-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--gray-text);
}

.pricing-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pricing-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--blue-accent);
}

.pricing-card--featured .pricing-list li::before {
  color: var(--coral);
}

/* ========================================
   Compare Table (desktop)
   ======================================== */

.compare-table-wrapper {
  margin-top: 2rem;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.compare-table th {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.compare-table th:first-child {
  width: 45%;
}

.compare-featured {
  color: var(--coral) !important;
}

.compare-featured-cell {
  font-weight: 500;
  color: var(--navy);
}

.compare-total td {
  border-bottom: none;
  padding-top: 1.25rem;
  font-size: 1rem;
}

.compare-total td strong {
  color: var(--navy);
}

.check {
  color: var(--gray-text);
  font-weight: 600;
}

.check--accent {
  color: var(--coral);
}

.dash {
  color: var(--gray-light);
}

/* Mobile compare */
.compare-mobile {
  display: none;
}

/* ========================================
   Modalities
   ======================================== */

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.modality-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.modality-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modality-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.modality-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ========================================
   CTA
   ======================================== */

.cta-section {
  padding: 100px 0;
}

.cta-content {
  text-align: center;
}

.cta-text {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--gray-text);
}

.cta-button {
  display: inline-block;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
  cursor: pointer;
}

.cta-button:hover {
  background: #0d2a5a;
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 3px;
}

.cta-hint {
  font-size: 0.8125rem;
  color: rgba(74, 85, 104, 0.5);
  margin-top: 1.25rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--gray-light);
}

.footer-logo {
  height: 24px;
  margin: 0 auto 0.75rem;
  opacity: 0.4;
}

.footer-text {
  font-size: 0.8125rem;
  color: rgba(74, 85, 104, 0.5);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .modalities-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modality-card {
    padding: 1.5rem;
  }

  .compare-table-wrapper {
    display: none;
  }

  .compare-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .compare-mobile-card {
    background: #fff;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    position: relative;
  }

  .compare-mobile-card--featured {
    border: 2px solid var(--navy);
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.06);
  }

  .compare-mobile-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .compare-mobile-card .pricing-badge {
    margin-bottom: 0.5rem;
  }

  .compare-mobile-card li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.375rem;
  }

  .compare-mobile-card li.included::before {
    content: '\2713';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--coral);
  }

  .compare-mobile-card li.not-included {
    color: rgba(74, 85, 104, 0.35);
  }

  .compare-mobile-card li.not-included::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--gray-light);
  }

  .compare-mobile-price {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    font-size: 1.125rem;
    color: var(--navy);
  }

  .cta-section {
    padding: 60px 0;
  }

  .header-mention {
    display: none;
  }
}

@media (min-width: 769px) {
  .section {
    padding: 120px 0;
  }

  .hero {
    padding: 160px 0 100px;
  }

  .cta-section {
    padding: 120px 0;
  }
}

/* ========================================
   Focus visible
   ======================================== */

:focus-visible {
  outline: 2px solid var(--blue-accent);
  outline-offset: 2px;
}

.password-input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
}

/* ========================================
   Print
   ======================================== */

@media print {
  .password-overlay {
    display: none !important;
  }

  .main-content {
    display: block !important;
  }

  .header {
    position: static;
    border-bottom: 1px solid #ccc;
  }

  .animate {
    opacity: 1 !important;
    transform: none !important;
  }

  .section--light {
    background: none;
  }

  .pricing-card--featured {
    border: 2px solid #000;
    box-shadow: none;
  }

  .cta-button {
    border: 2px solid var(--navy);
    background: #fff;
    color: var(--navy);
  }

  .cta-button::after {
    content: ' — contact@fabienbonneau.com';
  }

  body {
    font-size: 11pt;
  }
}
