/* Prana Masso - theme LimeSurvey (copie de fruity_twentythree) - v1 2026-10-20 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root, [data-bs-theme] {
  --bs-primary: #2C3345;
  --bs-primary-rgb: 44, 51, 69;
  --bs-body-font-family: 'Open Sans', Arial, sans-serif;
  --bs-font-sans-serif: 'Open Sans', Arial, sans-serif;
  --bs-body-color: #2C3345;
  --bs-body-bg: #FFF6D6;
  --bs-link-color: #2C3345;
  --bs-link-hover-color: #2C3345;
  --bs-border-color: #CFC8B6;
}

body { background: #FFF6D6 !important; color: #2C3345 !important; font-family: 'Open Sans', Arial, sans-serif !important; }
h1, h2, h3, h4, .large-heading, .survey-name, .group-title, .question-text { font-family: 'Open Sans', Arial, sans-serif !important; color: #2C3345 !important; }

/* Bandeau du haut : bleu nuit + sigle */
.navbar.fixed-top { background: #2C3345 !important; min-height: 72px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.navbar.fixed-top::before {
  content: "Prana Masso"; display: flex; align-items: center; gap: 12px;
  padding-left: 64px; height: 56px; color: #fff; font-weight: 700; font-size: 20px;
  background: url('https://assets.cdn.filesafe.space/qELoOsmMxj5GrNdORvnI/media/6ad69cb4436f78fefba8d86a.png') no-repeat left center / 52px 52px;
  margin-left: 16px;
}
.navbar.fixed-top .nav-link, .navbar.fixed-top .ri-more-fill, .navbar.fixed-top .dropdown-toggle { color: #fff !important; }
.navbar-brand.logo-container img { display: none; }

/* Carte blanche centrale */
#outerframeContainer, .outerframe, .top-container, .top-content { background: transparent !important; box-shadow: none !important; }
.ls-language-changer-item a, .dropdown-toggle { color: #2C3345 !important; }
.survey-form-container {
  background: #FFFFFF; border-radius: 16px; box-shadow: 0 4px 18px rgba(44,51,69,.08);
}
.survey-form-container { padding: 24px 28px !important; margin-top: 24px; margin-bottom: 24px; }

/* Bande de confiance sous le titre */
.survey-description::after {
  content: "\1F512  Confidentiel / Confidential   \00B7   \1F33F  Utilise seulement pour vos soins / Used only for your care";
  display: block; margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: #ECE6D6; color: #2C3345; font-size: 14px;
}

/* Questions */
.question-container { border: 0 !important; border-bottom: 1px solid #ECE6D6 !important; padding: 18px 0 !important; background: transparent !important; }
.question-text, .ls-label-question { font-weight: 600 !important; font-size: 18px !important; }
.ls-questionhelp, .question-help-container, .ls-question-help { color: #5A6070 !important; font-size: 14px !important; }
.asterisk, .text-danger.asterisk { color: #C0392B !important; }

/* Champs */
.form-control, .form-select, textarea, input[type="text"], input[type="email"], input[type="number"] {
  border: 1px solid #CFC8B6 !important; border-radius: 10px !important; background: #FFFFFF !important;
  color: #2C3345 !important; font-size: 16px !important; box-shadow: none !important;
}
.form-control:focus, .form-select:focus, textarea:focus, input:focus {
  border-color: #2C3345 !important; box-shadow: 0 0 0 3px rgba(249,195,7,.35) !important; outline: none !important;
}

/* Cases et boutons radio */
.form-check-input, input[type="checkbox"], input[type="radio"] { accent-color: #2C3345; border-color: #2C3345 !important; }
.form-check-input:checked { background-color: #2C3345 !important; border-color: #2C3345 !important; }
.answer-item label, .form-check-label { font-size: 16px !important; color: #2C3345 !important; }
.answer-item:hover { background: #FFF9E6; border-radius: 8px; }

/* Boutons */
.btn-primary, #ls-button-submit, .action--ls-button-submit.btn-primary {
  background: #F9C307 !important; border: 0 !important; color: #2C3345 !important;
  border-radius: 999px !important; font-weight: 700 !important; font-size: 17px !important; padding: 12px 26px !important;
}
.btn-primary:hover, #ls-button-submit:hover { filter: brightness(.95); }
.btn-outline-secondary, #ls-button-previous, .btn-secondary {
  background: #FFFFFF !important; border: 1px solid #CFC8B6 !important; color: #2C3345 !important;
  border-radius: 999px !important; font-weight: 600 !important; padding: 12px 22px !important;
}

/* Barre de progression */
.progress { background: #ECE6D6 !important; height: 10px !important; border-radius: 999px !important; }
.progress-bar { background: #F9C307 !important; color: #2C3345 !important; }

/* Liens et texte d'accent (remplace le vert LimeSurvey) */
a, .text-primary, .link-primary { color: #2C3345 !important; }
.text-success { color: #2C3345 !important; }

/* Pied de page : masque la publicite LimeSurvey */
.poweredby, #poweredby, .powered-by { display: none !important; }

/* Carte corporelle (questionnaire Sante) */
.pmbm { margin: 14px 0 6px; font-family: 'Open Sans', Arial, sans-serif; color: #2C3345; }
.pmbm-hint { font-size: 14px; color: #5A6070; margin: 0 0 10px; font-weight: 400; }
.pmbm-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pmbm-mark { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #CFC8B6; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: #2C3345; cursor: pointer; }
.pmbm-mark span { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.pmbm-mark.on { border-color: #2C3345; box-shadow: 0 0 0 3px rgba(249,195,7,.45); }
.pmbm-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pmbm-seg { display: inline-flex; background: #ECE6D6; border-radius: 999px; padding: 3px; }
.pmbm-seg button { border: 0; background: transparent; border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 14px; color: #5A6070; cursor: pointer; }
.pmbm-seg button.on { background: #2C3345; color: #fff; }
.pmbm-stage { position: relative; max-width: 340px; margin: 6px auto; background: #FFF9E6; border: 1px solid #ECE6D6; border-radius: 16px; touch-action: none; }
.pmbm-stage svg { display: block; width: 100%; height: auto; }
.pmbm-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.pmbm-btn { border: 1px solid #CFC8B6; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: #2C3345; cursor: pointer; }
.pmbm-found { font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.pm-hidden { display: none !important; }

/* Encadres des systemes du corps (questionnaire Sante, section 1) */
.pm-sys { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #FFF9E6; border: 1px solid #ECE6D6; border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-weight: 400; font-size: 15px; }
.pm-sys img { width: auto; max-width: 96px; height: 160px; object-fit: contain; margin: 0 auto; border-radius: 10px; background: #fff; display: block; }
.pm-sys-t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 4px; color: #2C3345; }
.pm-sys-t span { background: var(--pm); color: #fff; border-radius: 8px; min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.pm-sys p { margin: 0; line-height: 1.5; color: #2C3345; }
@media (max-width: 600px) { .pm-sys { grid-template-columns: 72px 1fr; gap: 12px; } .pm-sys img { max-width: 72px; height: 120px; } }

/* Mobile (v1.3, 2026-10-20) : pas de coupure de mots, titres plus petits, carte a la hauteur de l'ecran */
body, body * { -webkit-hyphens: manual !important; hyphens: manual !important; }
.pmbm-stage { max-width: min(340px, 28vh); }
.pmbm-seg button { white-space: nowrap; }
@media (max-width: 600px) {
  h1, .survey-name { font-size: 28px !important; line-height: 1.2 !important; }
  h2, h3, .group-title { font-size: 23px !important; line-height: 1.25 !important; }
  .pmbm-view { display: flex; width: 100%; }
  .pmbm-view button { flex: 1 1 auto; padding: 7px 6px; font-size: 12.5px; }
  .pmbm-mark { padding: 6px 11px; font-size: 13px; }
}
