/* =======================================================
   LimeSurvey 3.28 — Thème IARA (custom.css) — VERSION OPTIMISÉE
   Compact, accessible, harmonisé
   -------------------------------------------------------
   À placer dans : /upload/themes/survey/iara/css/custom.css
   Puis : Admin > Thèmes > Reconstruire les caches
   ======================================================= */

/* =====================
   Variables (palette)
   ===================== */
:root {
  --iara-orange: #f26c1f;
  --iara-orange-550: #e05512;
  --iara-orange-600: #d35400;
  --iara-orange-650: #c44a00;
  --iara-orange-750: #a84300;

  --ink: #1d1d1b;
  --muted: #6b7280;
  --border: #e6e7eb;
  --bg: #fff;

  --tint-4: rgba(242,108,31,.04);
  --tint-6: rgba(242,108,31,.06);
  --tint-8: rgba(242,108,31,.08);

  --radius: 10px;
}

/* =====================
   Typographie
   ===================== */
html { font-size: 100%; }
body {
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5,h6,.h4 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: .5em 0 .25em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }

/* =====================
   Titres de question
   ===================== */
h2.question-title, h3.question-title {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: .2rem;
  margin-bottom: .5rem;
}

/* =====================
   Encarts intro
   ===================== */
.question-title-container,
.group-description.row.well.space-col {
  background: var(--tint-6);
  border-left: 4px solid var(--iara-orange);
  color: var(--ink);
  font-weight: 500;
  font-size: 1.125rem; /* ≈18px */
  padding: .5rem .75rem;
  margin-bottom: .5rem;
}

/* =====================
   Asterisques obligatoire
   ===================== */
.asterisk, .question .asterisk, .important-asterisk {
  color: #b42318;
  font-weight: 600;
  margin: 0 .4em 0 .3em;
  font-size: 1.1rem;
  vertical-align: middle;
}

/* =====================
   Champs / focus
   ===================== */
.form-control, .ls-input, input[type="text"], select, textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}
.form-control:focus, .ls-input:focus, select:focus, textarea:focus {
  border-color: var(--iara-orange-600);
  box-shadow: 0 0 0 3px rgba(242,108,31,.2);
  outline: 2px solid transparent;
}

/* =====================
   Messages info
   ===================== */
.fruity .text-info {
  color: #000;
  font-size: 1rem;
  line-height: 1.4;
  text-align: justify;
}

/* =====================
   Navbar compacte et sans ombre
   ===================== */
.navbar {
  min-height: 36px !important;
  margin-bottom: .5rem !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
#navbar {
  min-height: 32px !important;
  padding: 0 !important;
}
#navbar .navbar-nav > li > a {
  padding: 4px 8px !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
}

/* Liens d’action (save/load/clear) en navbar */
.navbar .navbar-action-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
}
.navbar .navbar-action-link > li {
  display: block;
  float: none !important;
  margin: 0;
  padding: 0;
  line-height: 1 !important;
}
.navbar .navbar-action-link > li > a {
  font-size: 0.85rem !important;
  font-weight: 500;
  text-decoration: none !important;
  color: var(--muted) !important;
  padding: 0.1rem 0.25rem !important;
  margin: 0 !important;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.1 !important;
}
.navbar .navbar-action-link > li > a:hover,
.navbar .navbar-action-link > li > a:focus {
  background: var(--tint-6);
  color: var(--iara-orange) !important;
}

/* =====================
   Boutons Oui/Non — compacts + état actif visible
   ===================== */
ul.ls-answers.button-list.yesno-button.btn-group-justified {
  display: flex !important;
  gap: 0.75rem;
}
ul.ls-answers.button-list.yesno-button .button-item {
  flex: 1 1 0;
  margin-left: 0 !important;
  background: var(--iara-orange);
  color: #fff;
  border: 1px solid var(--iara-orange-650);
  border-radius: 4px;
  font-size: 0.85rem;       /* ≈13.5px */
  font-weight: 500;
  padding: .2rem .6rem;
  line-height: 1.3;
  transition: background .15s ease-in-out, box-shadow .15s ease-in-out, transform .1s ease;
}
ul.ls-answers.button-list.yesno-button .button-item:hover {
  background: var(--iara-orange-550);
  border-color: var(--iara-orange-650);
}
ul.ls-answers.button-list.yesno-button .button-item:focus {
  box-shadow: 0 0 0 0.15rem rgba(242,108,31,.25);
  outline: none;
}
ul.ls-answers.button-list.yesno-button .button-item.active {
  background: var(--iara-orange-750) !important;
  border-color: var(--iara-orange-750) !important;
  color: #fff !important;
  transform: scale(1.02);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(168,67,0,.65);
}
.ls-answers .button-item[disabled],
.ls-answers .button-item.disabled {
  background: #e9ecef;
  color: #68707a;
  border-color: #d0d5da;
  cursor: not-allowed;
  opacity: 1;
}

/* =====================
   Radios / checkboxes
   ===================== */
.radio-list input[type="radio"]:checked + label,
.checkbox-list input[type="checkbox"]:checked + label {
  background: var(--tint-8);
  color: var(--ink);
  border-color: var(--iara-orange-600);
  font-weight: 600;
}

/* =====================
   Questions / cartes
   ===================== */
.question-item {
  padding: 0 .5rem .5rem;
  background: transparent;
  border: 1px solid transparent;
}
.ls-question-container:hover {
  background: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* =====================
   Tables / matrices
   ===================== */
.ls-answers th, .ls-answers td { border-color: var(--border); }
.ls-answers tbody tr:nth-child(odd) td { background: #fafafa; }

/* =====================
   Progress bar
   ===================== */
.progress {
  height: .75rem;
  border-radius: 999px;
  background: #eef1f4;
  margin: .35rem 0;
}
.progress-bar { background: var(--iara-orange); }

/* =====================
   Texte d’accueil
   ===================== */
.survey-welcome.h4.text-primary {
  font-size: 16px;
  color: #000;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* =====================
   Liens généraux
   ===================== */
a { color: #0645ad; text-decoration: underline; }
a:hover, a:focus { color: #071aef; }
a:visited { color: #5a3696; }

/* =====================
   Accessibilité
   ===================== */
:focus-visible {
  outline: 3px solid rgba(242,108,31,.35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
  .ls-answers table { display: block; overflow-x: auto; }
  .btn, .ls-btn-action { padding: .5rem .75rem; }
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
}

/* =====================
   Table "customers"
   ===================== */
table#customers {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95em;
  line-height: 1.4;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table#customers th, table#customers td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  vertical-align: top;
}
table#customers th {
  background: var(--tint-6);
  text-align: center;
  font-weight: 600;
}
table#customers tbody tr:nth-child(odd) td { background: #fafafa; }
table#customers caption {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: .5em;
  text-align: left;
  color: var(--iara-orange);
}

/* =====================
   Logos flex
   ===================== */
#logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem auto;
  width: 100%;
}
#logos img {
  flex: 1 1 12%;
  max-height: 80px;
  object-fit: contain;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
#logos img:hover {
  transform: scale(1.05);
  opacity: .9;
}
@media (max-width: 900px) {
  #logos img { flex: 1 1 28%; max-height: 70px; }
}
@media (max-width: 600px) {
  #logos img { flex: 1 1 80%; max-height: 60px; }
}

/* Neutraliser le décalage horizontal des items */
.question-item {
  padding: 0 0 .5rem 0 !important;
  background: transparent;
  border: 1px solid transparent;
}
