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

:root {
  --noir: #EDF3FB;
  --noir-2: #ffffff;
  --or: #2C3F84;
  --or-light: #3a52a8;
  --or-pale: #1a2a5e;
  --blanc: #000000;
  --titre: #2C3F84;
  --titre-hover: #3a52a8;
  --gris: #4a6080;
  --gris-2: #1e304d;
  --success: #2da86d;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .05);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(237, 243, 251, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--blanc);
}

.logo span {
  color: var(--titre);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--blanc);
  text-decoration: none;
  position: relative;
  transition: color .2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--titre);
  transition: width .25s;
}

.nav-link:hover {
  color: var(--titre);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

.nav-cta {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.nav-cta:hover {
  background: var(--titre-hover);
  transform: translateY(-1px);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(44, 63, 132, .15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(44, 63, 132, .08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 60%, rgba(30, 80, 160, .12) 0%, transparent 60%);
}

.hero-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(44, 63, 132, .08);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero-line:nth-child(2) {
  width: 800px;
  height: 800px;
  animation-delay: 1s;
}

.hero-line:nth-child(3) {
  width: 1000px;
  height: 1000px;
  animation-delay: 2s;
}

@keyframes pulse-ring {

  0%,
  100% {
    opacity: .3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: .06;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* HERO LAYOUT : texte gauche + simulateur droite */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Colonne gauche */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--titre);
  border: 1px solid rgba(44, 63, 132, .3);
  padding: 7px 18px;
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--titre);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  animation: fadeUp .8s .15s ease both;
  color: var(--blanc);
}

.hero-title em {
  font-style: italic;
  color: var(--titre);
}

.hero-sub {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--gris);
  margin-bottom: 36px;
  animation: fadeUp .8s .3s ease both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  animation: fadeUp .8s .45s ease both;
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}

.hero-cta:hover::after {
  transform: translateX(100%);
}

.hero-cta:hover {
  background: var(--titre-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(44, 63, 132, .4);
}

.hero-arrow {
  transition: transform .3s;
}

.hero-cta:hover .hero-arrow {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  animation: fadeUp .8s .6s ease both;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--titre);
  display: block;
}

.stat-label {
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--gris);
  text-transform: uppercase;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SIMULATEUR WIDGET ─── */
.sim-widget {
  background: var(--noir-2);
  border: 1px solid rgba(44, 63, 132, .25);
  position: relative;
  animation: fadeUp .8s .2s ease both;
  box-shadow: var(--shadow-md);
}

.sim-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--titre), transparent);
}

.sit-btn {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .1);
  cursor: pointer;
  padding: 9px 6px;
  transition: all .2s;
}

.sit-btn:hover {
  border-color: rgba(44, 63, 132, .3);
  color: var(--blanc);
}

.sit-btn.active {
  background: rgba(44, 63, 132, .1);
  border-color: var(--titre);
  color: var(--titre);
}

.sim-head {
  padding: 16px 22px 13px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-head-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--titre);
}

.sim-head-badge {
  font-size: .6rem;
  letter-spacing: .08em;
  color: var(--gris);
  background: rgba(0, 0, 0, .04);
  padding: 3px 8px;
}

.sim-body {
  padding: 18px 22px 22px;
}

.sim-lbl {
  font-size: .63rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 7px;
  display: block;
}

.sim-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.sim-input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  color: var(--blanc);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  padding: 11px 42px 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.sim-input::-webkit-outer-spin-button,
.sim-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.sim-input::placeholder {
  color: rgba(0, 0, 0, .60);
  font-style: italic;
}

.sim-input:focus {
  border-color: rgba(44, 63, 132, .6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04), 0 0 0 3px rgba(44, 63, 132, .1);
}

.sim-currency {
  position: absolute;
  right: 13px;
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  color: var(--titre);
  pointer-events: none;
}

.sim-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.parts-wrap {}

.parts-controls {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  height: 46px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.parts-btn {
  width: 34px;
  height: 100%;
  background: none;
  border: none;
  color: var(--titre);
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.parts-btn:hover {
  background: rgba(44, 63, 132, .1);
}

.parts-val {
  flex: 1;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--blanc);
  pointer-events: none;
}

.calc-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sim-btn {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  border: none;
  cursor: pointer;
  height: 46px;
  width: 100%;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.sim-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}

.sim-btn:hover::after {
  transform: translateX(100%);
}

.sim-btn:hover {
  background: var(--titre-hover);
}

/* Résultats */
.sim-results {
  display: none;
}

.sim-results.show {
  display: block;
}

.sim-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 63, 132, .15), transparent);
  margin: 14px 0;
}

.sim-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, .05);
  margin-bottom: 12px;
}

.sim-kpi {
  background: rgba(237, 243, 251, .92);
  padding: 10px 8px;
  text-align: center;
}

.sim-kpi-lbl {
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  display: block;
  margin-bottom: 4px;
}

.sim-kpi-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
}

.sim-kpi-val.red {
  color: #ff6b6b;
}

.sim-kpi-val.or {
  color: var(--titre);
}

.sim-kpi-val.gr {
  color: var(--success);
}

.sim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .7rem;
  margin-bottom: 12px;
}

.sim-table th {
  font-size: .56rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  padding: 5px 7px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-weight: 400;
}

.sim-table td {
  padding: 6px 7px;
  border-bottom: 1px solid rgba(0, 0, 0, .03);
  color: rgba(12, 21, 37, .4);
}

.sim-table tr.tr-on td {
  color: var(--blanc);
  background: rgba(44, 63, 132, .04);
}

.sim-table tr.tr-on td:first-child {
  border-left: 2px solid var(--titre);
}

.td-or {
  color: var(--titre);
}

.td-gr {
  color: var(--success);
}

.sim-cta-box {
  background: linear-gradient(135deg, rgba(44, 63, 132, .08), rgba(44, 63, 132, .03));
  border: 1px solid rgba(44, 63, 132, .2);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sim-cta-txt {
  font-size: .72rem;
  color: var(--gris);
  line-height: 1.4;
}

.sim-cta-txt strong {
  color: var(--blanc);
  display: block;
  font-size: .77rem;
  margin-bottom: 2px;
  font-weight: 500;
}

.sim-cta-go {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  border: none;
  cursor: pointer;
  padding: 9px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s;
}

.sim-cta-go:hover {
  background: var(--titre-hover);
}

/* ─── RESTE DU SITE ─── */
.section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--titre);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 60px;
  max-width: 520px;
  color: var(--titre);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .06);
}

.card {
  background: var(--noir-2);
  padding: 40px 36px;
  transition: background .3s, box-shadow .3s;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  background: #dce9f7;
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(44, 63, 132, .3);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
  transition: all .3s;
}

.card:hover .card-icon {
  border-color: var(--titre);
  background: rgba(44, 63, 132, .08);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--titre);
}

.card-text {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--gris);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(44, 63, 132, .2), transparent);
  margin: 0 60px;
}

.quiz-section {
  padding: 0;
  background: linear-gradient(180deg, var(--noir) 0%, var(--noir-2) 50%, var(--noir) 100%);
  position: relative;
  overflow: hidden;
}

.quiz-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(44, 63, 132, .06) 0%, transparent 70%);
}

.quiz-wrapper {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quiz-header {
  text-align: center;
  margin-bottom: 56px;
}

.progress-bar {
  height: 2px;
  background: rgba(0, 0, 0, .08);
  margin-bottom: 48px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--titre), var(--titre-hover));
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
  width: 0%;
}

.progress-text {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 12px;
}

.quiz-step {
  display: none;
  animation: fadeUp .4s ease both;
}

.quiz-step.active {
  display: block;
}

.step-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--titre);
}

.step-sub {
  font-size: .85rem;
  color: var(--gris);
  margin-bottom: 36px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.options-grid.single-col {
  grid-template-columns: 1fr;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.option-btn:hover {
  background: rgba(44, 63, 132, .07);
  border-color: rgba(44, 63, 132, .4);
  transform: translateY(-1px);
}

.option-btn.selected {
  background: rgba(44, 63, 132, .1);
  border-color: var(--titre);
  color: var(--titre);
}

.option-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  transition: all .2s;
}

.option-btn.selected .option-check {
  background: var(--titre);
  border-color: var(--titre);
  color: var(--blanc);
}

.multi-hint {
  font-size: .72rem;
  color: var(--gris);
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.btn-prev {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-prev:hover {
  color: var(--blanc);
}

.btn-prev:disabled {
  opacity: 0;
  pointer-events: none;
}

.btn-next {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  border: none;
  cursor: pointer;
  padding: 14px 36px;
  transition: all .25s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-next:hover {
  background: var(--titre-hover);
  transform: translateY(-1px);
}

.btn-next:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris);
}

.form-input {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.form-input::placeholder {
  color: rgba(0, 0, 0, .25);
}

.form-input:focus {
  border-color: rgba(44, 63, 132, .6);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04), 0 0 0 3px rgba(44, 63, 132, .1);
}

.rgpd-text {
  font-size: .73rem;
  line-height: 1.6;
  color: var(--gris);
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .02);
  margin-bottom: 24px;
}

.btn-submit {
  width: 100%;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--titre);
  border: none;
  cursor: pointer;
  padding: 18px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}

.btn-submit:hover::after {
  transform: translateX(100%);
}

.btn-submit:hover {
  background: var(--titre-hover);
}

.confirmation {
  display: none;
  text-align: center;
  padding: 60px 40px;
  animation: fadeUp .5s ease both;
}

.confirmation.show {
  display: block;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 32px;
  color: var(--success);
  animation: scaleIn .5s .2s ease both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--titre);
}

.confirm-text {
  color: var(--gris);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto 40px;
}

.confirm-recap {
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(44, 63, 132, .15);
  padding: 28px 32px;
  text-align: left;
  margin-bottom: 32px;
}

.recap-title {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--titre);
  margin-bottom: 20px;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  font-size: .85rem;
  gap: 20px;
}

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

.recap-key {
  color: var(--gris);
  min-width: 160px;
}

.recap-val {
  color: var(--blanc);
  text-align: right;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  margin: 0 auto;
}

.score-badge.high {
  background: rgba(62, 207, 142, .1);
  border: 1px solid rgba(62, 207, 142, .3);
  color: var(--success);
}

.score-badge.med {
  background: rgba(255, 180, 0, .1);
  border: 1px solid rgba(255, 180, 0, .3);
  color: #ffb400;
}

.score-badge.low {
  background: rgba(255, 80, 80, .1);
  border: 1px solid rgba(255, 80, 80, .3);
  color: #ff5050;
}

.score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.score-text {
  font-size: .8rem;
  letter-spacing: .08em;
}

.lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0, 0, 0, .04);
}

.lb-card {
  background: var(--noir-2);
  padding: 48px 36px;
  text-align: center;
  transition: background .3s, box-shadow .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lb-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--titre), transparent);
  transform: scaleX(0);
  transition: transform .4s;
}

.lb-card:hover::before {
  transform: scaleX(1);
}

.lb-card:hover {
  background: #dce9f7;
  box-shadow: var(--shadow-md);
}

.lb-icon {
  font-size: 2rem;
  margin-bottom: 24px;
  display: block;
  filter: grayscale(1) brightness(1.5);
  transition: filter .3s;
}

.lb-card:hover .lb-icon {
  filter: none;
}

.lb-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--titre);
}

.lb-text {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--gris);
  margin-bottom: 24px;
}

.lb-link {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--titre);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lb-link:hover {
  color: var(--titre-hover);
}

footer {
  padding: 60px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blanc);
}

.footer-logo span {
  color: var(--titre);
}

.footer-text {
  font-size: .72rem;
  color: var(--gris);
  line-height: 1.8;
  max-width: 480px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: .72rem;
  color: var(--gris);
  text-decoration: none;
  letter-spacing: .08em;
}

.footer-links a:hover {
  color: var(--titre);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto 28px;
  }

  .hero-sub {
    margin: 0 auto 36px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  .section {
    padding: 60px 24px;
  }

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

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

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

  footer {
    padding: 40px 24px;
    flex-direction: column;
  }
}

/* Guide section responsive */
@media (max-width: 768px) {
  .guide-split-grid {
    grid-template-columns: 1fr !important;
  }
}

.footer-links {
  flex-wrap: wrap;
  gap: 16px;
}

.sim-row2 {
  grid-template-columns: 1fr;
}

/* ─── RGPD checkbox ─── */
.rgpd-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, .07);
  background: rgba(0, 0, 0, .02);
  transition: border-color .2s;
}

.rgpd-check-wrap:hover {
  border-color: rgba(44, 63, 132, .3);
}

.rgpd-check-wrap input {
  display: none;
}

.rgpd-check-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  border: 1px solid rgba(0, 0, 0, .2);
  background: rgba(0, 0, 0, .04);
  display: grid;
  place-items: center;
  transition: all .2s;
}

.rgpd-check-wrap input:checked~.rgpd-check-box {
  background: var(--titre);
  border-color: var(--titre);
}

.rgpd-check-wrap input:checked~.rgpd-check-box::after {
  content: '✓';
  color: var(--blanc);
  font-size: .75rem;
  font-weight: 700;
}

.rgpd-check-lbl {
  font-size: .75rem;
  color: var(--gris);
  line-height: 1.5;
}

.rgpd-link {
  color: var(--titre);
  text-decoration: underline;
}

.rgpd-check-wrap.error {
  border-color: rgba(255, 80, 80, .5);
}


/* ─── HERO COMPACT ─── */
.hero--compact {
  min-height: auto;
  padding: 120px 24px 60px;
}

.hero-inner--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}


/* ─── HERO SPLIT ─── */
.hero-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-top: 72px;
}

.split-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.split-left {
  padding: 80px 56px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(44, 63, 132, .12);
}

.split-right {
  padding: 80px 80px 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(220, 232, 248, .55);
}

@media (max-width: 1024px) {
  .split-inner {
    grid-template-columns: 1fr;
  }

  .split-left {
    padding: 100px 32px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(44, 63, 132, .12);
  }

  .split-right {
    padding: 40px 32px 60px;
  }
}

@media (max-width: 768px) {
  .split-left {
    padding: 90px 20px 32px;
  }

  .split-right {
    padding: 32px 20px 48px;
  }
}


/* ─── SELECT DROPDOWN ─── */
.select-wrap {
  position: relative;
}

.form-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  padding: 14px 40px 14px 16px;
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.form-select:focus {
  border-color: rgba(44, 63, 132, .5);
}

.form-select option {
  background: #EDF3FB;
  color: var(--blanc);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--titre);
  pointer-events: none;
  font-size: .9rem;
}


/* ─── TMI BADGES ─── */
.tmi-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

.tmi-0 {
  background: rgba(62, 207, 142, .12);
  color: #3ecf8e;
  border: 1px solid rgba(62, 207, 142, .3);
}

.tmi-11 {
  background: rgba(44, 63, 132, .1);
  color: var(--titre);
  border: 1px solid rgba(44, 63, 132, .3);
}

.tmi-30 {
  background: rgba(255, 180, 0, .1);
  color: #ffb400;
  border: 1px solid rgba(255, 180, 0, .3);
}

.tmi-41 {
  background: rgba(255, 120, 50, .1);
  color: #ff7832;
  border: 1px solid rgba(255, 120, 50, .3);
}

.tmi-45 {
  background: rgba(255, 80, 80, .1);
  color: #ff5050;
  border: 1px solid rgba(255, 80, 80, .3);
}


/* ─── QUESTION FAMILLE 2 COLONNES ─── */
.fam-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 24px;
  margin-bottom: 28px;
  align-items: start;
}

.fam-sep-v {
  background: rgba(44, 63, 132, .2);
  align-self: stretch;
}

.fam-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fam-col-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--titre);
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(44, 63, 132, .15);
}

.fam-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
  font-size: .88rem;
  color: var(--gris);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.fam-item:hover {
  border-color: rgba(44, 63, 132, .35);
  background: rgba(44, 63, 132, .05);
  color: var(--blanc);
}

.fam-item.fam-selected {
  border-color: rgba(44, 63, 132, .55);
  background: rgba(44, 63, 132, .1);
  color: var(--blanc);
}

.fam-dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, .25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}

.fam-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid rgba(0, 0, 0, .25);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}

.fam-item.fam-selected .fam-dot {
  background: var(--titre);
  border-color: var(--titre);
  box-shadow: 0 0 0 3px rgba(44, 63, 132, .15);
}

.fam-item.fam-selected .fam-box {
  background: var(--titre);
  border-color: var(--titre);
  color: #0f0f17;
}

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

  .fam-sep-v {
    display: none;
  }
}

/* ─── QUIZ CARD ─── */
.quiz-step.active .step-question {
  border-left: 3px solid var(--titre);
  padding-left: 16px;
  margin-left: -19px;
}

@media (max-width: 768px) {
  .quiz-step.active .step-question {
    margin-left: 0;
    padding-left: 12px;
  }
}


/* ─── MODALE GUIDE ─── */
.guide-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guide-modal-overlay.show {
  display: flex;
}

.guide-modal-box {
  background: var(--noir-2);
  border: 1px solid rgba(44, 63, 132, .25);
  max-width: 460px;
  width: 100%;
  padding: 44px 48px;
  position: relative;
  animation: fadeUp .3s ease both;
  box-shadow: var(--shadow-md);
}

.guide-modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.guide-modal-box p {
  font-size: .85rem;
  color: var(--gris);
  margin-bottom: 28px;
  line-height: 1.7;
}

.guide-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gris);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color .2s;
}

.guide-modal-close:hover {
  color: var(--blanc);
}

.guide-field {
  margin-bottom: 16px;
}

.guide-field label {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gris);
  display: block;
  margin-bottom: 6px;
}

.guide-field input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  color: var(--blanc);
  font-size: .95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.guide-field input:focus {
  border-color: rgba(44, 63, 132, .4);
}

.guide-submit {
  width: 100%;
  background: var(--titre);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity .2s;
}

.guide-submit:hover {
  opacity: .88;
}

.guide-success {
  text-align: center;
  padding: 12px 0;
}

.guide-success .guide-check {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 16px;
}

.guide-success p {
  font-size: .9rem;
  color: var(--gris);
  margin: 0;
}

.guide-rgpd {
  font-size: .65rem;
  color: rgba(0, 0, 0, .25);
  margin-top: 14px;
  line-height: 1.5;
}

/* ─── MODALE MENTIONS LÉGALES ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-overlay.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-box {
  background: var(--noir-2);
  border: 1px solid rgba(44, 63, 132, .2);
  max-width: 760px;
  width: 100%;
  padding: 48px 52px;
  position: relative;
  animation: fadeUp .3s ease both;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gris);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}

.modal-close:hover {
  color: var(--blanc);
}

.modal-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--titre);
}

.modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--titre);
  margin: 28px 0 10px;
}

.modal-box p {
  font-size: .88rem;
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 10px;
}

.modal-box ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.modal-box ul li {
  font-size: .88rem;
  color: var(--gris);
  line-height: 1.8;
}

.modal-sep {
  height: 1px;
  background: rgba(0, 0, 0, .07);
  margin: 24px 0;
}

.modal-date {
  font-size: .72rem;
  color: rgba(0, 0, 0, .25);
  margin-top: 32px;
}

@media (max-width: 768px) {
  .modal-box {
    padding: 32px 24px;
  }
}

/* ─── MODALE VÉRIFICATION SMS ─── */
.sms-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .3s ease;
}

.sms-modal-overlay.show {
  display: flex;
}

.sms-modal-box {
  background: linear-gradient(160deg, rgba(237, 243, 251, .98) 0%, rgba(220, 232, 248, .98) 100%);
  border: 1px solid rgba(44, 63, 132, .3);
  max-width: 480px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  animation: slideUp .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2), 0 0 1px rgba(44, 63, 132, .5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sms-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--gris);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all .2s;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.sms-modal-close:hover {
  color: var(--blanc);
  transform: rotate(90deg);
}

.sms-modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(44, 63, 132, .3));
}

.sms-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  color: var(--titre);
}

.sms-modal-subtitle {
  text-align: center;
  color: var(--gris);
  font-size: .9rem;
  margin-bottom: 8px;
}

.sms-modal-phone {
  text-align: center;
  color: var(--titre);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.sms-code-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.sms-code-input {
  width: 64px;
  height: 72px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .12);
  color: var(--blanc);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  outline: none;
  transition: all .2s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .04);
}

.sms-code-input:focus {
  border-color: var(--titre);
  background: rgba(44, 63, 132, .08);
  box-shadow: 0 0 0 3px rgba(44, 63, 132, .15);
}

.sms-code-input.error {
  border-color: #ff6b6b;
  animation: shake .4s;
}

.sms-code-input.success {
  border-color: var(--success);
  background: rgba(62, 207, 142, .08);
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.sms-timer {
  text-align: center;
  font-size: .8rem;
  color: var(--gris);
  margin-bottom: 24px;
}

.sms-status {
  text-align: center;
  font-size: .85rem;
  margin-bottom: 20px;
  min-height: 20px;
  font-weight: 500;
}

.sms-verify-btn {
  width: 100%;
  background: var(--titre);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.sms-verify-btn:hover {
  background: var(--titre-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(44, 63, 132, .3);
}

.sms-verify-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.sms-resend {
  text-align: center;
  margin-top: 20px;
  font-size: .8rem;
  color: var(--gris);
}

.sms-resend-link {
  color: var(--titre);
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}

.sms-resend-link:hover {
  color: var(--titre-hover);
}

@media (max-width: 540px) {
  .sms-modal-box {
    padding: 36px 24px;
  }

  .sms-code-input {
    width: 56px;
    height: 64px;
    font-size: 1.6rem;
  }

  .sms-code-inputs {
    gap: 8px;
  }
}