/* ==========================================================================
   RevOptimize — main.css
   Thème "Purple Midnight" — Site français
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
  --bg-deep: #0D0B1E;
  --bg-surface: #141230;
  --bg-elevated: #1E1845;
  --bg-card: #1E1845;
  --bg-glass: rgba(30, 24, 69, 0.72);
  --accent-core: #7C3AED;
  --accent-mid: #8B5CF6;
  --accent-bright: #A855F7;
  --accent-glow: #C084FC;
  --accent-ice: #E9D5FF;
  --text-primary: #F8F4FF;
  --text-secondary: #C4B5FD;
  --text-muted: #8B7CBF;
  --positive: #34D399;
  --positive-bg: rgba(52, 211, 153, 0.08);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.08);
  --negative: #F87171;
  --negative-bg: rgba(248, 113, 113, 0.08);
  --info: #60A5FA;
  --info-bg: rgba(96, 165, 250, 0.08);
  --border-subtle: rgba(124, 58, 237, 0.12);
  --border-main: rgba(124, 58, 237, 0.28);
  --border-active: rgba(168, 85, 247, 0.6);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px rgba(124, 58, 237, 0.28);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.375rem;
}

p {
  margin-bottom: 1rem;
}

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

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  text-decoration: underline;
  color: var(--accent-glow);
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, #A855F7, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 0.875rem;
}

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

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

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

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  overflow: visible;
  background: transparent;
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(13, 11, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg {
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.main-nav a:hover {
  color: var(--accent-glow);
  background: rgba(192, 132, 252, 0.08);
  text-decoration: none;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: #C084FC;
  background: rgba(192, 132, 252, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-main, var(--border));
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.nav-toggle:hover {
  color: var(--text-primary);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(13, 11, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background: rgba(192, 132, 252, 0.08);
  color: #C084FC;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--accent-glow);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border-main);
}

.card-elevated {
  background: var(--bg-elevated);
  border-color: var(--border-main);
}

.card-plan {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-main);
}

.card-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-plan.featured {
  border-color: var(--accent-bright);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.2), inset 0 0 40px rgba(124, 58, 237, 0.04);
}

.card-plan.featured::before {
  content: "Recommandé";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. PLAN BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-standard {
  background: rgba(107, 114, 128, 0.15);
  color: #9CA3AF;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.badge-plus {
  background: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-premium {
  background: rgba(139, 92, 246, 0.12);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-metal {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(168, 85, 247, 0.1));
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-ultra {
  background: linear-gradient(135deg, rgba(217, 175, 40, 0.15), rgba(251, 191, 36, 0.1));
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* --------------------------------------------------------------------------
   9. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(168, 85, 247, 0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-main);
  border-radius: 20px;
  padding: 0.375rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-glow);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. COMPARISON TABLE
   -------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border-main);
  color: var(--text-primary);
  white-space: nowrap;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 0.875rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table tr:hover td {
  background: rgba(124, 58, 237, 0.05);
}

.comparison-table .check {
  color: var(--positive);
  font-size: 1.1rem;
}

.comparison-table .cross {
  color: var(--text-muted);
}

.comparison-table .col-featured {
  background: rgba(124, 58, 237, 0.06);
}

.comparison-table .plan-header.featured {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.2), transparent);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11. ALERT BOXES
   -------------------------------------------------------------------------- */
.alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border-left: 4px solid;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--text-secondary);
}

.alert-success {
  background: var(--positive-bg);
  border-color: var(--positive);
  color: var(--text-secondary);
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: var(--text-secondary);
}

.alert-negative {
  background: var(--negative-bg);
  border-color: var(--negative);
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   12. CTA BOXES
   -------------------------------------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
}

.cta-box h2 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-section {
  background: var(--bg-surface);
  padding: 5rem 0;
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   13. STATS
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent-glow);
  display: block;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   14. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--border-active);
}

/* --------------------------------------------------------------------------
   15. ARTICLE / GUIDE LAYOUT
   -------------------------------------------------------------------------- */
.article-hero {
  padding: 8rem 0 4rem;
}

.article-content {
  width: 100%;
}

.article-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-core);
  padding-left: 1rem;
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-muted);
  border-left: none;
  padding-left: 0;
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc ul li {
  padding: 0.35rem 0;
}

.toc ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.toc ul li a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.toc ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   16. SIMULATOR FORMS
   -------------------------------------------------------------------------- */
.sim-form {
  display: grid;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.range-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-bright);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
  transition: box-shadow var(--transition);
}

.range-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-bright);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
  border: none;
}

.range-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-glow);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.select-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}

.select-input:focus {
  border-color: var(--accent-bright);
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated);
  border-radius: 13px;
  border: 1px solid var(--border-main);
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

input:checked + .toggle-slider {
  background: var(--accent-core);
  border-color: var(--accent-core);
}

input:checked + .toggle-slider::before {
  transform: translate(22px, -50%);
  background: white;
}

/* --------------------------------------------------------------------------
   17. SIMULATOR RESULTS
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sim-results {
  animation: fadeIn 0.3s ease;
}

.sim-result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.sim-plan-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sim-roi-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.roi-positive {
  color: var(--positive);
}

.roi-negative {
  color: var(--negative);
}

.sim-breakdown {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sim-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.sim-breakdown-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sim-breakdown-value {
  font-weight: 600;
  color: var(--text-primary);
}

.sim-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.sim-plan-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.sim-plan-item.best {
  border-color: var(--accent-bright);
  background: rgba(124, 58, 237, 0.1);
}

.sim-plan-item .plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
}

.sim-plan-item .plan-roi {
  font-size: 0.9rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   18. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  color: var(--accent-glow);
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   19. FEATURES LIST
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.feature-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
  color: var(--text-primary);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.affiliation-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1rem;
}

.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   21. PAGE-SPECIFIC: PLAN PAGE
   -------------------------------------------------------------------------- */
.plan-hero {
  padding: 8rem 0 4rem;
  position: relative;
}

.plan-summary-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.pros-cons h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pros-list,
.cons-list {
  list-style: none;
  padding: 0;
}

.pros-list li,
.cons-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.375rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pros-list li::before {
  content: "✓";
  color: var(--positive);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.cons-list li::before {
  content: "✗";
  color: var(--negative);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* 1024px */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sim-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 768px */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 7rem;
  }

  .plan-summary-card {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .article-content {
    max-width: 100%;
  }

  .cta-inline {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: clamp(1.875rem, 5vw, 3.5rem);
  }
}

/* 640px */
@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .cta-inline {
    flex-direction: column;
  }

  .sim-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .card-plan {
    padding: 1.5rem;
  }

  .sim-result-card {
    padding: 1.5rem;
  }

  .plan-summary-card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   23. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

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

/* --------------------------------------------------------------------------
   24. CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-core);
  border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   25. FOCUS STYLES
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   26. UTILITY — REVEAL ANIMATION (base, extended by JS)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   27. MISC UTILITIES
   -------------------------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 2rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent-glow);
  border: 1px solid var(--border-main);
}

.price-tag {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-tag .currency {
  font-size: 1rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
}

.price-tag .period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.loading-skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-glass) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.chip:hover,
.chip.active {
  border-color: var(--border-active);
  color: var(--accent-glow);
  background: rgba(124, 58, 237, 0.1);
}

/* print */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .mobile-nav,
  .btn-primary {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ================================================================
   PATCH — Alignement classes HTML ↔ CSS (ajout des classes
   manquantes générées par les pages de contenu)
   ================================================================ */

/* ---- Hero layout -------------------------------------------- */
.hero-inner { /* le container dans le hero, rien à ajouter */ }

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-trust {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

/* ---- Section layout ----------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.65;
}

.section-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ---- Plan cards — éléments internes ------------------------- */
.card-plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Supprimer le pseudo-élément ::before (badge déjà dans le HTML) */
.card-plan.featured::before {
  content: none;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.plan-badge--standard {
  background: rgba(107,114,128,0.15);
  color: #9CA3AF;
  border: 1px solid rgba(107,114,128,0.3);
}

.plan-badge--plus {
  background: rgba(59,130,246,0.12);
  color: #60A5FA;
  border: 1px solid rgba(59,130,246,0.3);
}

.plan-badge--premium {
  background: rgba(139,92,246,0.12);
  color: #A78BFA;
  border: 1px solid rgba(139,92,246,0.3);
}

.plan-badge--metal {
  background: linear-gradient(135deg, rgba(109,40,217,0.2), rgba(168,85,247,0.1));
  color: #C084FC;
  border: 1px solid rgba(168,85,247,0.4);
}

.plan-badge--ultra {
  background: linear-gradient(135deg, rgba(217,175,40,0.15), rgba(251,191,36,0.1));
  color: #FDE68A;
  border: 1px solid rgba(251,191,36,0.3);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.plan-price {
  margin-bottom: 1.25rem;
}

.plan-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.plan-price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.plan-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.plan-benefits li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.45;
}

.plan-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--positive);
  font-weight: 700;
  font-size: 0.8rem;
  top: 0.05em;
}

.plan-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---- Bouton outline (alias .btn-secondary) ------------------ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--accent-glow);
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(124,58,237,0.1);
  border-color: var(--accent-bright);
  text-decoration: none;
}

.btn-outline.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.84rem;
}

.btn-outline.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ---- Composants carte ---------------------------------------- */
.card-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-glow);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-glow);
  text-decoration: none;
  margin-top: 1rem;
  transition: gap var(--transition), color var(--transition);
}

.card-link:hover {
  gap: 0.55rem;
  color: var(--accent-ice);
  text-decoration: none;
}

.card-link::after {
  content: "→";
}

.card-guide {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}

.card-guide:hover {
  border-color: var(--border-main);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ---- Feature items ------------------------------------------ */
.feature-body,
.feature-content {
  flex: 1;
  min-width: 0;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ---- CTA box ------------------------------------------------- */
.cta-box {
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(168,85,247,0.07));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
}

.cta-box--gradient {
  background: linear-gradient(135deg, rgba(124,58,237,0.22), rgba(168,85,247,0.12));
}

.cta-box-content {
  max-width: 580px;
  margin: 0 auto;
}

.cta-box-title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-box-text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

.cta-box-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box-checklist li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.cta-box-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--positive);
  font-weight: 700;
}

/* ---- Simulator teaser (homepage) ----------------------------- */
.simulator-teaser .cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.simulator-teaser .cta-box-content {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.simulator-teaser .cta-box-content > * { margin: 0; }

.simulator-teaser .cta-box-checklist {
  max-width: none;
  margin: 0;
}

.cta-box-visual {
  flex-shrink: 0;
}

.sim-preview-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  min-width: 180px;
}

.sim-preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sim-preview-plan {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.sim-preview-savings {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.sim-preview-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--positive);
}

@media (max-width: 768px) {
  .simulator-teaser .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .simulator-teaser .cta-box-content {
    align-items: center;
  }
  .cta-box-visual {
    display: none;
  }
}

/* ---- CTA section --------------------------------------------- */
.cta-section-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1rem;
  letter-spacing: -0.025em;
}

.cta-section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cta-section-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Stat number (alias stat-value) -------------------------- */
.stat-number {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-glow);
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* ---- RevPoints section classes ------------------------------ */
.revpoints-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.revpoints-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.revpoints-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.revpoints-visual {
  /* conteneur visuel */
}

.revpoints-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.revpoints-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.revpoints-icon {
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.revpoints-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.revpoints-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.revpoints-row:last-child {
  border-bottom: none;
}

.revpoints-pts {
  font-weight: 700;
  color: var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.revpoints-balance {
  text-align: center;
  padding: 1.25rem 0 1.5rem;
}

.revpoints-balance .revpoints-pts {
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  margin-bottom: 0.25rem;
}

.revpoints-balance-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.revpoints-breakdown {
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .revpoints-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Simulator preview -------------------------------------- */
.sim-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.sim-preview-plan {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sim-preview-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--positive);
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.sim-preview-savings {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sim-preview-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: block;
}

/* ---- Simulateur — steps ------------------------------------ */
.sim-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.sim-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.sim-step.active {
  color: var(--text-primary);
  font-weight: 600;
}

.sim-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
  flex-shrink: 0;
}

.sim-step.active .sim-step-num {
  background: var(--accent-core);
  border-color: var(--accent-bright);
  color: white;
}

.sim-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  min-width: 2rem;
  max-width: 5rem;
}

.sim-section.hidden,
.hidden {
  display: none !important;
}

.sim-form {
  max-width: 680px;
  margin: 0 auto;
}

.sim-form h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

/* ---- Spacing & readability improvements -------------------- */

/* Lisibilité du corps de texte */
.article-content > p,
.article-content > ul,
.article-content > ol {
  line-height: 1.75;
}

/* Améliorer l'espacement dans les sections */
.section + .section {
  padding-top: 5rem;
}

/* Éviter que les grilles soient trop denses */
.grid-5 {
  gap: 1.25rem;
}

.grid-3 {
  gap: 2rem;
}

.grid-2 {
  gap: 2.5rem;
}

/* Stat cards — plus d'espace */
.stat-card {
  padding: 2rem 1.5rem;
}

/* ---- Corrections responsive supplémentaires --------------- */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 4rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .section-ctas {
    flex-direction: column;
    align-items: center;
  }

  .cta-box {
    padding: 2rem 1.5rem;
  }

  .sim-step-label {
    display: none;
  }

  .sim-steps {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .plan-price-amount {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   ARTICLE PAGES — styles pour guides, revpoints, revolut-vs-banque, plans
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb (ol/li structure)
   -------------------------------------------------------------------------- */
.breadcrumb-wrapper { padding: 1.5rem 0 0; }
.breadcrumb ol { list-style: none; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.825rem; color: var(--text-muted); }
.breadcrumb li a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb li a:hover { color: var(--accent-glow); text-decoration: none; }
.breadcrumb-sep { color: var(--border-active); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   Hero articles (.article-hero used by revpoints, revolut-vs-banque
                   .hero-article used by guides)
   -------------------------------------------------------------------------- */
.article-hero,
.hero-article {
  position: relative;
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.article-hero::before,
.hero-article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(124,58,237,0.12), transparent),
              radial-gradient(ellipse 50% 80% at 80% 20%, rgba(168,85,247,0.08), transparent);
  pointer-events: none;
}

.article-hero > .container,
.article-hero-inner,
.hero-article > .container {
  position: relative;
  z-index: 1;
}

.article-hero-content { max-width: 760px; }

.article-category,
.hero-article .article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border-main);
  color: var(--accent-glow);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-title,
.hero-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.article-lead,
.hero-article .article-lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.article-meta,
.hero-article .article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-meta-item,
.meta-date,
.meta-read {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta-sep,
.meta-sep { color: var(--border-active); }

/* --------------------------------------------------------------------------
   Article layout & body
   -------------------------------------------------------------------------- */
.article-layout {
  padding: 3rem 0 5rem;
}

/* article-body may wrap the container (revolut-vs-banque pattern)
   or sit inside it (guides pattern) — don't set max-width here */
.article-body {
  padding-bottom: 2rem;
}

/* h2 section headings inside article body */
.article-body h2,
.article-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-left: 1rem;
  border-left: 3px solid var(--accent-core);
}

.article-body h2:first-child,
.article-section:first-child h2 {
  margin-top: 0;
}

/* Reset — TOC heading must not inherit article h2 border-left */
.toc h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.article-body h3,
.article-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent-glow);
}

/* Paragraph text inside article */
.article-body p,
.article-section p,
.article-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-body p:last-child,
.article-section p:last-child {
  margin-bottom: 0;
}

/* Lists — restore bullets stripped by global reset */
.article-body ul,
.article-body ol,
.article-section ul,
.article-section ol,
.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-body ol,
.article-section ol,
.article-content ol {
  list-style: decimal;
}

.article-body li,
.article-section li,
.article-content li {
  margin-bottom: 0.5rem;
}

/* Inline links inside article */
.article-body a:not(.btn):not(.card-link),
.article-section a:not(.btn):not(.card-link) {
  color: var(--accent-glow);
  text-decoration: none;
  border-bottom: 1px solid rgba(168,85,247,0.35);
  transition: border-color var(--transition), color var(--transition);
}

.article-body a:not(.btn):not(.card-link):hover,
.article-section a:not(.btn):not(.card-link):hover {
  color: var(--accent-ice);
  border-color: var(--accent-bright);
  text-decoration: none;
}

/* Section divider */
.article-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-section:last-of-type {
  border-bottom: none;
}

/* Article intro block */
.article-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Table — inline/data tables (.table-wrap)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}

.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap caption { text-align: left; padding: 12px 20px; font-size: 0.875rem; color: var(--text-muted); background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle); }
.table-wrap thead { background: rgba(124,58,237,0.1); }
.table-wrap th { padding: 12px 20px; font-size: 0.8125rem; font-weight: 600; text-align: left; color: var(--accent-glow); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.table-wrap td { padding: 11px 20px; font-size: 0.875rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(124,58,237,0.04); }

/* Comparison table colored cells */
.val-good { color: var(--positive); font-weight: 500; }
.val-neutral { color: var(--text-secondary); }
.val-bad { color: var(--negative); }
.th-sub { display: block; font-size: 0.7rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* Plan name tags */
.tag-ultra   { color: #FBBF24; font-weight: 700; }
.tag-metal   { color: var(--accent-glow); font-weight: 600; }
.tag-premium { color: #60A5FA; font-weight: 600; }
.tag-plus    { color: #34D399; font-weight: 600; }
.tag-standard { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Profile comparison cards (revolut-vs-banque)
   -------------------------------------------------------------------------- */
.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.profil-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.profil-card--yes {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.04);
}

.profil-card--caution {
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.04);
}

.profil-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profil-icon { font-size: 1.5rem; flex-shrink: 0; }

.profil-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.profil-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.profil-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.profil-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-mid);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Content list (custom bullets)
   -------------------------------------------------------------------------- */
.content-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 1.25rem 0; }
.content-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.65; }
.content-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-core); margin-top: 9px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Inline link helper
   -------------------------------------------------------------------------- */
.inline-link { color: var(--accent-glow); text-decoration: none; border-bottom: 1px solid rgba(168,85,247,0.35); transition: border-color 0.2s; }
.inline-link:hover { border-color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   CTA box actions & disclaimer
   -------------------------------------------------------------------------- */
.cta-box-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.cta-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }

/* --------------------------------------------------------------------------
   FAQ section
   -------------------------------------------------------------------------- */
.faq-section h2,
.faq-section > h2 { margin-bottom: 1.5rem; }

/* Standalone FAQ section (outside article-body, e.g. comment-gagner) */
section.faq {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

section.faq h2 {
  margin-bottom: 1.5rem;
}

/* Internal links grid + CTA below standalone FAQ */
section.faq + .container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

section.faq + .container .grid-3 {
  margin-bottom: 2.5rem;
}

/* Details/summary FAQ (native fallback) */
details.faq-item { border-bottom: 1px solid var(--border-subtle); }
details.faq-item summary.faq-question { list-style: none; cursor: pointer; }
details.faq-item summary.faq-question::-webkit-details-marker { display: none; }
details.faq-item[open] summary.faq-question::after { transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   Stats grid on article pages
   -------------------------------------------------------------------------- */
.article-stats { margin: 2rem 0; }

/* --------------------------------------------------------------------------
   Also-read / internal links section
   -------------------------------------------------------------------------- */
.also-read-section { margin-top: 3rem; }
.also-read-section h2 { margin-bottom: 1.5rem; }

/* Last section before CTA box — remove dangling bottom border */
.article-content > .article-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* CTA box inside article content — breathe */
.article-content > .cta-box {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .article-hero,
  .hero-article { padding: 2.5rem 0 2rem; }

  .article-layout { padding: 2rem 0 3rem; }

  .article-body h2,
  .article-section h2 { margin-top: 2rem; }

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

@media (max-width: 640px) {
  .article-hero > .container,
  .article-hero-inner,
  .hero-article > .container { max-width: 100%; }

  .cta-box-actions { flex-direction: column; align-items: stretch; }
  .cta-box-actions .btn { text-align: center; justify-content: center; }
}

/* ==========================================================================
   GUIDES PAGES — classes spécifiques
   ========================================================================== */

/* CTA section (appel à l'action milieu d'article) */
.cta-section {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(168,85,247,0.06));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 16px;
  text-align: center;
}
.cta-section h2 {
  font-size: 1.375rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  border-left: none;
  padding-left: 0;
}
.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Internal links section */
.internal-links {
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.internal-links h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-left: none;
  padding-left: 0;
}

/* Link cards grid */
.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.125rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.15);
}
.link-card strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.link-card span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Disclaimer text */
p.disclaimer,
.disclaimer {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--border-main);
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}

/* ==========================================================================
   PLANS PAGES — classes spécifiques
   ========================================================================== */

/* ---- Plan hero ---- */
.plan-hero {
  position: relative;
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.plan-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(124,58,237,0.12), transparent),
              radial-gradient(ellipse 50% 80% at 80% 20%, rgba(168,85,247,0.08), transparent);
  pointer-events: none;
}
.plan-hero .container { position: relative; z-index: 1; }
.plan-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 1rem 0 1.25rem;
  line-height: 1.2;
}
.plan-hero .lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* Plan hero variants */
.plan-hero--standard::before { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(107,114,128,0.1), transparent); }
.plan-hero--plus::before     { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(59,130,246,0.12), transparent); }
.plan-hero--premium::before  { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(139,92,246,0.14), transparent); }
.plan-hero--metal::before    { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(109,40,217,0.15), transparent); }
.plan-hero--ultra::before    { background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(217,119,6,0.14), transparent); }

/* Hero price display */
.hero-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.price-main {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
}
.price-annual {
  font-size: 0.875rem;
  color: var(--accent-glow);
  background: rgba(192,132,252,0.1);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 20px;
  padding: 2px 10px;
}

/* ---- Plan summary card ---- */
.section-summary { padding: 2.5rem 0; border-bottom: 1px solid var(--border-subtle); }

.plan-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 16px;
  padding: 1.75rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.summary-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.summary-value--yes { color: var(--positive); }
.summary-value--no  { color: var(--negative); }

/* ---- Section wrappers (advantages, limitations, etc.) ---- */
.section-advantages,
.section-limitations,
.section-forwhom,
.section-comparison,
.section-faq,
.section-cta,
.section-related {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.section-advantages .container > h2,
.section-limitations .container > h2,
.section-forwhom .container > h2,
.section-comparison .container > h2,
.section-faq .container > h2,
.section-cta .container > h2,
.section-related .container > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.section-advantages .container > p,
.section-limitations .container > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 720px;
}

/* ---- Feature list (avantages / limites) ---- */
.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}
.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-list li > div { flex: 1; }
.feature-list li strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.feature-list li p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.feature-icon--yes {
  background: rgba(52,211,153,0.15);
  border: 1px solid rgba(52,211,153,0.35);
  color: var(--positive);
}
.feature-icon--yes::after { content: "✓"; }
.feature-icon--no {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--negative);
}
.feature-icon--no::after { content: "✗"; }

/* ---- For whom grid ---- */
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.forwhom-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 14px;
  padding: 1.5rem;
}
.forwhom-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.forwhom-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.forwhom-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.forwhom-card--yes {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.04);
}
.forwhom-card--yes h3 { color: var(--positive); }
.forwhom-card--no {
  border-color: rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.04);
}
.forwhom-card--no h3 { color: var(--negative); }

/* ---- Comparison table ---- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border-main);
  margin-bottom: 1.5rem;
}
.comparison-table-wrapper .comparison-table {
  min-width: 580px;
  border-radius: 0;
  border: none;
}

/* Column highlight classes */
.col-current {
  background: rgba(124,58,237,0.08);
  font-weight: 600;
  color: var(--text-primary);
}
.col-below  { color: var(--text-secondary); }
.col-upgrade { color: var(--accent-glow); }
.col-yes { color: var(--positive); font-weight: 500; }
.col-no  { color: var(--negative); }

.comparison-verdict {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}
.comparison-verdict p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.5rem 0;
}
.comparison-verdict p:first-child { margin-top: 0; }
.comparison-verdict p:last-child  { margin-bottom: 0; }

/* ---- Inline CTA ---- */
.cta-inline {
  margin: 2.5rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.06));
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
}
.cta-inline-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.cta-inline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 600px;
}

/* ---- CTA box plan variants ---- */
.cta-box--standard { border-color: rgba(107,114,128,0.4); }
.cta-box--plus     { border-color: rgba(59,130,246,0.4); }
.cta-box--premium  { border-color: rgba(139,92,246,0.4); background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(124,58,237,0.04)); }
.cta-box--metal    { border-color: rgba(109,40,217,0.5); background: linear-gradient(135deg, rgba(109,40,217,0.1), rgba(124,58,237,0.05)); }
.cta-box--ultra    { border-color: rgba(217,119,6,0.4);  background: linear-gradient(135deg, rgba(217,119,6,0.08), rgba(251,191,36,0.04)); }

/* CTA checklist */
.cta-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.cta-checklist li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}
.cta-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--positive);
  font-weight: 700;
}

/* ---- Related cards ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.375rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.18);
}
.related-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-glow);
}
.related-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.related-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .plan-hero { padding: 2.5rem 0 2rem; }
  .summary-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .forwhom-grid { grid-template-columns: 1fr; }
  .related-grid, .link-cards { grid-template-columns: 1fr; }
  .price-main { font-size: 1.875rem; }
  .hero-price-display { gap: 0.35rem; }
}
@media (max-width: 640px) {
  .plan-summary-card { padding: 1.25rem; }
  .cta-inline, .cta-section { padding: 1.5rem 1.125rem; }
  .feature-list li { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================================================
   CALLOUT BOXES — highlight-box, solution-box, formula-box, recommendation-box
   ========================================================================== */

/* ---- Highlight box (info / amber / green) ------------------- */
.highlight-box {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box.amber {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
  border-left-color: var(--warning);
}

.highlight-box.green {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.3);
  border-left-color: var(--positive);
}

.highlight-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--info);
  margin-bottom: 0.5rem;
}

.highlight-box.amber .highlight-label { color: var(--warning); }
.highlight-box.green .highlight-label { color: var(--positive); }

.highlight-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Solution box ------------------------------------------- */
.solution-box {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-left: 4px solid var(--positive);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.solution-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--positive);
  margin-bottom: 0.5rem;
}

.solution-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Formula box -------------------------------------------- */
.formula-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.formula-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.formula-box .formula {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 2;
}

.formula-box .formula span {
  color: var(--accent-glow);
}

/* ---- Recommendation box ------------------------------------ */
.recommendation-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(168, 85, 247, 0.06));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.recommendation-box h3 {
  color: var(--text-primary);
  margin-top: 0;
  font-size: 1.05rem;
}

.recommendation-box p,
.recommendation-box li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---- col-highlight (table column emphasis) ----------------- */
td.col-highlight {
  background: rgba(124, 58, 237, 0.06);
}

th.col-highlight {
  background: rgba(124, 58, 237, 0.14);
  color: var(--text-primary) !important;
}

/* ==========================================================================
   REVPOINTS PAGES — section-specific components
   ========================================================================== */

/* ---- Section divider (hr) ---------------------------------- */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* ---- Option header (comment-utiliser sections) ------------- */
.option-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.option-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Pros/Cons title divs (inside .pros and .cons) --------- */
.pros-title,
.cons-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.pros-title { color: var(--positive); }
.cons-title { color: var(--negative); }

/* ---- Piège cards (pieges-a-eviter) ------------------------- */
.piege-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.piege-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.piege-number {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border-main);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.piege-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.piege-body {
  padding: 1.5rem;
}

/* ---- Method header (comment-gagner) ----------------------- */
.method-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.method-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #7C3AED, #C084FC);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1875rem;
  font-weight: 800;
}

.method-header h2 {
  margin: 0;
}

/* ---- Option header icon/title alignment fix (comment-utiliser) */
.option-header h2,
.method-header h2 {
  margin: 0;
  border-left: none;
  padding-left: 0;
}

/* ---- Value display widget (valeur-et-equivalences) --------- */
.value-display {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.value-big {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.value-unit {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.value-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.value-range-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ---- Usage grid cards (valeur-et-equivalences) ------------- */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.usage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}

.usage-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.usage-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.usage-card-value.ok   { color: var(--text-secondary); }
.usage-card-value.good { color: var(--accent-glow); }
.usage-card-value.best { color: var(--positive); }

.usage-card-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Comparison cards (valeur-et-equivalences) ------------- */
.comparison-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.5rem;
  margin-bottom: 0.875rem;
}

.comparison-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}

.comparison-content {
  flex: 1;
  min-width: 0;
}

.comparison-content h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.comparison-content p {
  margin: 0;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.comparison-value {
  flex-shrink: 0;
  text-align: right;
}

.comparison-value strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
}

.comparison-value small {
  font-size: 0.725rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .comparison-card { flex-wrap: wrap; }
  .comparison-value { text-align: left; }
}

/* ---- Checklist section (pieges-a-eviter) ------------------- */
.checklist {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}

.checklist-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.checklist-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--positive);
  font-weight: 700;
  margin-top: 2px;
}

.checklist-item-content h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.checklist-item-content p {
  margin: 0;
  font-size: 0.845rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Table highlight row ----------------------------------- */
tr.highlight-row td {
  background: rgba(124, 58, 237, 0.06);
  font-weight: 500;
}

/* ---- Comparison table verdict tags ------------------------- */
.val-good {
  color: var(--positive);
  font-weight: 600;
}

.val-neutral {
  color: var(--text-secondary);
}

.tag-ok {
  display: inline-block;
  background: rgba(251, 191, 36, 0.12);
  color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Bottom container spacing in main --------------------- */
main > .container {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
