:root {
  --green-950: #062f26;
  --green-900: #0b3f32;
  --green-800: #174f40;
  --green-100: #e8f0ed;
  --gold-700: #9d6d38;
  --gold-500: #b48652;
  --ink: #18211f;
  --muted: #6f7472;
  --placeholder: #9b9e9d;
  --paper: #fff;
  --canvas: #faf7f3;
  --border: #e3ddd5;
  --border-strong: #d5cec5;
  --danger: #a0342c;
  --danger-bg: #fff4f2;
  --success: #246b53;
  --shadow: 0 20px 55px rgba(33, 27, 19, 0.09), 0 4px 12px rgba(33, 27, 19, 0.06);
  --radius-lg: 20px;
  --radius-md: 10px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.9) 0, rgba(255,255,255,0.42) 32%, transparent 62%),
    linear-gradient(180deg, #fcfaf7 0%, #f8f4ef 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.brand-header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 82px;
}

.brand-logo {
  display: block;
  width: min(260px, 68vw);
  height: auto;
}

.progress-nav {
  margin: 18px auto 30px;
  width: calc(100% - 96px);
}

.progress-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.progress-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #4f5351;
  text-align: center;
}

.progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 19px;
  left: calc(50% + 23px);
  width: calc(100% - 46px);
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.progress-item.is-complete:not(:last-child)::after {
  background: var(--green-900);
}

.progress-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: #5b5248;
  background: var(--canvas);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  transition: all var(--transition);
}

.progress-item.is-active .progress-number,
.progress-item.is-complete .progress-number {
  border-color: var(--green-900);
  color: #fff;
  background: var(--green-900);
  box-shadow: 0 5px 14px rgba(11, 63, 50, 0.2);
}

.progress-item.is-complete .progress-number {
  font-size: 0;
}

.progress-item.is-complete .progress-number::after {
  content: "✓";
  font-family: inherit;
  font-size: 17px;
}

.progress-label {
  font-size: 14px;
  line-height: 1.2;
}

.progress-item.is-active .progress-label {
  color: var(--green-900);
  font-weight: 650;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(217, 210, 201, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.form-card-inner {
  padding: 31px clamp(30px, 7vw, 105px) 28px;
}

.step-heading {
  margin: 0 auto 30px;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--gold-500);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.eyebrow strong {
  font-weight: 800;
}

.eyebrow-line {
  display: block;
  width: 46px;
  height: 2px;
  margin: 12px auto 15px;
  background: var(--gold-500);
}

.step-heading h1 {
  margin: 0;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.step-heading > p:last-child {
  margin: 11px 0 0;
  color: #626765;
  font-size: clamp(16px, 2vw, 19px);
}

.step-content {
  min-height: 392px;
  animation: reveal 260ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.form-group {
  min-width: 0;
}

.form-group.is-full {
  grid-column: 1 / -1;
}

.form-label,
.group-label {
  display: block;
  margin: 0 0 9px;
  color: #202725;
  font-size: 14px;
  font-weight: 650;
}

.label-help {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid #9a9e9c;
  border-radius: 50%;
  color: #7b807d;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  height: 21px;
  color: #7e8582;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg,
.choice-icon svg,
.trust-item svg,
.button svg,
.result-icon svg,
.summary-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.form-control {
  width: 100%;
  height: 55px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  padding: 0 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-wrap .form-control {
  padding-left: 52px;
}

.form-control::placeholder {
  color: var(--placeholder);
}

.form-control:hover {
  border-color: #beb6ac;
}

.form-control:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 4px rgba(23, 79, 64, 0.09);
}

.form-control[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-bg);
}

select.form-control {
  appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6562 50%),
    linear-gradient(135deg, #5f6562 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 24px,
    calc(100% - 16px) 24px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.choice-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 99px;
  padding: 13px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--green-900);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.choice-card:hover {
  border-color: #9cad9f;
  transform: translateY(-1px);
}

.choice-card:focus-visible {
  outline: 3px solid rgba(23, 79, 64, 0.2);
  outline-offset: 2px;
}

.choice-card.is-selected {
  border-color: var(--green-900);
  background: linear-gradient(180deg, #fbfdfc, #edf5f1);
  box-shadow: 0 0 0 2px rgba(11, 63, 50, 0.08);
}

.choice-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-900);
  font-size: 12px;
  font-weight: 800;
}

.choice-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 7px;
}

.choice-label {
  font-size: 14px;
  line-height: 1.25;
}

.choice-description {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.money-prefix,
.money-suffix {
  position: absolute;
  top: 50%;
  color: #747a77;
  transform: translateY(-50%);
  pointer-events: none;
}

.money-prefix {
  left: 17px;
  font-weight: 650;
}

.money-suffix {
  right: 16px;
  font-size: 13px;
}

.input-wrap.has-prefix .form-control {
  padding-left: 39px;
}

.input-wrap.has-suffix .form-control {
  padding-right: 68px;
}

.range-wrap {
  padding: 16px 18px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
}

.range-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  color: var(--green-900);
  font-weight: 700;
}

.range-control {
  width: 100%;
  accent-color: var(--green-900);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.inline-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 0;
  padding: 13px 15px;
  border: 1px solid #e6ddcf;
  border-radius: 9px;
  color: #655b4d;
  background: #fdf9f2;
  font-size: 13px;
  line-height: 1.5;
}

.inline-note svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--gold-700);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.form-message {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #e7c1bc;
  border-radius: 8px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 13px;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 10px 0;
  border-top: 1px solid var(--border);
  color: #74736f;
  font-size: 13px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: #686861;
}

.trust-dot {
  color: var(--gold-500);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 180px;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 650;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.button svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button-primary {
  border: 1px solid var(--green-950);
  color: #fff;
  background: linear-gradient(135deg, #0c4938, #062f26);
  box-shadow: 0 8px 18px rgba(6, 47, 38, 0.18);
}

.button-primary:hover {
  background: linear-gradient(135deg, #105541, #07392d);
  box-shadow: 0 10px 22px rgba(6, 47, 38, 0.24);
}

.button-secondary {
  border: 1px solid var(--border-strong);
  color: #777b79;
  background: #fff;
}

.button-secondary:not(:disabled):hover {
  border-color: #b9b1a8;
  color: var(--green-900);
  background: #fdfcfb;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.privacy-note {
  margin: 16px 0 0;
  color: #898a87;
  font-size: 12px;
  text-align: center;
}


/* Sections enrichies du profil */
.profile-section + .profile-section {
  margin-top: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.subsection-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 22px;
}

.subsection-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  border: 1px solid #cfddd7;
  border-radius: 50%;
  color: var(--green-900);
  background: #f2f8f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.subsection-heading h2 {
  margin: 0 0 4px;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.subsection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.choice-grid.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-grid.is-health .choice-card {
  align-content: start;
  justify-items: start;
  min-height: 154px;
  padding: 17px;
  text-align: left;
}

.choice-grid.is-health .choice-label {
  font-weight: 750;
}

.choice-grid.is-health .choice-description {
  line-height: 1.45;
}

.dependent-fields {
  padding: 18px;
  border: 1px solid #d7e3de;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fbf9, #fff);
}

.dependent-fields-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
  color: var(--green-900);
}

.dependent-fields-icon {
  width: 31px;
  height: 31px;
}

.dependent-fields-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dependent-fields-head strong,
.dependent-fields-head span {
  display: block;
}

.dependent-fields-head strong {
  font-size: 14px;
}

.dependent-fields-head div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.compact-grid {
  gap: 14px;
}

.privacy-health-note {
  margin-top: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green-900);
}

/* Résultat */
.result-panel {
  display: grid;
  gap: 19px;
}

.result-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #cfe0d9;
  border-radius: 13px;
  background: linear-gradient(135deg, #f3f9f6, #fbfdfc);
}

.result-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-900);
}

.result-icon svg {
  width: 31px;
  height: 31px;
}

.result-hero h2 {
  margin: 0 0 5px;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.result-hero p {
  margin: 0;
  color: #5f6864;
  line-height: 1.5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.summary-card {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.summary-icon {
  width: 25px;
  height: 25px;
  margin-bottom: 10px;
  color: var(--gold-700);
}

.summary-label {
  margin: 0 0 4px;
  color: #7a7d7a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  margin: 0;
  color: var(--green-900);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.result-disclaimer {
  margin: 0;
  color: #747975;
  font-size: 12px;
  line-height: 1.55;
}

.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 41px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--green-900);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.mini-button:hover {
  border-color: var(--green-800);
  background: var(--green-100);
}

.mini-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.success-banner {
  padding: 18px;
  border: 1px solid #c7dfd5;
  border-radius: 10px;
  color: var(--green-900);
  background: #eff8f4;
  line-height: 1.55;
}

.success-banner strong {
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 850px) {
  .page-shell {
    width: min(100% - 22px, 760px);
    padding-top: 15px;
  }

  .brand-header {
    min-height: 70px;
  }

  .progress-nav {
    width: 100%;
    margin-top: 12px;
  }

  .progress-item:not(:last-child)::after {
    left: calc(50% + 18px);
    width: calc(100% - 36px);
  }

  .progress-number {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .progress-item:not(:last-child)::after {
    top: 16px;
  }

  .progress-label {
    font-size: 12px;
  }

  .form-card-inner {
    padding: 28px 24px 24px;
  }

  .choice-grid,
  .choice-grid.is-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    padding: 10px 10px 26px;
  }

  .brand-logo {
    width: 215px;
  }

  .progress-nav {
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 0 2px 3px;
  }

  .progress-list {
    min-width: 490px;
  }

  .form-card {
    border-radius: 14px;
  }

  .form-card-inner {
    padding: 24px 16px 20px;
  }

  .step-heading {
    margin-bottom: 24px;
  }

  .step-heading h1 {
    font-size: 34px;
  }

  .subsection-heading {
    gap: 10px;
  }

  .subsection-heading h2 {
    font-size: 21px;
  }

  .step-content {
    min-height: 0;
  }

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

  .form-group.is-full {
    grid-column: auto;
  }

  .choice-grid,
  .choice-grid.is-three,
  .choice-grid.is-two,
  .choice-grid.is-five,
  .choice-grid.is-health {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .choice-card {
    min-height: 96px;
  }

  .trust-strip {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 15px;
  }

  .trust-dot {
    display: none;
  }

  .form-actions {
    align-items: stretch;
  }

  .button {
    min-width: 0;
    flex: 1;
    padding: 0 14px;
    gap: 8px;
  }

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

  .result-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-icon {
    margin: 0 auto;
  }
}

@media (max-width: 390px) {
  .choice-grid,
  .choice-grid.is-three,
  .choice-grid.is-two,
  .choice-grid.is-five,
  .choice-grid.is-health {
    grid-template-columns: 1fr;
  }

  .button {
    font-size: 13px;
  }
}


/* Separate HTML pages and compact financial range controls */
.button[hidden] {
  display: none !important;
}

.finance-section + .finance-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option-grid.is-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-grid.is-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.option-grid.is-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-card {
  position: relative;
  min-height: 62px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 13px;
  color: var(--green-900);
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.option-card:hover {
  border-color: #9cad9f;
  transform: translateY(-1px);
}

.option-card:focus-visible {
  outline: 3px solid rgba(23, 79, 64, 0.2);
  outline-offset: 2px;
}

.option-card.is-selected {
  border-color: var(--green-900);
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  box-shadow: 0 7px 16px rgba(11, 63, 50, 0.16);
}

.option-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .option-grid.is-five,
  .option-grid.is-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .option-grid.is-three,
  .option-grid.is-four,
  .option-grid.is-five,
  .option-grid.is-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .option-grid.is-three,
  .option-grid.is-four,
  .option-grid.is-five,
  .option-grid.is-six {
    grid-template-columns: 1fr;
  }
}


/* Page finale — confirmation */
.final-card .form-card-inner {
  padding-top: 36px;
  padding-bottom: 38px;
}

.final-heading {
  margin-bottom: 23px;
}

.final-step-content {
  min-height: 0;
}

.completion-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.completion-check {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 8px solid #e8f2ee;
  border-radius: 50%;
  color: #fff;
  background: var(--green-900);
  box-shadow: 0 12px 28px rgba(11, 63, 50, 0.18);
}

.completion-check svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.completion-copy {
  max-width: 650px;
}

.completion-kicker {
  margin: 0 0 7px;
  color: var(--gold-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-copy h2 {
  margin: 0;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 45px);
  font-weight: 500;
}

.completion-copy > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.delivery-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  align-items: center;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid #c9ddd5;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff7f3, #fbfdfc);
  text-align: left;
}

.delivery-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: var(--green-900);
  background: #fff;
  box-shadow: 0 6px 16px rgba(11, 63, 50, 0.08);
}

.delivery-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.delivery-label {
  margin: 0 0 4px;
  color: var(--gold-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delivery-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(18px, 2.3vw, 23px);
  line-height: 1.35;
}

.delivery-card p:last-child {
  margin: 7px 0 0;
  color: #5f6864;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.completion-timeline {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr;
  align-items: start;
  width: 100%;
  padding: 22px 8px 4px;
}

.timeline-item {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #7a807d;
}

.timeline-dot {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
}

.timeline-dot svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.timeline-item.is-done,
.timeline-item.is-current {
  color: var(--green-900);
}

.timeline-item.is-done .timeline-dot {
  border-color: var(--green-900);
  color: #fff;
  background: var(--green-900);
}

.timeline-item.is-current .timeline-dot {
  border-color: #b9d0c6;
  background: #eef6f2;
  box-shadow: 0 0 0 6px rgba(11, 63, 50, 0.06);
}

.timeline-item strong,
.timeline-item span {
  display: block;
}

.timeline-item strong {
  color: var(--green-900);
  font-size: 14px;
}

.timeline-item div > span {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.timeline-line {
  height: 1px;
  margin-top: 21px;
  background: var(--border-strong);
}

.completion-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e7dfd3;
  border-radius: 10px;
  color: #685f53;
  background: #fdf9f2;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
}

.completion-note svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold-700);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.final-actions {
  justify-content: center;
  margin-top: 29px;
}

.final-home-button {
  text-decoration: none;
}

@media (max-width: 700px) {
  .completion-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0 0;
  }

  .timeline-item {
    grid-template-columns: 43px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .timeline-line {
    width: 1px;
    height: 22px;
    margin: -4px 0 -4px 21px;
  }
}

@media (max-width: 520px) {
  .delivery-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px 17px;
    text-align: center;
  }

  .completion-check {
    width: 78px;
    height: 78px;
  }
}


/* Multiple projects — Objectifs page */
.projects-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
  padding: 15px 17px;
  border: 1px solid #dbe4df;
  border-radius: 11px;
  background: #f8fbf9;
}

.projects-intro strong,
.projects-intro span {
  display: block;
}

.projects-intro strong {
  color: var(--green-900);
  font-size: 16px;
}

.projects-intro div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.projects-count {
  flex: 0 0 auto;
  min-width: 82px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-900);
  background: #e8f1ed;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.projects-stack {
  display: grid;
  gap: 20px;
}

.project-entry {
  padding: 20px;
  border: 1px solid #d8d8d1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26, 40, 33, 0.035);
}

.project-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 21px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.project-entry-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.project-entry-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: #fff;
  background: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.project-entry-title h2 {
  margin: 0;
  color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.project-entry-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.remove-project-button {
  min-height: 38px;
  border: 1px solid #e0b8b3;
  border-radius: 8px;
  padding: 0 12px;
  color: #9a352e;
  background: #fff7f5;
  font-size: 12px;
  font-weight: 750;
}

.remove-project-button:hover {
  border-color: #be6b62;
  background: #fff0ed;
}

.project-form-grid {
  gap: 18px;
}

.project-other-details {
  margin: -3px 0 2px;
  padding: 16px;
  border: 1px solid #d4e2dc;
  border-radius: 10px;
  background: #f7fbf9;
}

.project-other-details > .form-group {
  margin: 0;
}

.add-project-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border: 1px dashed #8ca99d;
  border-radius: 10px;
  color: var(--green-900);
  background: #f7fbf9;
  font-weight: 750;
}

.add-project-button:hover:not(:disabled) {
  border-color: var(--green-900);
  background: #edf6f2;
}

.add-project-button span {
  font-size: 22px;
  font-weight: 400;
}

.add-project-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.objectives-consent-grid {
  margin-top: 22px;
}

@media (max-width: 620px) {
  .projects-intro,
  .project-entry-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .projects-count {
    align-self: flex-start;
  }

  .remove-project-button {
    width: 100%;
  }

  .project-entry {
    padding: 16px 13px;
  }

  .project-entry-title h2 {
    font-size: 22px;
  }
}
