@font-face {
  font-family: "onacvg-icons";
  src: url("./onacvg-icons.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.tab-view-liste {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.titre_tableau {
  font-family: "Karma";
}

.tab-view-liste th,
.tab-view-liste button {
  font-family: "Karma";
}

.tab-view-liste td,
.statut,
.step-label {
  font-family: "Montserrat";
}

.onacvg-steps::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 70px;
  right: 50px;
  height: 4px;
  background: #d0d4e1;
  z-index: 0;
}

.onacvg-steps .step-number {
  width: 35px;
  height: 35px;
  border: 2px solid #d0d4e1;
  border-radius: 50%;
  background: #ffffff;
  color: rgb(19, 42, 103);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  font-family: "Montserrat";
}

.step h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-family: "Karma";
  font-weight: 400;
}

.step p,
.intro-message ul li {
  font-family: "Montserrat", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.step h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: "Karma";
  font-size: 21px;
  font-weight: 400;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-family: "Montserrat", "Arial", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.nav-buttons .next {
  margin-left: auto;
}

button.next,
button.submit {
  background: #0b3b82;
  color: #fff;
  font-family: "Montserrat";
  font-weight: 400;
  font-size: 12px;
}

button.next:hover,
button.submit:hover {
  background: #083060;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.prev.hidden,
button.next.hidden,
button.submit.hidden {
  display: none;
}

.nav-buttons button {
  padding: 15px 30px !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "";
  font-family: "Montserrat", "Arial", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

.onacvg-steps li.active .step-label {
  color: rgb(51, 51, 51);
  font-weight: 500;
  font-size: 15px;
}

.onacvg-steps li.active .step-number {
  background: #132a67;
  color: #ffffff;
  border: none;
  z-index: 1;
}

.onacvg-steps li.active::after,
.completed::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 65px;
  width: 100%;
  height: 4px;
  background: #132a67;
  z-index: 0;
  transition: width 0.4s ease;
}

.onacvg-steps li.completed .step-number {
  background: #132a67;
  color: #ffffff;
  border: none;
  z-index: 1;
}

.onacvg-steps li.completed .step-label {
  color: #132a67;
}

.onacvg-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 10px;
  list-style: none;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

/* ==========================================
   CONTENEUR WIZARD / FORMULAIRE MULTI-ÉTAPES
   ========================================== */
.onacvg-wizard {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.onacvg-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  cursor: pointer;
}

/* ==========================================
   CONTENU DES ÉTAPES
   ========================================== */
.step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* ==========================================
   GROUPES DE FORMULAIRES (RÉUTILISABLE)
   ========================================== */
.form-group {
  margin-bottom: 20px;
  margin-left: 10px;
}

.form-group abbr {
  color: #d32f2f;
  text-decoration: none;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0b3b82;
  box-shadow: 0 0 0 3px rgba(11, 59, 130, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input[type="file"] {
  padding: 8px;
  border: 1px dashed #ccc;
  border-radius: 4px;
  width: 100%;
  cursor: pointer;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}

.help-text,
small {
  display: block;
  font-size: 12px;
  color: #757575;
  margin-top: 5px;
  line-height: 1.4;
}

.help-text ul {
  margin: 5px 0 0 20px;
}

.help-details {
  margin-top: 6px;
}

.help-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: #0b3b82;
  font-weight: 500;
}

.help-details summary::marker {
  color: #0b3b82;
}

.help-details[open] summary {
  margin-bottom: 6px;
}

.help-details small {
  display: block;
  color: #666;
}

.fr-hint-text strong {
  font-weight: 500;
}

.legend-uppercase {
  font-size: 0.6875rem;
  font-family: "Montserrat", "Arial", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

.form-text {
  border: 1px solid #666;
  border-radius: 3px;
  background-color: #fff;
  box-shadow: none;
  padding: 5px 0;
  height: calc(1em + 42px);
  line-height: 1;
  text-overflow: ellipsis;
  max-height: 3.5rem !important;
}

/* ==========================================
   SECTIONS ET FIELDSETS (RÉUTILISABLE)
   ========================================== */
fieldset {
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 20px;
}

fieldset legend {
  font-weight: bold;
  color: #0b3b82;
  font-size: 16px;
  padding: 0 10px;
}

.intro-message,
.rgpd-section {
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.intro-message ul,
.rgpd-section ul {
  margin-left: 20px;
}

/* ==========================================
   DISPOSITION DES CHAMPS (ROWS - RÉUTILISABLE)
   ========================================== */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group.half {
  flex: 1;
}

.form-group.third {
  flex: 0 0 30%;
}

.form-group.two-thirds {
  flex: 0 0 calc(65% - 20px);
}

/* ==========================================
   GROUPES DE RADIO/CHECKBOX (RÉUTILISABLE)
   ========================================== */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

/* ==========================================
   SECTIONS CONDITIONNELLES
   ========================================== */
.hidden {
  display: none !important;
}

/* ==========================================
   MESSAGES D'ERREUR (ACCESSIBILITÉ RGAA)
   ========================================== */
.messages--error,
.messages--error p {
  color: #C41E3A !important;
  background-color: #FFF5F5 !important;
  border-left: 4px solid #C41E3A;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}

.messages--error a {
  color: #B71C1C !important;
  text-decoration: underline;
  font-weight: 600;
}

.messages--error a:hover,
.messages--error a:focus {
  color: #8B0000 !important;
  background-color: #FFE0E0 !important;
  outline: 2px solid #B71C1C;
  outline-offset: 2px;
}

.error-message {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #d32f2f;
}

/* ==========================================
   PAGE DE VALIDATION (RÉUTILISABLE)
   ========================================== */
.validation-summary {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.validation-summary h3 {
  color: #0b3b82;
  margin-top: 0;
}

.validation-item {
  margin-bottom: 15px;
  padding: 10px;
  background: #fff;
  border-left: 3px solid #0b3b82;
}

.validation-item strong {
  display: block;
  color: #333;
  margin-bottom: 5px;
}

/* ==========================================
   PAGE DE CONFIRMATION (RÉUTILISABLE)
   ========================================== */
.confirmation-page {
  text-align: center;
  padding: 40px 20px;
}

.confirmation-page .success-icon {
  font-size: 64px;
  color: #4caf50;
  margin-bottom: 20px;
}

.confirmation-page h2 {
  color: #4caf50;
  margin-bottom: 20px;
}

.confirmation-page .submission-number {
  font-size: 24px;
  font-weight: bold;
  color: #0b3b82;
  margin: 20px 0;
}

.confirmation-page p {
  line-height: 1.8;
  color: #555;
}

/* ==========================================
   RESPONSIVE - FORMULAIRES MULTI-ÉTAPES
   ========================================== */
@media (max-width: 768px) {
  .onacvg-wizard {
    padding: 15px;
  }

  .onacvg-steps {
    flex-wrap: wrap;
  }

  .onacvg-steps li {
    flex: 0 0 calc(25% - 10px);
    margin-bottom: 20px;
  }

  .onacvg-steps .step-label {
    font-size: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group.half,
  .form-group.third,
  .form-group.two-thirds {
    flex: 1 1 100%;
  }

  .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .civilite-radio-group {
    flex-direction: row !important;
  }

  .nav-buttons {
    flex-direction: column-reverse;
    gap: 10px;
  }
}

/* Wrapper principal */
.ts-wrapper {
  padding: 0 !important;
}

.ts-control {
  border: 1px solid #929292 !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: white !important;
}

/* Cacher la recherche dans le control, la mettre dans le dropdown */
.ts-dropdown {
  border: 1px solid #929292 !important;
  border-top: none !important;
  border-radius: 0 0 4px 4px !important;
  box-shadow: none !important;
  margin-top: 0 !important;
}

/* Barre de recherche dans le dropdown */
.ts-dropdown .ts-dropdown-header {
  padding: 8px !important;
  border-bottom: 1px solid #e0e0e0 !important;
  background: white !important;
}

.ts-dropdown input.ts-input,
.ts-dropdown-content input,
.ts-wrapper input {
  border: 1px solid #030191 !important;
  padding: 10px 14px !important;
  width: 100% !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  outline: none !important;
  box-sizing: border-box !important;
}

/* Options */
.ts-dropdown .option {
  padding: 10px 16px !important;
  font-size: 0.875rem !important;
  color: #333 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: #f0f0f0 !important;
  color: #030191 !important;
}

/* Option sélectionnée */
.ts-dropdown .option.selected {
  color: #030191 !important;
  font-weight: 600 !important;
  background: none !important;
}

/* Flèche */
.ts-control::after {
  content: "^" !important;
  position: absolute !important;
  right: 16px !important;
  color: #030191 !important;
}

.webform-step-title {
  font-family: "Karma";
  font-size: 26px;
  font-weight: 500;
}

.webform-step-title::before {
  font-family: 'onacvg-icons';
  margin-right: 20px;
  font-size: 0.7em;
  line-height: 2.7rem;
}

.step[data-step="1"] .webform-step-title::before {
  content: '\e9bb';
}

.step[data-step="3"] .webform-step-title::before {
  content: '\e90a';
}

.step[data-step="4"] .webform-step-title::before {
  content: '\e90e';
}

.step[data-step="4"] .fr-upload {
  border: 1px solid #666;
  padding: 10px;
}

.step[data-step="5"] .webform-step-title::before {
  content: '\1f5c7';
}

.titre-info {
  font-family: "Karma";
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.5625rem;
}