/* ==============================
   Custom LimeSurvey CSS basé sur 1.0.39.css
   ============================== */

/* ---- Variables principales ---- */
:root {
  --color-primary-50:#ffedee;
  --color-primary-100:#fae1e2;
  --color-primary-200:#ffccce;
  --color-primary-300:#fa9da1;
  --color-primary-400:#fc656b;
  --color-primary-500:#e53940;  /* rouge vif */
  --color-primary-600:#d8232a;
  --color-primary-700:#bf1f25;
  --color-primary-800:#99191e;
  --color-primary-900:#801519;

  --color-secondary-50:#f0f4f7;
  --color-secondary-100:#dfe4e9;
  --color-secondary-200:#acb4bd;
  --color-secondary-300:#828e9a;
  --color-secondary-400:#596978;
  --color-secondary-500:#46596b;
  --color-secondary-600:#2f4356;
  --color-secondary-700:#263645;
  --color-secondary-800:#1c2834;
  --color-secondary-900:#131b22;

  --font-main: "Noto Sans", Arial, sans-serif;
}

/* ---- Typographie ---- */
body {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #1f2937; /* text-gray-800 */
  background: #fff;
}

.h1, h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-600);
  margin-bottom: 1rem;
}
.h2, h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.h3, h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: .5rem;
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

/* ---- Boutons ---- */
.btn,
button,
input[type="submit"],
input[type="button"] {
  background-color: var(--color-primary-600);
  color: #fff;
  border: none;
  border-radius: .375rem;
  padding: .5rem 1.25rem;
  cursor: pointer;
  transition: background-color .2s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--color-primary-700);
}

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
  background-color: var(--color-secondary-400);
  cursor: not-allowed;
}

/* ---- Questions ---- */
.ls-question-wrapper {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-secondary-200);
  border-radius: .5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.ls-label-question {
  font-weight: 600;
  margin-bottom: .75rem;
  display: block;
  font-size: 1.125rem;
  color: var(--color-secondary-800);
}

.questionhelp {
  font-size: .875rem;
  color: var(--color-secondary-400);
  margin-top: .5rem;
}

/* ---- Inputs ---- */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--color-secondary-300);
  border-radius: .375rem;
  padding: .5rem .75rem;
  width: 100%;
  font-size: 1rem;
  transition: all .2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 2px rgba(229, 57, 64, 0.2);
}

/* ---- Tables (échelles, choix multiples) ---- */
.ls-answers table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 1rem;
}

.ls-answers th,
.ls-answers td {
  border: 1px solid var(--color-secondary-200);
  padding: .75rem;
  text-align: center;
}

.ls-answers th {
  background-color: var(--color-secondary-100);
  color: var(--color-secondary-800);
  font-weight: 600;
}

.ls-answers tr:nth-child(even) {
  background-color: #f9fafb;
}

/* ---- Barre de progression ---- */
.progress {
  background-color: var(--color-secondary-200);
  border-radius: 9999px;
  overflow: hidden;
  height: 1rem;
  margin: 2rem 0;
}

.progress-bar {
  background-color: var(--color-primary-600);
  height: 100%;
  transition: width .4s ease;
}

/* ---- Messages ---- */
.alert-success {
  background-color: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1rem;
  border-radius: .375rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #dc2626;
  color: #991b1b;
  padding: 1rem;
  border-radius: .375rem;
  margin-bottom: 1rem;
}

.alert-warning {
  background-color: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 1rem;
  border-radius: .375rem;
  margin-bottom: 1rem;
}

/* ---- Navigation ---- */
#navigator-container {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

#navigator-container .btn {
  min-width: 120px;
}
