/* =====================================================================
   CPTS BTV – Thème Evalandgo
   Charte graphique : Nunito (Black / Regular / ExtraLight)
   Bleu   #2483DC  (R36 V131 B220)
   Turquoise #11A9AA (R17 V169 B170)
   Vert   #00CB7C  (R0 V203 B124)
   Gris clair #EDEDED (R237 V237 B237)
   Bleu foncé #1B6CB8 : variante du bleu charte, utilisée sous les textes
   blancs (contraste 5,4:1 contre 3,9:1 pour le bleu charte, norme RGAA/WCAG AA).
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

/* ---------- Choix multiples en ligne (repris de la trame) ---------- */
@media screen and (min-width: 768px) {
  .d-flex.flex-column.flex-md-row {
    gap: 0 !important;
  }
  .d-flex.flex-column.flex-md-row > label:not(:first-child),
  .d-flex.flex-column.flex-md-row .d-flex.flex-row > label:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
  .d-flex.flex-column.flex-md-row > label:not(:last-child),
  .d-flex.flex-column.flex-md-row .d-flex.flex-row > label:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}
.d-flex.flex-row, .d-flex:not(.flex-column) {
  gap: 0 !important;
}
.d-flex.flex-row > label:not(:first-child),
.d-flex.flex-row .d-flex.flex-row > label:not(:first-child),
.d-flex:not(.flex-column) > label:not(:first-child),
.d-flex:not(.flex-column) .d-flex.flex-row > label:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.d-flex.flex-row > label:not(:last-child),
.d-flex.flex-row .d-flex.flex-row > label:not(:last-child),
.d-flex:not(.flex-column) > label:not(:last-child),
.d-flex:not(.flex-column) .d-flex.flex-row > label:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* ---------- Variables Evalandgo ---------- */
:root {
  --bs-border-radius: 12px;

  /* Fond et conteneur */
  --eg-body-bg-color: #F4F9FD;
  --eg-body-bg-image-opacity: 1;
  --eg-body-bg-image: none; /* remplacer par url("...") si vous importez une image de fond dans Evalandgo */
  --eg-body-overlay-color: rgba(0, 0, 0, 0);
  --eg-container-bg-color: #ffffff;
  --eg-container-bg-color-contrast: #1E2A4A;
  --eg-container-border-radius: 20px;
  --eg-container-shadow: 0 10px 30px rgba(36, 131, 220, 0.10);

  /* Navigation et progression */
  --eg-nav-bg-color: #1B6CB8;
  --eg-nav-bg-color-contrast: #ffffff;
  --eg-progress-bar-bg-color: #2483DC;
  --eg-progress-bar-border-radius: 99px;
  --eg-progress-bar-fill: linear-gradient(90deg, #2483DC 0%, #11A9AA 50%, #00CB7C 100%);

  /* Typographie */
  --eg-font-fallback: sans-serif;
  --eg-title-color: #1E2A4A;
  --eg-title-font-size: 34px;
  --eg-title-font-weight: 900;
  --eg-title-font-family: Nunito, Helvetica Neue, Arial, sans-serif;
  --eg-title-letter-spacing: 0px;
  --eg-question-margin-top: 0px;
  --eg-question-font-size: 22px;
  --eg-question-font-familly: Nunito, Helvetica Neue, Arial, sans-serif;
  --eg-question-font-weight: 700;
  --eg-question-color: #1E2A4A;

  /* Blocs de réponse */
  --eg-block-color: #1E2A4A;
  --eg-block-bg-color: #ffffff;
  --eg-block-color-hover: #1E2A4A;
  --eg-block-bg-color-hover: #E9F3FC;
  --eg-block-bg-color-shade: #EDEDED;
  --eg-block-bg-color-shade-2: #E2E8EE;
  --eg-block-bg-color-shade-3: #C9D3DD;
  --eg-block-bg-color-shade-4: #8A97A6;
  --eg-block-border-radius: 12px;
  --eg-block-border-width: 1px;
  --eg-block-border-color: #DCE6F0;
  --eg-block-backdrop-blur: 0px;
  --eg-block-shadow: 0 4px 14px rgba(30, 42, 74, 0.05);
  --eg-block-font-family: Nunito, Helvetica Neue, Arial, sans-serif;
  --eg-block-font-size: 16px;
  --eg-block-font-weight: 500;

  /* Couleurs principales */
  --eg-primary-color: #2483DC;
  --eg-primary-color-rgb: 36, 131, 220;
  --eg-primary-color-contrast: #ffffff;
  --eg-primary-color-shade: #1B6CB8;
  --eg-checkbox-color: #11A9AA;
  --eg-checkbox-color-contrast: #ffffff;

  /* Boutons de navigation (style des boutons du site) */
  --eg-nav-btn-border-radius: 50px;
  --eg-nav-btn-text-transform: uppercase;
  --eg-nav-btn-font-weight: 800;
  --eg-nav-btn-shadow: 0 6px 16px rgba(36, 131, 220, 0.25);

  /* Champs de saisie */
  --eg-input-bg-color: #ffffff;
  --eg-input-border-color: #D3DDE7;
  --eg-input-text-color: #1E2A4A;
  --eg-input-border-radius: 10px;

  --eg-logo-size: 160px;
}

/* ---------- Blocs de choix ---------- */
.questionnaire-block:not(.btn-success):not(.btn-danger),
.bootstrap-select > button.dropdown-toggle,
.bootstrap-select {
  --bs-btn-color: #1E2A4A;
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: #DCE6F0;
  --bs-btn-hover-color: #1E2A4A;
  --bs-btn-hover-bg: #E9F3FC;
  --bs-btn-hover-border-color: #2483DC;
  --bs-btn-focus-shadow-rgb: 36, 131, 220;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #1B6CB8;
  --bs-btn-active-border-color: #1B6CB8;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #8A97A6;
  --bs-btn-disabled-bg: #F6F6F6;
  --bs-btn-disabled-border-color: #EDEDED;
  font-family: Nunito, Helvetica Neue, Arial, sans-serif;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.questionnaire-block {
  margin-bottom: 15px;
}
.questionnaire-block:not(.btn-success):not(.btn-danger):not(:disabled):not(.disabled).active,
.questionnaire-block:not(.btn-success):not(.btn-danger):not(:disabled):not(.disabled):active {
  color: #ffffff !important;
  background-color: #1B6CB8 !important;
  border-color: #1B6CB8 !important;
  box-shadow: 0 6px 14px rgba(36, 131, 220, 0.25);
}

/* ---------- Boutons Suivant / Précédent / Valider ---------- */
.questionnaire-nav-btn {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #1B6CB8;
  --bs-btn-border-color: #1B6CB8;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #11888A;
  --bs-btn-hover-border-color: #11888A;
  --bs-btn-focus-shadow-rgb: 36, 131, 220;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #155A9B;
  --bs-btn-active-border-color: #155A9B;
  --bs-btn-active-shadow: none;
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #8FB8E2;
  --bs-btn-disabled-border-color: #8FB8E2;
  border-radius: 50px !important;
  padding: 10px 28px;
  font-family: Nunito, Helvetica Neue, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(36, 131, 220, 0.25);
}

/* ---------- Page ---------- */
body {
  position: relative;
  background-color: #F4F9FD;
  background-image: linear-gradient(180deg, #ffffff 0%, #EAF4FC 100%);
  background-attachment: fixed;
  color: #1E2A4A;
  font-family: Nunito, Helvetica Neue, Arial, sans-serif;
}
body:before {
  content: " ";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: var(--eg-body-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--eg-body-bg-image-opacity);
}
body > div:first-child {
  position: relative;
}
#questionnaire_container {
  width: 970px;
  max-width: 100%;
  margin: auto;
}
@media (min-width: 576px) {
  #questionnaire_container {
    padding-top: 75px;
  }
}

/* Bandeau dégradé de la charte en haut de page */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #2483DC 0%, #11A9AA 50%, #00CB7C 100%);
  z-index: 1000;
}

/* ---------- Textes ---------- */
p {
  font-weight: 500 !important;
  line-height: 1.6;
}
.questionnaire-question-label {
  margin-bottom: 20px;
}
a {
  color: #1B6CB8;
}
a:hover {
  color: #11888A;
}

/* ---------- Champs de saisie ---------- */
.form-control {
  box-shadow: none;
}
input, select, textarea {
  border-radius: 10px;
  font-family: Nunito, Helvetica Neue, Arial, sans-serif;
}
input {
  box-shadow: none !important;
}
input:hover, select:hover, textarea:hover {
  border-color: #2483DC;
}
.form-control:hover {
  box-shadow: 0 0 0 1px #2483DC !important;
}
.form-control:focus,
input:focus, select:focus, textarea:focus {
  border-color: #2483DC !important;
  box-shadow: 0 0 0 3px rgba(36, 131, 220, 0.20) !important;
}
.btn-shadow {
  box-shadow: 0 4px 14px rgba(30, 42, 74, 0.05);
}
.btn.btn-shadow:hover {
  background-color: #E9F3FC !important;
  border-color: #2483DC !important;
}

/* ---------- Cases à cocher / boutons radio ---------- */
.form-check-input {
  --bs-form-check-bg: #ffffff;
  border-color: #A9B6C4;
}
.form-check-input:checked {
  background-color: #11A9AA;
  border-color: #11A9AA;
}
.form-check-input:focus {
  border-color: #11A9AA;
  box-shadow: 0 0 0 3px rgba(17, 169, 170, 0.20);
}

/* ---------- Barre de progression ---------- */
.progress {
  background-color: #EDEDED;
  border-radius: 99px;
}
.progress-bar {
  background: linear-gradient(90deg, #2483DC 0%, #11A9AA 50%, #00CB7C 100%) !important;
  border-radius: 99px;
}

/* ---------- Fonds secondaires ---------- */
.bg-secondary {
  background-color: #E9F3FC !important;
}
