/* Formulaires du site (avis de valeur, recherche, recrutement) : mise en forme commune, chargée par les 3 pages.
   Les réglages propres à une page restent dans son <style> (src/pages/…). Généré le 24/10 depuis les 3 copies identiques. */

.page-hero__title em {
            display: block;
            font-style: italic;
            font-weight: 300;
            color: var(--bleu-texte); /* charte claire (Honoré 26/11) : en-tête blanc */
        }

.hf-form {
          /* Couleurs : charte.css */
          --gold-20: color-mix(in srgb, var(--gold) 20%, transparent);
          --font-heading: var(--heading);
          --font-body:    var(--body);
          --sidebar-width: 260px;
          --container-max: 1360px;
          --radius:     3px;
          --radius-md:  3px;
          --field-h:    44px;
          --transition: 0.3s ease;
          font-family: var(--font-body);
          font-weight: 400;
          background-color: transparent !important;
          color: var(--navy);
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
          overflow-x: hidden;
          max-width: 100%;
        }

.form-container {
          display: flex;
          max-width: var(--container-max);
          margin: 0 auto;
        }

.mobile-stepper {
          display: block;
          position: relative;
          background: var(--white);
          padding: 24px 24px 18px;
          border-bottom: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
        }

.mobile-dots {
          display: flex;
          align-items: center;
          gap: 0;
          margin-bottom: 14px;
          justify-content: center;
        }

.mobile-dot {
          width: 44px;
          height: 44px;
          border-radius: 50%;
          background: transparent;
          border: 1.5px solid var(--neutral-light);
          transition: all var(--transition);
          flex-shrink: 0;
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          font-family: var(--font-body);
          font-size: 13px;
          font-weight: 600;
          letter-spacing: 0.02em;
          color: var(--text-muted);
        }

.mobile-dot.active {
          background: var(--gold);
          border-color: var(--gold);
          color: var(--navy);
        }

.mobile-dot.completed {
          background: transparent;
          border-color: var(--gold);
          color: var(--gold-text);
        }

.mdot-check { display: none; font-size: 13px; }

.mdot-num   { display: block; font-family: var(--heading); font-style: italic; font-weight: 300; font-size: 17px; letter-spacing: 0; }

.mobile-dot.completed .mdot-check { display: block; }

.mobile-dot.completed .mdot-num   { display: none; }

.mobile-dot-line {
          flex: 1;
          height: 1px;
          background: color-mix(in srgb, var(--navy) 10%, transparent);
          max-width: 56px;
        }

.mobile-step-info {
          display: flex;
          align-items: center;
          flex-direction: column;
          gap: 4px;
        }

.mobile-title {
          font-family: var(--font-heading);
          font-size: 28px;
          font-weight: 300;
          color: var(--navy);
          letter-spacing: 0.01em;
          line-height: 1.1;
        }

.mdot-circle { display: contents; }

.mdot-label  { display: none; }

.main-content {
          flex: 1;
          display: flex;
          flex-direction: column;
          padding: 28px 40px 0 40px;
          position: relative;
        }

.progress-track {
          position: absolute;
          top: 0; left: 0; right: 0;
          height: 2px;
          background: color-mix(in srgb, var(--gold) 15%, transparent);
        }

.progress-fill {
          height: 100%;
          background: var(--gold);
          transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

.step-header {
          margin-bottom: 28px;
          padding-bottom: 0;
        }

.step-eyebrow {
          display: block;
          font-family: var(--font-body);
          font-size: 12px;
          font-weight: 600;
          letter-spacing: 0.22em;
          text-transform: uppercase;
          color: var(--navy);
          margin-bottom: 10px;
        }

.step-em {
          font-style: italic;
          color: var(--gold-text);
          font-weight: 300;
        }

.step-header h2 {
          font-family: var(--font-heading);
          font-size: 46px;
          font-weight: 300;
          line-height: 1.1;
          color: var(--navy);
          letter-spacing: 0.01em;
          margin-bottom: 10px;
        }

.step-header p {
          font-family: var(--font-body);
          font-size: 14px;
          font-weight: 400;
          color: var(--text-muted);
          letter-spacing: 0.03em;
          line-height: 1.6;
        }

#multiStepForm {
          display: flex;
          flex-direction: column;
          flex: 0 0 auto;
          min-height: 0;
        }

.form-step {
          display: none;
          flex-direction: column;
          flex: 0 0 auto;
          min-height: 0;
          overflow-y: auto;
          animation: stepIn 0.35s ease both;
        }

.form-step.active { display: flex; }

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

.fields-grid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          column-gap: 32px;
          row-gap: 12px;
          align-content: start;
          flex: 1;
          padding-bottom: 20px;
        }

.field-full  { grid-column: 1 / -1; }

.fields-row-2col {
          display: grid;
          grid-template-columns: 1fr 1fr;
          column-gap: 32px;
          align-items: start;
        }

.fields-stack {
          display: flex;
          flex-direction: column;
          gap: 10px;
          flex: 0 0 auto;
          padding-bottom: 20px;
        }

.form-section {
          background: var(--white);
          border: 1px solid color-mix(in srgb, var(--navy) 7%, transparent);
          border-radius: 4px;
          padding: 16px 24px;
        }

.form-section .fields-grid     { padding-bottom: 0; row-gap: 18px; }

.form-section .fields-row-2col { row-gap: 18px; }

.fields-stack--compact { gap: 6px; }

.fields-stack--compact .form-section { padding: 10px 20px; }

.fields-stack--compact .form-section .fields-grid { row-gap: 12px; }

.fields-stack--compact textarea { min-height: 100px; }

.field-group {
          display: flex;
          flex-direction: column;
          gap: 6px;
        }

.field-group > label {
          font-family: var(--font-body);
          font-size: 14px;
          font-weight: 600;
          letter-spacing: 0.01em;
          text-transform: none;
          color: var(--navy);
          cursor: default !important;
        }

/* Groupe de choix : titre (et aide) centrés au-dessus des boutons, eux aussi centrés (Honoré 27/10). */
.field-group:has(> .choices-group) > label,
        .field-group:has(> .choices-group) > .field-hint { text-align: center; }

.field-required::after {
          content: ' *';
          color: var(--gold-text);
          font-weight: 700;
        }

/* « Les informations suivies d'un * sont obligatoires » en tête de formulaire */
.form-legende {
          font-size: 13px;
          color: var(--text-muted);
          margin-bottom: 14px;
        }

.form-legende b { color: var(--gold-text); font-weight: 700; }

.hf-form input::placeholder,
        .hf-form textarea::placeholder {
          color: var(--text-muted);
          font-weight: 300;
        }

.hf-form input:focus,
        .hf-form select:focus,
        .hf-form textarea:focus {
          border-color: var(--gold);
          box-shadow: 0 0 0 3px var(--gold-20);
        }

.select-wrapper { position: relative; }

.select-wrapper::after {
          content: '';
          position: absolute;
          right: 18px;
          top: 50%;
          transform: translateY(-50%);
          width: 8px;
          height: 5px;
          background: var(--gold);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
          pointer-events: none;
        }

.hf-form select:has(option[value=""]:checked) {
          color: var(--text-muted);
          font-weight: 300;
        }

/* Boutons de choix (Honoré 27/10) : rectangulaires, centrés ; choisi = fond navy, texte blanc, contour or. */
.choices-group {
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          gap: 10px;
        }

.choice-item { position: relative; }

.choice-item input[type="radio"],
        .choice-item input[type="checkbox"] {
          position: absolute;
          opacity: 0;
          width: 0;
          height: 0;
        }

.choice-item label {
          display: inline-flex;
          align-items: center;
          height: var(--field-h);
          padding: 0 22px;
          background: var(--white);
          border: 1px solid var(--champ-contour);
          border-radius: var(--radius);
          font-size: 14px;
          font-weight: 400;
          letter-spacing: 0.01em;
          text-transform: none;
          color: var(--navy);
          cursor: pointer;
          transition: all var(--transition);
        }

.choice-item input:checked + label,
        .choice-item input + label.en-plus {
          border-color: var(--navy);
          background: var(--navy);
          color: var(--white);
        }

.choice-item label:hover {
          border-color: var(--gold);
          background: color-mix(in srgb, var(--gold) 5%, transparent);
        }

.choice-item input:focus-visible + label {
          outline: 2px solid var(--gold);
          outline-offset: 2px;
        }

.choices-compact             { flex-wrap: nowrap; flex: 1; align-items: stretch; }

.choices-compact .choice-item { flex: 1; display: flex; }

.choices-compact .choice-item label {
          width: 100%;
          height: var(--field-h);
          justify-content: center;
          padding: 8px;
          font-size: 14px;
        }

.field-hint {
          font-size: 13px;
          color: var(--text-muted);
          font-weight: 400;
          letter-spacing: 0.02em;
          margin-top: 2px;
        }

.field-comment textarea {
          background: var(--white);
          border-color: var(--champ-contour);
        }

.section-divider {
          grid-column: 1 / -1;
          display: flex;
          align-items: center;
          gap: 16px;
          margin: 16px 0 8px;
        }

.section-divider span {
          font-size: 12px;
          font-weight: 600;
          letter-spacing: 0.22em;
          text-transform: uppercase;
          color: var(--navy);
          white-space: nowrap;
        }

.section-divider::after {
          content: '';
          flex: 1;
          height: 1px;
          background: color-mix(in srgb, var(--gold) 25%, transparent);
        }

/* Bloc facultatif replié (Avis de valeur, Honoré 27/10) : le titre est un bouton, flèche or à droite, le bloc s'ouvre en douceur. */
.bloc-facultatif > summary {
          list-style: none;
          cursor: pointer;
          min-height: 44px;
          margin: 8px 0 4px;
        }

.bloc-facultatif > summary::-webkit-details-marker { display: none; }

.bloc-facultatif > summary span { white-space: normal; }

.bloc-facultatif > summary::after { order: 1; }

.bloc-facultatif__fleche {
          order: 2;
          flex: none;
          width: 9px;
          height: 9px;
          margin: 0 4px 4px 0;
          border-right: 1.5px solid var(--gold);
          border-bottom: 1.5px solid var(--gold);
          transform: rotate(45deg);
          transition: transform var(--transition);
        }

.bloc-facultatif[open] .bloc-facultatif__fleche { transform: rotate(-135deg); margin-bottom: -4px; }

.bloc-facultatif > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius); }

.bloc-facultatif[open] > .form-section { animation: stepIn 0.3s ease both; }

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

.recap-key {
          font-size: 13px;
          color: var(--text-muted);
          letter-spacing: 0.05em;
          flex-shrink: 0;
        }

.hf-form .confirmation {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          min-height: 60vh;
          text-align: center;
          padding: 60px 40px;
          animation: stepIn 0.5s ease both;
        }

.hf-form .confirmation-icon {
          width: 64px;
          height: 64px;
          border-radius: 50%;
          background: var(--gold);
          display: flex;
          align-items: center;
          justify-content: center;
          color: var(--navy);
          margin-bottom: 32px;
        }

.hf-form .confirmation h2 {
          font-family: var(--font-heading);
          font-size: 42px;
          font-weight: 300;
          color: var(--navy);
          margin-bottom: 16px;
        }

.hf-form .confirmation p {
          font-size: 15px;
          font-weight: 400;
          color: var(--text-muted);
          line-height: 1.7;
          max-width: 420px;
        }

.form-nav {
          display: flex;
          flex-wrap: wrap-reverse;
          align-items: center;
          justify-content: center;
          gap: 10px 12px;
          margin-top: auto;
          padding: 20px 0 28px;
        }

.nav-left, .nav-right { display: flex; gap: 12px; max-width: 100%; }

.form-nav .btn { max-width: 100%; }

.hf-form .btn {
          display: inline-flex;
          align-items: center;
          gap: 10px;
          height: var(--field-h);
          padding: 0 30px;
          border: 1px solid transparent;
          border-radius: var(--radius);
          font-family: var(--font-body);
          font-size: 12px;
          font-weight: 600;
          letter-spacing: 0.12em;
          text-transform: uppercase;
          cursor: pointer;
          transition: all var(--transition);
          outline: none;
          box-shadow: none;
        }

.hf-form .btn:focus-visible {
          outline: 2px solid var(--gold);
          outline-offset: 2px;
        }

/* Boutons : seule la couleur change au survol */
.hf-form .btn-next,
        .hf-form .btn-submit {
          background: var(--navy);
          color: var(--white);
          border-color: var(--navy);
        }

.hf-form .btn-next:hover,
        .hf-form .btn-submit:hover {
          background: var(--blue-light);   /* bleu très clair à la place de l'or (Honoré 26/11) */
          color: var(--navy);
          border-color: var(--navy);
        }

.hf-form .btn-prev {
          background: var(--fond);
          color: var(--navy);
          border-color: var(--champ-contour);
        }

.hf-form .btn-prev:hover {
          border-color: var(--navy);
        }

.hf-form .btn svg {
          width: 14px;
          height: 14px;
          stroke-width: 2;
        }

.consent-group {
          background: var(--white);
          border: 1px solid color-mix(in srgb, var(--navy) 12%, transparent);
          border-radius: var(--radius);
          overflow: hidden;
        }

.consent-item {
          position: relative;
          width: 100%;
          display: flex;
          align-items: flex-start;
          padding: 11px 16px;
          gap: 12px;
          transition: background var(--transition);
        }

.consent-item + .consent-item { border-top: none; }

.consent-item input[type="checkbox"] {
          position: absolute;
          opacity: 0;
          width: 0;
          height: 0;
          margin: 0;
        }

.consent-item input:checked + label {
          background: var(--gold);
          border-color: var(--gold);
          background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%231B2738' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: center;
          background-size: 12px 9px;
        }

.consent-item:has(input:checked) { background: color-mix(in srgb, var(--gold) 4%, transparent); }

.consent-item > span {
          flex: 1;
          font-size: 12px;
          font-weight: 400;
          text-transform: none;
          letter-spacing: 0.01em;
          line-height: 1.6;
          color: var(--navy);
          cursor: default;
          pointer-events: none;
        }

.consent-item > span a {
          color: var(--navy);
          text-decoration: underline;
          pointer-events: auto;
          cursor: pointer;
          font-weight: 500;
        }

.field-invalid input,
        .field-invalid select,
        .field-invalid textarea {
          border-color: var(--error) !important;
          background: color-mix(in srgb, var(--error) 4%, transparent) !important;
        }

.field-invalid .choices-group {
          outline: 2px solid var(--error);
          outline-offset: 2px;
          border-radius: var(--radius);
        }

.field-error-msg {
          display: block;
          margin-top: 5px;
          font-size: 13px;
          color: var(--error);
          font-weight: 500;
          letter-spacing: 0.02em;
        }

/* Bandeau : informations à compléter (haut de l'étape) ou envoi raté (au-dessus des boutons) */
.form-alert {
          background: var(--error-bg);
          color: var(--error);
          border-left: 3px solid var(--error);
          border-radius: var(--radius);
          padding: 12px 16px;
          margin-bottom: 16px;
          font-size: 14px;
          font-weight: 500;
          line-height: 1.5;
        }

.form-alert a { color: var(--error); font-weight: 600; text-decoration: underline; white-space: nowrap; }

@media (min-width: 1024px) {
  .mobile-stepper {
            display: block;
            position: relative;
            background: var(--white);
            padding: 20px 56px 18px;
          }

  .mobile-dots      { max-width: 340px; margin-left: auto; margin-right: auto; }

  .mobile-dot-line  { max-width: 80px; }

  .mobile-title     { font-size: 38px; }

  .main-content  { padding: 28px 40px 0 40px; }

  .step-header   { margin-bottom: 20px; }

  .step-eyebrow  { font-size: 12px; letter-spacing: 0.22em; margin-bottom: 8px; }

  .step-header h2 { font-size: 48px; margin-bottom: 8px; }

  .hf-form select:focus,
          .hf-form textarea:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 10%, transparent);
          }

  .choice-item label:hover {
            border-color: color-mix(in srgb, var(--gold) 50%, transparent);
            background: color-mix(in srgb, var(--gold) 4%, transparent);
          }

  .hf-form .btn-next,
          .hf-form .btn-submit { padding: 0 48px; }

  .hf-form .btn-prev { padding: 0 36px; }

  .form-nav               { padding: 16px 0 12px; }

  .field-group            { gap: 8px; }

  .field-group > label    { font-size: 14px; }

  .fields-grid            { align-content: start; row-gap: 18px; padding-bottom: 20px; }

  .hf-form                { --block-gap: 30px; }

  .form-step              { overflow-y: visible; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .form-container { flex-direction: column; }

  .mobile-stepper  { display: block; position: relative; background: var(--white); padding: 20px 56px 18px; }

  .mobile-dots     { max-width: 340px; margin-left: auto; margin-right: auto; }

  .mobile-dot-line { max-width: 80px; }

  .mobile-title    { font-size: 34px; }

  .main-content  { height: auto; min-height: auto; padding: 32px 40px 52px; }

  .form-step     { overflow-y: visible; }

  #multiStepForm { min-height: 0; }

  .step-header   { margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid color-mix(in srgb, var(--navy) 6%, transparent); }

  .step-eyebrow  { font-size: 12px; letter-spacing: 0.22em; }

  .step-header h2 { font-size: 40px; margin-bottom: 10px; }

  .step-header p  { font-size: 14px; }

  .fields-grid     { grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 20px; }

  .fields-row-2col { column-gap: 40px; }

  .choice-item label {
            height: var(--field-h);
            font-size: 15px;
            padding: 0 26px;
            font-weight: 400;
          }

  .choices-compact .choice-item label {
            height: var(--field-h);
            font-size: 14px;
            padding: 0 20px;
          }

  .form-nav  { padding: 0 0 44px; margin-top: 0; }

  .hf-form .btn-next,
          .hf-form .btn-submit { padding: 0 56px; }

  .hf-form .btn-prev { padding: 0 40px; }
}

@media (max-width: 767px) {
  .form-container  { flex-direction: column; }

  .mobile-stepper  { display: block; position: relative; background: var(--fond); }

  .main-content  { padding: 32px 24px 0; min-height: auto; }

  .step-header   { margin-bottom: 36px; padding-bottom: 28px; }

  .step-header h2 { font-size: 30px; }

  .fields-grid     { grid-template-columns: 1fr; gap: 20px; }

  .fields-row-2col { grid-template-columns: 1fr; }

  .form-step:first-child .fields-stack { padding-bottom: 8px; }

  .hf-form .btn { padding: 13px 22px; font-size: 14px; } /* 12 px avant le lot 6 de l'audit 12/11 : rien sous 14 px sur téléphone */

  .form-legende,
  .field-hint,
  .section-divider span,
  .recap-key,
  .consent-item > span,
  .field-error-msg,
  .mobile-dot { font-size: 14px; }

  .choice-item label { min-height: 44px; }

  .choice-item label {
            min-height: 44px;
            font-size: 14px;
            padding: 0 14px;
            font-weight: 400;
            letter-spacing: 0.02em;
          }

  .choices-compact .choice-item label {
            font-size: 14px;
            min-height: 44px;
            padding: 0 8px;
          }

  .main-content  { height: auto; }

  .form-step     { overflow-y: visible; }

  #multiStepForm { min-height: 0; }

  .fields-grid  { row-gap: 16px; }

  .fields-stack { gap: 8px; }

  .form-section { padding: 12px 16px; }

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

  .form-nav {
            flex-direction: row;
            align-items: center;
            justify-content: center;
            margin-top: 0;
            padding-top: 20px;
            padding-bottom: 20px;
          }

  .hf-form .btn-next,
          .hf-form .btn-submit {
            letter-spacing: 0.14em;
            justify-content: center;
            padding: 0 20px;
          }

  .hf-form .btn-prev {
            justify-content: center;
            padding: 0 20px;
          }

  .step-eyebrow  { font-size: 14px; letter-spacing: 0.18em; }

  .step-header h2 { font-size: 32px; margin-bottom: 8px; }

  .hf-form .confirmation { padding: 48px 24px; min-height: 50vh; }

  .hf-form input::placeholder,
          .hf-form textarea::placeholder,
          .hf-form input::-webkit-input-placeholder,
          .hf-form textarea::-webkit-input-placeholder {
            letter-spacing: 0 !important;
            font-size: 16px !important;
          }
}

@media (max-width: 400px) {
  .main-content   { padding: 28px 18px 0; }

  .step-header h2 { font-size: 26px; }

  .mobile-stepper { padding: 16px 18px 14px; }

  /* Même taille de texte que les autres boutons du site sur petit téléphone (styles.css, Honoré 26/11) */
  .hf-form .btn { padding-inline: 16px; font-size: min(3.7vw, 14px); letter-spacing: 0.08em; }
}

