/* Self-hosted Nunito variable font (no external requests) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Design tokens (CSS custom properties) ===== */
:root {
  --color-primary: #22C55E;
  --color-primary-hover: #16A34A;
  --color-dark: #0F172A;
  --color-heading: #1E3A5F;
  --color-text: #5f6061;
  --color-text-light: #9CA3AF;
  --color-text-dark: #0F172A;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-input: #f1f1f1;
  --color-border: #e5e7eb;
  --color-border-strong: #dbdee0;
  --color-success-bg: #F0FDF4;
  --color-success-border: #BBF7D0;
  --color-success-text: #166534;
  --color-error-bg: #FEF2F2;
  --color-error-border: #FECACA;
  --color-error-text: #991B1B;
  --color-badge-bg: #DCFCE7;
  --radius: 5px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
}
html.dark {
  --color-bg: #0F172A;
  --color-bg-alt: #1E293B;
  --color-bg-input: #1E293B;
  --color-text: #CBD5E1;
  --color-text-dark: #F1F5F9;
  --color-heading: #F1F5F9;
  --color-border: #334155;
  --color-border-strong: #334155;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: clip; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text); background: var(--color-bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.15; color: var(--color-heading); margin-bottom: 16px; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--color-heading); margin-top: 48px; margin-bottom: 20px; }
h3 { font-size: 1.125rem; font-weight: 700; color: var(--color-heading); margin-bottom: 8px; }
p { margin-bottom: 16px; color: var(--color-text); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }
small, .text-muted { color: var(--color-text); font-size: 0.875rem; }
strong { font-weight: 700; }

/* ===== Layout ===== */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
main { min-height: calc(100vh - 160px); padding: 48px 24px; max-width: 960px; margin: 0 auto; }

/* ===== Nav ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto; padding: 14px 24px; }
.nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9375rem; font-weight: 600; transition: color 0.2s; }
.nav a:hover { color: #fff; }
.nav-logo { font-weight: 800; font-size: 1.25rem; color: #fff !important; letter-spacing: -0.02em; }
.nav-logo .logo-dot-fr,
.nav-logo .nav-logo__accent { color: #22C55E; font-weight: 700; }
.nav-logo img { display: block; height: 28px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-burger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0F172A; padding: 16px 24px; gap: 4px; z-index: 100; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; font-size: 1rem; }
  .nav--open .nav-links { display: flex; }
  .nav-dropdown__menu { display: none; position: static; box-shadow: none; background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px 16px; margin-top: 4px; min-width: auto; }
  .nav-dropdown__menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown .nav-dropdown__trigger:focus + .nav-dropdown__menu,
  .nav-dropdown__menu--open { display: block; }
  .nav-dropdown__trigger { display: block; padding: 10px 0; font-size: 1rem; text-align: left; width: 100%; }
  .nav-dropdown__menu a { padding: 6px 0; font-size: 0.875rem; }
}
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { cursor: pointer; background: none; border: none; color: rgba(255,255,255,0.75); font-size: 0.9375rem; font-weight: 600; font-family: inherit; padding: 0; line-height: inherit; }
.nav-dropdown__trigger:hover { color: #fff; }
.nav-dropdown__menu { display: none; position: absolute; top: 100%; right: 0; background: #1E293B; border-radius: 8px; padding: 12px 0 8px; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 200; }
.nav-dropdown__menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown__menu--open { display: block; }
.nav-dropdown__menu li { list-style: none; }
.nav-dropdown__menu a { display: block; padding: 8px 16px; color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.nav-dropdown__menu a:hover { background: rgba(34,197,94,0.1); color: #22C55E; }

/* ===== Footer (3 colonnes) ===== */
.site-footer { /* Hérite de .dark-section */ }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; font-size: 0.875rem; }
.footer-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; margin-bottom: 32px; text-align: left; }
.footer-col h4 { color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 5px 0; font-size: 0.875rem; }
.footer-col a:hover { color: #22C55E; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-copy { color: rgba(255,255,255,0.4); margin: 0; }
.footer-stats { color: rgba(255,255,255,0.3); font-size: 0.8125rem; margin-top: 4px; }

/* ===== Buttons ===== */
.btn, .btn-primary {
  display: inline-block; padding: 12px 24px; background: #0F172A; color: #fff;
  border: none; border-radius: 5px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center; transition: background 0.2s;
}
.btn:hover, .btn-primary:hover { background: #1a1850; color: #fff; }
.btn:active { background: #0a0830; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--outline, .btn-outline { background: transparent; color: #5f6061; border: 1px solid #dbdee0; }
.btn--outline:hover, .btn-outline:hover { background: #f8f9fa; color: #5f6061; }
.btn--small { padding: 8px 16px; font-size: 0.875rem; }
.btn--success { background: #0F172A; }
.btn--success:hover { background: #1a1850; }
.btn--large { padding: 16px 32px; font-size: 1.0625rem; }
.btn-submit {
  display: block; width: 100%; padding: 14px 24px; background: var(--color-primary); color: var(--color-dark);
  border: none; border-radius: var(--radius); font-size: 1.0625rem; font-weight: 700;
  cursor: pointer; text-align: center; margin-top: 8px; transition: background 0.2s;
}
.btn-submit:hover { background: var(--color-primary-hover); }
.btn-submit:active { background: #32b584; }
.form-reassurance { text-align: center; font-size: 0.8125rem; color: #9ca3af; margin-top: 12px; margin-bottom: 0; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 5px; padding: 14px 18px; margin-bottom: 20px; font-size: 0.9375rem; }
.form-errors p { margin: 0 0 4px; color: inherit; }
.form-errors p:last-child { margin-bottom: 0; }

/* ===== Forms ===== */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9375rem; color: #0F172A; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 14px; border: none; border-radius: 5px;
  font-size: 1rem; background: #f1f1f1; color: #0F172A; transition: border-color 0.2s;
  border-bottom: 2px solid transparent;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-bottom: 2px solid var(--color-primary); background: var(--color-bg-input);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
}
.form-group input:focus-visible, .form-group select:focus-visible {
  box-shadow: 0 0 0 3px rgba(34,197,94,0.4);
}
.form-group select:disabled { opacity: 0.5; cursor: not-allowed; }
.form-group .field-error { border-bottom: 2px solid #dc2626; }
.form-group .field-error:focus { border-bottom: 2px solid #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.25); }
.field-error-msg { color: #dc2626; font-size: 0.8125rem; margin-top: 4px; display: block; }
.form-hint { color: #374151; font-size: 0.8125rem; margin-top: 4px; display: block; }
.form-optional { font-weight: 400; color: #6b7280; font-style: italic; font-size: 0.875em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { margin-top: 12px; }

/* ===== Wizard steps indicator ===== */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wizard-step { flex: 1; text-align: center; padding: 10px 0; font-size: 0.8125rem; font-weight: 600; color: #9ca3af; border-bottom: 3px solid #e5e7eb; transition: color 0.2s, border-color 0.2s; }
.wizard-step--active { color: #0F172A; border-bottom-color: #22C55E; }
.wizard-step--done { color: #22C55E; border-bottom-color: #22C55E; }
.wizard-panel h3 { font-size: 1.125rem; color: #0F172A; }

.form-section { max-width: 640px; margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 10; }
.benchmark-form, #benchmark-form {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: 10px;
  padding: 32px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative;
}
.benchmark-form--compact { padding: 24px; }

/* ===== Alert ===== */
.alert { padding: 14px 18px; border-radius: 5px; margin-bottom: 20px; font-size: 0.9375rem; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert--error ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.alert--error li { margin-bottom: 4px; }

/* ===== Input with suffix ===== */
.input-with-suffix { position: relative; display: flex; align-items: stretch; }
.input-with-suffix input { flex: 1; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-suffix {
  display: inline-flex; align-items: center; padding: 0 14px;
  background: #f1f1f1; border: none; border-left: 1px solid #dbdee0;
  border-radius: 0 5px 5px 0; font-size: 0.875rem; font-weight: 700; color: #5f6061;
}
.input--large { font-size: 1.25rem !important; font-weight: 700 !important; padding: 14px 16px !important; }
.form-group--tjm { margin-bottom: 24px; }
.form-group--tjm label { font-size: 1rem; }

/* ===== Hero ===== */
/* Template dark section — un seul endroit pour le style dark (hero, footer, CTA) */
.dark-section { background: #0F172A url('/img/hero-bg.png') center center / cover no-repeat; color: #fff; position: relative; }
.dark-section::before { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, 0.75); }
.dark-section > * { position: relative; z-index: 1; }
.dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p, .dark-section li { color: rgba(255,255,255,0.7); }
.dark-section a { color: #22C55E; }
.dark-section strong { color: #fff; }

/* Hero = dark-section + layout spécifique */
.hero { text-align: center; padding: 60px 24px 88px; margin-bottom: 0; width: 100vw; left: 50%; margin-left: -50vw; margin-top: -48px; }
.hero h1 { font-size: 2.25rem; color: #fff; }
.hero-subtitle, .hero p { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 32px; }
.hero-preview { font-size: 0.9375rem; color: #22C55E; margin-top: 24px; margin-bottom: 0; }
.hero-preview strong { color: #fff; font-weight: 700; }

/* ===== How it works (home) ===== */
.how-it-works { text-align: center; padding: 48px 24px; background: #f8f9fa; width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.how-it-works h2 { font-size: 1.5rem; margin-top: 0; margin-bottom: 32px; color: #0F172A; }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; max-width: 960px; margin: 0 auto; }
.hiw-item strong { display: block; font-size: 1rem; color: #0F172A; margin-bottom: 4px; }
.hiw-item p { font-size: 0.9375rem; color: #5f6061; margin: 0; }

/* ===== Hero Premium ===== */
.hero-premium { text-align: center; padding: 80px 24px 120px; width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-top: -48px; }
.hero-premium::before { display: none; }
.hero-premium__inner { max-width: 640px; margin: 0 auto; }
.hero-premium__title { font-size: 2.25rem; font-weight: 700; color: #0F172A; margin-bottom: 16px; line-height: 1.15; }
.hero-premium__subtitle { font-size: 1.125rem; color: #5f6061; margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.hero-premium__subtitle strong { color: #0F172A; font-weight: 700; }
.hero-premium__badge, .hero-premium__badge-label, .hero-premium__badge-value, .hero-premium__badge-hint { display: none; }

/* ===== Form Card ===== */
.form-card-section { max-width: 640px; margin: -72px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.form-card { background: #fff; border-radius: 10px; padding: 36px 32px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.form-card__heading { font-size: 1.25rem; font-weight: 700; text-align: center; margin: 0 0 24px; color: #0F172A; }
.form-card__footer { text-align: center; margin-top: 16px; font-size: 0.8125rem; color: #9ca3af; }
.form-card__reassurance { text-align: center; font-size: 0.8125rem; color: #9ca3af; margin-top: 16px; margin-bottom: 0; }
.btn-premium {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px; background: #22C55E; color: #0F172A;
  border: none; border-radius: 5px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s;
}
.btn-premium:hover { background: #16A34A; }
.btn-premium:active { background: #32b584; }
.btn-premium svg { flex-shrink: 0; }
.btn-premium--light { background: #22C55E; color: #0F172A; }
.btn-premium--light:hover { background: #16A34A; }

/* ===== Result Hero ===== */
.result-hero { text-align: center; padding: 60px 24px 48px; width: 100vw; left: 50%; margin-left: -50vw; margin-top: -48px; margin-bottom: 40px; }
/* Hérite de .dark-section pour background + overlay */
.result-hero h1, .result-hero h2, .result-hero strong { color: #fff; }
.result-hero__number { font-size: 2.5rem; font-weight: 700; color: #22C55E; line-height: 1; display: block; }
.result-hero__subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.7); margin-top: 8px; }
.result-hero .gauge-labels span { color: rgba(255,255,255,0.6); }
.result-hero .gauge-marker__label { color: #fff; }
.result-hero .gauge-bar { background: rgba(255,255,255,0.15); }
.result-hero .gauge-fill { background: #22C55E; }
.result-hero .gauge-marker { background: #fff; }
.result-hero .btn--outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.result-hero .btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Gauge ===== */
.gauge { margin: 28px auto; max-width: 640px; }
.gauge-bar { width: 100%; height: 10px; background: #f1f1f1; border-radius: 10px; position: relative; overflow: visible; }
.gauge-fill { height: 100%; border-radius: 10px; background: #22C55E; }
.gauge-marker { position: absolute; top: -6px; width: 4px; height: 22px; background: #0F172A; border-radius: 2px; transform: translateX(-50%); }
.gauge-marker__label { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 700; white-space: nowrap; color: #0F172A; }
.gauge-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: #5f6061; font-weight: 600; }

/* ===== Stat Boxes ===== */
.stat-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.stat-box { background: #fff; border-radius: 10px; padding: 24px; text-align: center; border: none; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.stat-box--primary, .stat-box--highlight { border-bottom: 3px solid #22C55E; }
.stat-box--user { border-bottom: 3px solid #22C55E; }
.stat-box__label { display: block; font-size: 0.75rem; color: #5f6061; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.stat-box__value { display: block; font-size: 2.5rem; font-weight: 700; margin: 8px 0 4px; color: #0F172A; letter-spacing: -0.02em; line-height: 1.1; }
.stat-box__value small { font-size: 0.8125rem; font-weight: 500; color: #9ca3af; letter-spacing: 0; }
.stat-box__note { display: block; font-size: 0.8125rem; color: #9ca3af; }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comparison-table, .data-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: #fff; }
.comparison-table th, .data-table th {
  text-align: left; padding: 12px 14px; border-bottom: 2px solid #dbdee0;
  font-size: 0.8125rem; color: #5f6061; font-weight: 700;
}
.comparison-table td, .data-table td { padding: 12px 14px; border-bottom: 1px solid #f1f1f1; }
.comparison-table__row--current td { font-weight: 700; }
.comparison-table__row--best td { font-weight: 700; }
.data-table__row--highlight td { font-weight: 700; }

/* ===== Comparison Cards (mobile) ===== */
.comparison-cards { display: none; }
.comparison-card { background: #fff; border-radius: 10px; padding: 16px; border: 1px solid #dbdee0; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.comparison-card--current { border-color: #22C55E; }
.comparison-card--best { border-color: #22C55E; }
.comparison-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.comparison-card__status { font-weight: 700; color: #0F172A; }
.comparison-card__body { display: flex; justify-content: space-between; align-items: baseline; }
.comparison-card__net { font-size: 1.25rem; font-weight: 700; color: #0F172A; }
.comparison-card__diff { font-size: 0.875rem; }

/* ===== Badges ===== */
.badge { display: inline-block; padding: 2px 10px; border-radius: 5px; font-size: 0.75rem; font-weight: 700; margin-left: 8px; background: #f1f1f1; color: #5f6061; }
.badge--best { background: #DCFCE7; color: #0F172A; }
.badge--current, .badge--you { background: #DCFCE7; color: #0F172A; }
.badge-source { background: #f1f1f1; color: #5f6061; }
.diff--positive, .positive { color: #0F172A; font-weight: 700; }
.diff--negative, .negative { color: #5f6061; font-weight: 700; }

/* ===== Affiliate Cards ===== */
.affiliate-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.affiliate-card { border: none; border-radius: 10px; padding: 24px; margin: 24px 0; background: #fff; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.affiliate-label {
  position: absolute; top: -10px; left: 16px; background: #f1f1f1; color: #9ca3af;
  font-size: 0.6875rem; padding: 2px 8px; border-radius: 5px; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700;
}
.affiliate-card__name { font-size: 1.0625rem; font-weight: 700; color: #0F172A; }
.affiliate-card__tagline, .affiliate-tagline { color: #5f6061; font-size: 0.875rem; margin-bottom: 8px; }
.affiliate-card__context { color: #5f6061; font-size: 0.9375rem; margin-bottom: 12px; }
.affiliate-card__desc { color: #5f6061; font-size: 0.9375rem; margin-bottom: 16px; line-height: 1.6; }
.affiliate-cta { display: inline-block; padding: 10px 20px; background: #22C55E; color: #0F172A; border-radius: 5px; font-weight: 700; font-size: 0.9375rem; text-decoration: none; transition: background 0.2s; }
.affiliate-cta:hover { background: #16A34A; color: #0F172A; }

/* ===== Share Card ===== */
.share-card { background: #fff; border: 1px solid #dbdee0; border-radius: 10px; padding: 28px; text-align: center; margin: 28px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: relative; z-index: 2; }
.share-card p, .share-card strong { color: #0F172A !important; }
.share-card__text { font-size: 1.0625rem; margin-bottom: 16px; font-weight: 700; color: #0F172A !important; }
.share-card__buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.share-btn { padding: 8px 16px; border-radius: 5px; font-weight: 700; font-size: 0.875rem; cursor: pointer; border: 1px solid #dbdee0; background: #f9fafb; color: #374151; text-decoration: none; transition: background 0.2s; }
.share-btn:hover { background: #e5e7eb; }

/* ===== Trust line ===== */
.trust-line { text-align: center; font-size: 0.8125rem; color: #5f6061; margin: 24px 0 0; }

/* ===== Trust ===== */
.trust { margin: 32px 0; }
.trust-section, .trust-list { display: flex; gap: 32px; justify-content: center; align-items: center; padding: 24px; }
.trust-item, .trust-list li { text-align: center; font-size: 0.9375rem; color: #5f6061; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ===== Trust Strip ===== */
.trust-strip { padding: 48px 24px; margin-top: 48px; border-top: 1px solid #dbdee0; border-bottom: 1px solid #dbdee0; width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.trust-strip__inner { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.trust-strip__icon { display: none; }
.trust-strip__item { display: flex; flex-direction: column; align-items: center; }
.trust-strip__number { font-size: 1.5rem; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
.trust-strip__label { font-size: 0.875rem; font-weight: 700; color: #0F172A; margin-bottom: 2px; }
.trust-strip__sublabel { font-size: 0.8125rem; color: #5f6061; }
.trust-strip__desc { font-size: 0.875rem; color: #5f6061; line-height: 1.5; max-width: 240px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; counter-reset: step; }
.steps::before { display: none; }
.step, .steps li { text-align: center; padding: 20px 16px; counter-increment: step; }
.step__number, .steps li::before { content: counter(step); display: block; font-size: 2rem; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.steps li strong { display: block; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
.steps li span { display: block; font-size: 0.9375rem; color: #5f6061; margin-top: 4px; line-height: 1.5; }

/* ===== How It Works (premium) ===== */
/* Also section (liens outils sur la home) */
.also-section { text-align: center; padding: 24px 0 48px; }
.also-section__title { font-size: 0.8125rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.also-section__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.also-section__links a { color: #1E3A5F; font-weight: 600; font-size: 0.9375rem; text-decoration: none; padding: 8px 0; }
.also-section__links a:hover { color: #22C55E; }

.hiw-section { padding: 48px 24px; background: #f8f9fa; width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.hiw-section .section-heading,
.hiw-section h2 { text-align: center; color: #0F172A; margin-top: 0; }
.hiw-section .hiw-steps,
.hiw-section .hiw-grid { max-width: 960px; margin: 0 auto; }
.section-heading { font-size: 1.75rem; font-weight: 700; text-align: center; color: #0F172A; margin-bottom: 48px; }
.hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hiw-step { text-align: center; padding: 28px 20px; }
.hiw-step__icon { display: none; }
.hiw-step__number { display: block; font-size: 2rem; font-weight: 700; color: #0F172A; margin-bottom: 12px; }
.hiw-step__title { font-size: 1rem; font-weight: 700; color: #0F172A; margin-bottom: 6px; }
.hiw-step__desc { font-size: 0.875rem; color: #5f6061; line-height: 1.5; margin: 0; }
.hiw-connector, .hiw-step__connector { display: none; }

/* ===== Value Section ===== */
.value-section { padding: 64px 24px; width: 100vw; position: relative; left: 50%; margin-left: -50vw; }
.value-section .section-heading { margin-bottom: 40px; }
.value-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card { border: none; border-radius: 10px; padding: 28px 24px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.value-card__icon { display: none; }
.value-card__title { font-size: 1rem; font-weight: 700; color: #0F172A; margin-bottom: 6px; }
.value-card__desc { font-size: 0.9375rem; color: #5f6061; line-height: 1.6; margin: 0; }

/* ===== CTA Sections ===== */
.cta-section { border: 1px solid #dbdee0; border-radius: 10px; padding: 64px 32px; text-align: center; margin: 48px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.cta-section::before { display: none; }
.cta-section h2 { margin-top: 0; color: #0F172A; }
.cta-section p { color: #5f6061; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-buttons .btn-submit { display: inline-block; width: auto; margin-top: 0; }
.cta-premium { text-align: center; padding: 64px 24px; width: 100vw; position: relative; left: 50%; margin-left: -50vw; margin-bottom: -48px; border-top: 1px solid #dbdee0; }
.cta-premium::before { display: none; }
.cta-premium__inner { max-width: 560px; margin: 0 auto; }
.cta-premium__title { font-size: 1.75rem; font-weight: 700; color: #0F172A; margin: 0 0 8px; line-height: 1.2; }
.cta-premium__subtitle { font-size: 1rem; color: #5f6061; margin-bottom: 28px; }

/* ===== Simulateur ===== */
.sim-hero { padding: 60px 24px 88px; text-align: center; width: 100vw; left: 50%; margin-left: -50vw; margin-top: -48px; margin-bottom: 0; }
/* Hérite de .dark-section pour background + overlay */
.sim-hero__inner { max-width: 640px; margin: 0 auto; }
.sim-hero h1 { font-size: 2rem; margin-bottom: 8px; color: #fff; }
.sim-hero__subtitle { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; }

.sim-input-section { display: flex; justify-content: center; margin: -40px auto 40px; position: relative; z-index: 10; max-width: 960px; padding: 0 24px; }
.sim-input-card { background: #fff; border-radius: 10px; padding: 28px 32px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); max-width: 480px; width: 100%; }
.sim-inputs .form-group { margin-bottom: 16px; }
.sim-inputs .form-group label { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; display: block; }
.sim-input-wrapper { position: relative; display: flex; align-items: center; }
.sim-input-large {
  width: 100%; padding: 12px 80px 12px 14px; border: none; border-radius: 5px;
  font-size: 1.25rem; font-weight: 700; background: #f1f1f1; -moz-appearance: textfield;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.sim-input-large::-webkit-inner-spin-button, .sim-input-large::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sim-input-large:focus { outline: none; border-bottom: 2px solid #22C55E; background: #f1f1f1; }
.sim-input-suffix { position: absolute; right: 14px; font-size: 0.875rem; font-weight: 700; color: #9ca3af; pointer-events: none; }

.sim-ca-display { text-align: center; padding: 16px 0 4px; border-top: 1px solid #f1f1f1; margin-top: 8px; }
.sim-ca-label { display: block; font-size: 0.75rem; color: #5f6061; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.sim-ca { display: inline-block; font-size: 2.5rem; font-weight: 700; color: #0F172A; line-height: 1.2; }
.sim-ca-unit { display: block; font-size: 0.875rem; color: #9ca3af; font-weight: 500; }
.sim-input-note { text-align: center; font-size: 0.8125rem; color: #9ca3af; margin: 8px 0 0; }

/* ===== Sim Advanced ===== */
.sim-advanced { margin-top: 16px; }
.sim-advanced summary { cursor: pointer; font-size: 0.9375rem; font-weight: 700; color: #5f6061; padding: 8px 0; user-select: none; list-style: none; }
.sim-advanced summary::-webkit-details-marker { display: none; }
.sim-advanced summary::before { content: '\25B6'; display: inline-block; margin-right: 8px; font-size: 0.75rem; }
.sim-advanced[open] summary::before { transform: rotate(90deg); display: inline-block; }
.sim-advanced__content { padding: 12px 0 0; }
.sim-advanced__content .form-group { margin-bottom: 12px; }
.sim-advanced__content label { display: block; font-size: 0.875rem; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
.sim-advanced__content input[type="number"], .sim-advanced__content select {
  width: 100%; padding: 10px 12px; border: none; border-radius: 5px; font-size: 0.9375rem; background: #f1f1f1;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.sim-advanced__content input[type="number"]:focus, .sim-advanced__content select:focus { outline: none; border-bottom: 2px solid #22C55E; }
.sim-advanced__content input[type="range"] { width: calc(100% - 50px); vertical-align: middle; accent-color: #22C55E; }
#sim-remuneration-pct-val { display: inline-block; width: 40px; text-align: right; font-weight: 700; font-size: 0.9375rem; color: #22C55E; }

/* ===== Sim Protection ===== */
.sim-protection { margin: 0 0 40px; }
.sim-protection h3 { text-align: center; font-size: 1.125rem; font-weight: 700; color: #0F172A; margin-bottom: 16px; }
.sim-protection .data-table { width: 100%; font-size: 0.875rem; }
.sim-protection .data-table th { font-size: 0.8125rem; }
.sim-protection .data-table td:first-child { font-weight: 700; color: #0F172A; white-space: nowrap; }

/* ===== Sim Results ===== */
.sim-results-section { }
.sim-section-title { text-align: center; font-size: 1.5rem; font-weight: 700; margin: 40px 0 24px; color: #0F172A; }

/* ===== Sim Columns ===== */
.sim-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
.sim-column { background: #fff; border: 1px solid #dbdee0; border-radius: 10px; overflow: hidden; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sim-column__header { height: 0; width: 100%; }
.sim-column__header--ae, .sim-column__header--eurl, .sim-column__header--sasu, .sim-column__header--portage { background: transparent; }
.sim-column__body { padding: 20px 16px 24px; }
.sim-column h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #0F172A; padding: 14px 16px; border-bottom: 1px solid #f1f1f1; display: flex; align-items: center; gap: 8px; }
.sim-regime-toggle { font-size: 0.75rem; font-weight: 600; padding: 2px 6px; border: 1px solid #d1d5db; border-radius: 4px; background: #f9fafb; color: #374151; cursor: pointer; }
.sim-column--best { border-bottom: 3px solid #22C55E; }
.sim-column--ineligible { opacity: 0.45; }
.best-badge, .sim-badge { display: inline-block; padding: 3px 12px; background: #DCFCE7; color: #0F172A; border-radius: 5px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }

.sim-ae-warning { font-size: 0.75rem; color: #9ca3af; background: #f1f1f1; padding: 4px 8px; border-radius: 5px; margin-bottom: 8px; font-weight: 700; display: inline-block; }
.sim-net-block { margin-bottom: 4px; }
.sim-net-label { display: block; font-size: 0.75rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.sim-net { display: block; font-size: 1.75rem; font-weight: 700; color: #0F172A; margin: 2px 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sim-column--ae .sim-net, .sim-column--eurl .sim-net, .sim-column--sasu .sim-net, .sim-column--portage .sim-net { color: #0F172A; }
.sim-net-monthly-block { margin-bottom: 16px; }
.sim-net-monthly { display: block; font-size: 1rem; font-weight: 700; color: #5f6061; font-variant-numeric: tabular-nums; }
.sim-net-value { display: block; font-size: 1.5rem; font-weight: 700; color: #0F172A; margin: 4px 0 8px; }

/* ===== Sim Breakdown ===== */
.sim-breakdown { text-align: left; font-size: 0.8125rem; color: #5f6061; margin: 0; padding: 10px 0 0; border-top: 1px solid #f1f1f1; }
.sim-breakdown li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid #f1f1f1; }
.sim-breakdown li:last-child { border-bottom: none; }
.sim-breakdown__label { flex: 1; }
.sim-breakdown__value { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-weight: 600; }
.sim-breakdown__charge .sim-breakdown__value { color: #5f6061; }
.sim-breakdown__total { font-weight: 700; border-top: 2px solid #dbdee0; padding-top: 6px; }
.sim-breakdown__total .sim-breakdown__value { font-weight: 700; }

/* ===== Sim Bars ===== */
.sim-bars { border: 1px solid #dbdee0; border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sim-bars__title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: #0F172A; text-align: center; }
.sim-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sim-bar-row:last-child { margin-bottom: 0; }
.sim-bar-label { width: 140px; flex-shrink: 0; font-size: 0.8125rem; font-weight: 700; color: #5f6061; text-align: right; }
.sim-bar-track { flex: 1; height: 10px; background: #f1f1f1; border-radius: 10px; overflow: hidden; }
.sim-bar, .sim-bar__fill { height: 100%; border-radius: 10px; background: #22C55E; min-width: 4px; }
.sim-bar--ae, .sim-bar--eurl, .sim-bar--sasu, .sim-bar--portage { background: #22C55E; }
.sim-column--best .sim-bar, .sim-column--best .sim-bar__fill { background: #22C55E; }
.sim-bar-value { width: 100px; flex-shrink: 0; font-size: 0.875rem; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; }
.sim-bar-container { height: 10px; background: #f1f1f1; border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.sim-disclaimer { text-align: center; font-size: 0.8125rem; color: #9ca3af; margin-top: 16px; margin-bottom: 24px; }

/* ===== Sim Explanations ===== */
.sim-explications { margin-top: 48px; }
.sim-explications h2 { text-align: center; }
.sim-explications-grid, .explications-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.sim-explication-card, .explication-card { border: none; border-radius: 10px; padding: 24px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sim-explication-card h3, .explication-card h3 { font-size: 1rem; margin-bottom: 10px; color: #0F172A; }
.sim-explication-card--ae h3, .sim-explication-card--eurl h3, .sim-explication-card--sasu h3, .sim-explication-card--portage h3 { color: #0F172A; }
.sim-explication-card ul, .explication-card ul { padding-left: 0; }
.sim-explication-card li, .explication-card li { padding: 4px 0 4px 16px; position: relative; font-size: 0.9375rem; color: #5f6061; line-height: 1.5; }
.sim-explication-card li::before, .explication-card li::before { content: '\2022'; position: absolute; left: 0; color: #dbdee0; }

/* ===== Sim CTA ===== */
.sim-cta { border: 1px solid #dbdee0; border-radius: 10px; padding: 48px 32px; text-align: center; margin: 48px 0 16px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sim-cta h2 { margin-top: 0; font-size: 1.5rem; }
.sim-cta__subtitle { color: #5f6061; font-size: 1rem; margin-bottom: 24px; }

/* ===== Email Capture ===== */
.email-capture { border: 1px solid #dbdee0; border-radius: 10px; padding: 40px; text-align: center; margin: 48px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.email-capture h2 { margin-top: 0; font-size: 1.25rem; }
.email-capture__fields { display: flex; gap: 10px; max-width: 480px; margin: 16px auto 0; }
.email-capture__fields input { flex: 1; }
.email-capture__note { display: block; margin-top: 12px; }
.email-capture__success { color: #22C55E; font-weight: 700; }
.email-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }

/* ===== Net Estimate ===== */
.net-estimate__hero { text-align: center; margin-bottom: 24px; }
.net-estimate__annual { font-size: 2.5rem; font-weight: 700; color: #0F172A; }
.net-estimate__monthly { font-size: 1.125rem; color: #5f6061; }
.net-estimate__best { text-align: center; margin-top: 16px; padding: 16px; border: 1px solid #dbdee0; border-radius: 10px; }
.net-estimate__cta { text-align: center; margin-top: 24px; }

/* ===== TJM Range ===== */
.tjm-range__position { font-size: 1rem; text-align: center; }
.tjm-range__recommendation { text-align: center; font-size: 1rem; color: #5f6061; }
.tjm-range__detail { text-align: center; font-size: 0.9375rem; color: #5f6061; }
.tjm-range__count { display: block; text-align: center; margin-top: 8px; }

/* ===== Recommendations ===== */
.recommendations { margin: 32px 0; }
.recommendations h2 { margin-bottom: 16px; }
.reco-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.reco-card__badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; background: #F3F4F6; color: #6B7280; }
.reco-card--action .reco-card__badge { background: #ECFDF5; color: #065F46; }
.reco-card--warning .reco-card__badge { background: #FFFBEB; color: #92400E; }
.reco-card--info .reco-card__badge { background: #EFF6FF; color: #1E40AF; }
.reco-card--tip .reco-card__badge { background: #F5F3FF; color: #5B21B6; }
.reco-card--subtle .reco-card__badge { background: #F9FAFB; color: #6B7280; }
.reco-card__title { font-size: 1.0625rem; color: #1E3A5F; margin: 0 0 8px; }
.reco-card__text { color: #374151; margin: 0; line-height: 1.6; font-size: 0.9375rem; }

/* ===== SEO / FAQ ===== */
.seo-hero { padding: 40px 0 20px; }
.seo-hero__subtitle { color: #5f6061; font-size: 1rem; }
.seo-count { font-size: 0.875rem; color: #9ca3af; text-align: center; }
.related-links { margin-top: 40px; }
.related-links h2 { font-size: 1.125rem; margin-bottom: 12px; }
.related-links__list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links__list a { display: inline-block; padding: 6px 14px; background: #F1F5F9; border-radius: 6px; color: #1E3A5F; font-size: 0.875rem; text-decoration: none; transition: background 0.15s; }
.related-links__list a:hover { background: #22C55E; color: #fff; }
.faq-section { margin-top: 48px; }
.faq-section details { border-bottom: 1px solid #dbdee0; padding: 16px 0; }
.faq-section summary { cursor: pointer; font-weight: 700; font-size: 1rem; list-style: none; color: #0F172A; padding: 4px 0; }
.faq-section summary:hover { color: #22C55E; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before { content: '+'; color: #22C55E; font-weight: 700; margin-right: 12px; font-size: 1.125rem; display: inline-block; width: 16px; }
.faq-section details[open] summary::before { content: '\2212'; }
.faq-section details p { margin-top: 10px; color: #5f6061; }

/* ===== Methodology / Page ===== */
.page-header { padding: 40px 0 20px; }
.methodo-section { margin-bottom: 32px; }
.methodo-block { margin-bottom: 24px; }
.methodo-list { margin-top: 12px; padding-left: 0; }
.methodo-list li { padding: 8px 0; margin-bottom: 6px; border-bottom: 1px solid #f1f1f1; }
.methodo-list li:last-child { border-bottom: none; }
.privacy-item { padding: 12px 0; border-bottom: 1px solid #f1f1f1; }
.privacy-check { color: #22C55E; font-weight: 700; }
.status-mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.status-mini-card { border: 1px solid #dbdee0; border-radius: 10px; padding: 16px; text-align: center; }

/* ===== Chart ===== */
.chart-section, .distribution { margin: 32px 0; }
#chart-distribution { max-width: 100%; }
#chart-distribution canvas { width: 100% !important; height: 300px !important; }

/* ===== Section spacing ===== */
section { padding: 4px 0; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
[hidden] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  main { padding: 24px 16px; }
  /* Disable 100vw hack on mobile (causes horizontal overflow) */
  .hero, .sim-hero, .result-hero, .hero-premium, .how-it-works, .trust-strip, .hiw-section, .value-section, .cta-premium {
    width: auto; left: auto; margin-left: -16px; margin-right: -16px;
  }
  .hero { padding: 48px 20px 72px; }
  .hero h1 { font-size: 2rem; }
  .result-hero { padding: 36px 20px 32px; }
  .result-hero__number { font-size: 2rem; }
  .stat-boxes { grid-template-columns: 1fr; }
  .stat-box__value { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .trust-section, .trust-list { flex-direction: column; gap: 12px; }
  .nav-links { gap: 12px; font-size: 0.8125rem; }
  .nav-logo img { height: 24px; width: auto; }
  .hiw-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-section { margin-top: -32px; padding: 0 16px; }
  .sim-hero { padding: 36px 16px 28px; margin: -24px -16px 0; }
  .sim-hero h1 { font-size: 1.625rem; }
  .sim-input-section { margin-top: -20px; padding: 0 16px; }
  .sim-input-card { padding: 20px 16px; max-width: 100%; }
  .sim-input-large { font-size: 1.125rem; padding: 10px 72px 10px 12px; }
  .sim-ca { font-size: 2rem; }
  .sim-columns { grid-template-columns: 1fr; }
  .sim-net { font-size: 1.5rem; }
  .sim-bars { padding: 16px; }
  .sim-bar-row { flex-wrap: wrap; }
  .sim-bar-label { width: 100%; text-align: left; font-size: 0.75rem; margin-bottom: -4px; }
  .sim-bar-value { width: 72px; font-size: 0.8125rem; }
  .sim-explications-grid, .explications-grid { grid-template-columns: 1fr; }
  .sim-cta { padding: 32px 20px; }
  .sim-protection .data-table { font-size: 0.75rem; }
  .sim-protection .data-table th, .sim-protection .data-table td { padding: 6px 4px; }
  .sim-protection .data-table td:first-child { white-space: normal; }
  .email-capture__fields, .email-form { flex-direction: column; }
  .share-card__buttons { flex-direction: column; align-items: center; }
  .comparison-table--desktop { display: none; }
  .comparison-cards { display: block; margin: 24px 0; }
  .net-estimate__annual { font-size: 2rem; }
  .affiliate-cards { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .benchmark-form { padding: 20px; margin-left: 8px; margin-right: 8px; }
  .cta-section { padding: 40px 20px; }
  .hero-premium { padding: 48px 20px 100px; margin-top: -24px; }
  .hero-premium__title { font-size: 1.75rem; }
  .hero-premium__subtitle { font-size: 1rem; }
  .form-card-section { margin-top: -60px; padding: 0 16px; }
  .form-card { padding: 24px 16px; }
  .form-card__heading { font-size: 1.125rem; }
  .trust-strip__inner { grid-template-columns: 1fr; gap: 24px; }
  .hiw-steps { grid-template-columns: 1fr; gap: 12px; }
  .value-grid { grid-template-columns: 1fr; }
  .cta-premium { padding: 48px 20px; margin-bottom: -16px; }
  .cta-premium__title { font-size: 1.375rem; }
  .status-mini-cards { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; gap: 8px; }
  .sim-net-value { font-size: 1.25rem; }
  .barometre-filters__inner { flex-wrap: wrap; justify-content: center; }
  .barometre-section { padding: 32px 16px; }
  .barometre-section .data-table { font-size: 0.8125rem; }
  .barometre-section .data-table th, .barometre-section .data-table td { padding: 8px 6px; }
  .barometre-cta { padding: 40px 20px; }
  .wizard-btns { flex-direction: column-reverse; gap: 8px; }
  .wizard-btns .btn,
  .wizard-btns .btn-submit { width: 100%; min-height: 48px; flex: unset !important; }
  .wizard-panel button[type="submit"] { min-height: 48px; }
  /* A9 — Cibles tactiles 44px minimum (WCAG 2.5.5) */
  .nav-links a, .nav-dropdown__trigger { min-height: 44px; display: flex; align-items: center; }
  .nav-dropdown__menu a { min-height: 44px; display: flex; align-items: center; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; }
  .btn, .btn-primary, .btn-submit, .btn--outline, .affiliate-cta, .share-btn { min-height: 44px; }
  .also-section__links a { min-height: 44px; display: inline-flex; align-items: center; }
  details summary { min-height: 44px; display: flex; align-items: center; }
  .barometre-filter-pill { min-height: 44px; display: inline-flex; align-items: center; }
  /* Tables larges : scroll horizontal sur petit écran */
  .data-table, .comparison-table--desktop { display: table; }
  section > .data-table, details > .data-table, .sim-protection > .data-table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  /* Simulateur projection table */
  .sim-projection { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sim-projection .data-table { min-width: 480px; }
  /* Cookie banner responsive */
  #cookie-banner { font-size: 0.75rem; padding: 10px 16px; text-align: left; }
}

/* ===== Baromètre TJM ===== */
.barometre-filters { padding: 24px 24px 0; max-width: 960px; margin: 0 auto; }
.barometre-filters__inner { display: flex; gap: 8px; flex-wrap: wrap; }
.barometre-filter-pill {
  display: inline-block; padding: 6px 16px; border-radius: 20px;
  background: #f1f1f1; color: #0F172A; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.barometre-filter-pill:hover { background: #0F172A; color: #fff; }
.barometre-section { max-width: 960px; margin: 0 auto; padding: 40px 24px 0; }
.barometre-section h2 { font-size: 1.375rem; color: #0F172A; margin-bottom: 16px; }
.barometre-section .data-table { border-radius: 8px; overflow: hidden; }
.barometre-detail-link { font-size: 0.8125rem; color: #0F172A; font-weight: 600; text-decoration: none; white-space: nowrap; }
.barometre-detail-link:hover { text-decoration: underline; }
.barometre-insufficient { color: #9ca3af; font-style: italic; text-align: center; }
.barometre-cta {
  max-width: 640px; margin: 48px auto 0; padding: 48px 24px; text-align: center;
  background: #f8f9fa; border-radius: 12px;
}
.barometre-cta h2 { font-size: 1.25rem; color: #0F172A; margin-bottom: 12px; }
.barometre-cta p { color: #5f6061; margin-bottom: 24px; }

/* ===== Dark mode (class .dark on <html>, set by JS toggle + system detection) ===== */
html.dark body { background: #0F172A; color: #CBD5E1; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color: #F1F5F9; }
html.dark a { color: #22C55E; }
html.dark .form-card, html.dark .benchmark-form, html.dark .sim-input-card, html.dark .sim-bars,
html.dark .sim-explications-grid > div, html.dark .email-capture, html.dark .stat-box,
html.dark .comparison-card, html.dark .affiliate-card, html.dark .data-table,
html.dark .barometre-cta, html.dark .barometre-section { background: #1E293B; }
html.dark .form-group input, html.dark .form-group select { background: #1E293B; color: #F1F5F9; border-color: #334155; }
html.dark .form-group input:focus, html.dark .form-group select:focus { background: #1E293B; }
html.dark .form-hint { color: #94A3B8; }
html.dark .form-group label { color: #E2E8F0; }
html.dark .data-table th { background: #1E293B; color: #E2E8F0; }
html.dark .data-table td { border-color: #334155; color: #CBD5E1; }
html.dark .stat-box { background: #1E293B; }
html.dark .stat-box__label { color: #94A3B8; }
html.dark .stat-box__value { color: #F1F5F9; }
html.dark .site-footer { background: #020617; }
html.dark .btn, html.dark .btn-primary { background: #22C55E; color: #0F172A; }
html.dark .btn:hover, html.dark .btn-primary:hover { background: #16A34A; }
html.dark .form-errors { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }
html.dark .wizard-step { color: #64748B; border-color: #334155; }
html.dark .wizard-panel h3 { color: #F1F5F9; }
html.dark .sim-columns > div { background: #1E293B; }
html.dark .sim-net-value { color: #22C55E; }
html.dark .barometre-filter-pill { background: #1E293B; color: #CBD5E1; }
html.dark .barometre-filter-pill--active { background: #22C55E; color: #0F172A; }
html.dark .barometre-detail-link { color: #22C55E; }
html.dark .form-optional { color: #94A3B8; }
html.dark .trust-strip, html.dark .cta-section, html.dark .cta-premium { background: #1E293B; }
html.dark p, html.dark li, html.dark td, html.dark dd { color: #CBD5E1; }
html.dark .sim-disclaimer, html.dark .form-hint, html.dark small, html.dark figcaption { color: #94A3B8; }
html.dark details summary { color: #E2E8F0; }
html.dark details p, html.dark details li { color: #CBD5E1; }
html.dark .faq-section details { border-color: #334155; }
html.dark .related-links a { color: #CBD5E1; border-color: #334155; }
html.dark .related-links a:hover { background: #1E293B; color: #22C55E; }

/* ===== Dark mode: override inline styles (hack for colors hardcoded in PHP views) ===== */
html.dark [style*="color:#374151"], html.dark [style*="color: #374151"] { color: #CBD5E1 !important; }
html.dark [style*="color:#0F172A"], html.dark [style*="color: #0F172A"] { color: #E2E8F0 !important; }
html.dark [style*="color:#1E3A5F"], html.dark [style*="color: #1E3A5F"] { color: #93C5FD !important; }
html.dark [style*="color:#5f6061"], html.dark [style*="color: #5f6061"] { color: #94A3B8 !important; }
html.dark [style*="color:#6B7280"], html.dark [style*="color: #6B7280"] { color: #94A3B8 !important; }
html.dark [style*="color:#166534"], html.dark [style*="color: #166534"] { color: #4ADE80 !important; }
html.dark [style*="color:#DC2626"], html.dark [style*="color: #DC2626"] { color: #FCA5A5 !important; }
html.dark [style*="color:#92400E"], html.dark [style*="color: #92400E"] { color: #FCD34D !important; }
html.dark [style*="color:#1E40AF"], html.dark [style*="color: #1E40AF"] { color: #93C5FD !important; }
html.dark [style*="color:#6D28D9"], html.dark [style*="color: #6D28D9"] { color: #C4B5FD !important; }
html.dark [style*="background:#f8f9fa"], html.dark [style*="background: #f8f9fa"] { background: #1E293B !important; }
html.dark [style*="background:#f0fdf4"], html.dark [style*="background: #f0fdf4"] { background: #0D2818 !important; }
html.dark [style*="background:#F0FDF4"] { background: #0D2818 !important; }
html.dark [style*="background:#EFF6FF"] { background: #172554 !important; }
html.dark [style*="background:#FEF3C7"] { background: #422006 !important; }
html.dark [style*="background:#F5F3FF"] { background: #2E1065 !important; }
html.dark [style*="background:#FFF7ED"] { background: #431407 !important; }
html.dark [style*="border:1px solid #e5e7eb"], html.dark [style*="border: 1px solid #e5e7eb"] { border-color: #334155 !important; }

/* ===== Content utility classes ===== */
.content-h2 { color: #1E3A5F; margin-bottom: 16px; }
.content-body { line-height: 1.7; color: #374151; }
.content-strong { color: #0F172A; }
.detail-card { margin-bottom: 12px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.detail-card summary { font-weight: 700; cursor: pointer; color: #0F172A; }
.detail-card p { margin-top: 12px; line-height: 1.7; color: #374151; }
.callout { padding: 16px 20px; border-radius: 0 8px 8px 0; margin-top: 24px; }
.callout p { margin: 0; line-height: 1.7; }
.callout--tip { background: #f0fdf4; border-left: 4px solid #22c55e; }
.callout--warn { background: #fef2f2; border-left: 4px solid #ef4444; }
.callout--info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.card-grid { display: grid; gap: 12px; }
.card-grid > div { border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
html.dark .content-h2 { color: #93C5FD; }
html.dark .content-body, html.dark .detail-card p { color: #CBD5E1; }
html.dark .content-strong, html.dark .detail-card summary { color: #E2E8F0; }
html.dark .detail-card { border-color: #334155; }
html.dark .callout--tip { background: #0D2818; border-left-color: #22C55E; }
html.dark .callout--warn { background: #2D1215; border-left-color: #ef4444; }
html.dark .callout--info { background: #172554; border-left-color: #3b82f6; }
html.dark .card-grid > div { border-color: #334155; }

/* ===== Sitemap links ===== */
.sitemap-link { color: #374151; text-decoration: none; transition: color 0.15s; }
.sitemap-link:hover { color: #22C55E; text-decoration: underline; }
html.dark .sitemap-link { color: #CBD5E1; }
html.dark .sitemap-link:hover { color: #22C55E; }

/* ===== Focus visible (accessibilité clavier) ===== */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #22C55E;
  outline-offset: 2px;
  border-radius: 2px;
}
/* Dark section: focus ring plus visible */
.dark-section a:focus-visible,
.dark-section button:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible { outline-color: #22C55E; }
/* Remove default outline on mouse click (focus-visible handles keyboard) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
select:focus:not(:focus-visible),
input:focus:not(:focus-visible) { outline: none; }

/* ===== 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; }
}
