/* Conteneur des questions */
#outerframeContainer {
    position: relative;
    overflow: hidden;
}

/* L'élément qui va glisser */
/* Slide animation sur la carte entière */
.slide-page {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease;
}

.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

/* Quand une page entre par la droite */
.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Base générale */
body {
  background: #f2f6fc !important;
  font-family: "Inter", "Segoe UI", sans-serif !important;
  color: #2C3B77 !important;
}

/* Conteneur principal (carte) */
#outerframeContainer {
  max-width: 700px;
  margin: auto;
  background: #fff;
  border-radius: 12px; /* coins plus discrets */
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Titre de question */
.question-title-container {
  font-size: 1.5em !important;
  font-weight: 600;
  margin-bottom: 1em;
  color: #2C3B77;
}

/* Réponses */
.ls-answers input[type="text"],
.ls-answers input[type="number"],
.ls-answers textarea {
  width: 100% !important;
  padding: 15px !important;
  border-radius: 8px !important;
  border: 1px solid #ccc !important;
  font-size: 1em !important;
  background: #fdfdfd !important;
}

.ls-answers input:focus,
.ls-answers textarea:focus {
  border-color: #91ABD6 !important;
  outline: none;
}

/* Boutons radio et checkbox */
.radio-item label,
.checkbox-item label {
  background: #EFF4FB;
  padding: 14px 20px;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.radio-item input:checked + label,
.checkbox-item input:checked + label {
  background-color: #2C3B77;
  color: white;
  border-color: #1e2c5c;
}

/* Navigation */
button[name="move"] {
  background-color: #2C3B77 !important;
  color: white !important;
  padding: 14px 28px !important;
  border: none !important;
  border-radius: 24px !important;
  font-size: 1em !important;
  transition: background-color 0.3s ease;
  margin-top: 2em;
}

button[name="move"]:hover {
  background-color: #1e2c5c !important;
}

/* Barre de progression */
.top-container .progress {
  height: 20px !important;
  background: #d9e3f5 !important;
  border-radius: 20px !important;
  overflow: hidden;
  margin-bottom: 2em;
}

.progress .progress-bar {
  background-color: #2C3B77 !important;
  height: 100% !important;
  border-radius: 20px !important;
}

/* Aide */
.ls-question-help {
  font-size: 0.95em !important;
  color: #666 !important;
  margin-top: 10px;
}

/* Agrandit le logo dans l'en-tête */
.logo-container > img,
.site-logo,
.navbar-brand > img {
  max-height: 110px !important; /* ajuste ici la hauteur souhaitée */
  padding: 10px !important; /* espace autour du logo */
  width: auto !important;
  height: auto !important;
}

/* Fond blanc pour la barre de navigation */
.navbar.navbar-default.navbar-fixed-top {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e0e0e0 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Ajuste la couleur des textes et liens */
.navbar-default .navbar-nav > li > a {
  color: #2C3B77 !important; /* Bleu foncé de ta charte */
  font-weight: 500;
}

/* Couleur au survol */
.navbar-default .navbar-nav > li > a:hover {
  color: #005fa3 !important;
}

/* Logo un peu plus grand */
.logo.img-responsive {
  max-height: 100px !important;
  padding: 10px !important;
  width: auto !important;
}

/* Affiche le logo même sur mobile (classe .hidden-xs souvent utilisée pour le masquer) */
@media (max-width: 767px) {
  .logo-container.hidden-xs {
    display: block !important;
    text-align: center;
  }

  .logo-container.hidden-xs img.logo {
    margin: 0 auto;
    max-height: 80px !important;
    padding: 10px !important;
  }
}

.question-container {
  border: none !important;
  background-color: transparent !important;
}

/* === Styles généraux pour le bloc mood === */
#mood-ui {
  text-align: center;
  font-family: 'Arial', sans-serif;
  position: relative;
}

#mood-emoji {
  font-size: 64px;
  margin-top: 20px;
  font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}

#mood-text {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}

/* Masquer l'input texte LimeSurvey si visible */
.ls-input-group {
  display: none !important;
}

/* === ROULE (mobile only) === */
#mood-wrapper {
  width: 100%;
  height: 180px;
  position: fixed;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1000;
  background: transparent !important;
  pointer-events: none;
}

#mood-wheel {
  position: absolute;
  bottom: -400px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

/* === SLIDER (desktop only) === */
#mood-slider-container {
  display: none;
}

/* Style du slider moderne */
#mood-slider {
  -webkit-appearance: none;
  width: 80%;
  max-width: 400px;
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    #fb374d 20%,      /* Pas du tout satisfait */
    #ffa360 40%,      /* Peu satisfait */
    #ffc55f 60%,      /* Assez satisfait */
    #a0c460 80%,      /* Satisfait */
    #60c867 100%      /* Tout à fait satisfait */
  );
  outline: none;
  margin-top: 20px;
  cursor: pointer;
}

/* Curseur personnalisé (Chrome/Safari) */
#mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 4px solid #333;
  margin-top: -4px;
}

/* Curseur personnalisé (Firefox) */
#mood-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 4px solid #333;
}

/* Bouton \"Envoyer\" : centré en bas sur mobile */
#ls-button-submit {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 12px 24px;
  border-radius: 25px;
  background-color: #005aa7;
  color: white;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

/* Laisse de la place pour le bouton */
body {
  padding-bottom: 80px;
}

/* === Desktop : on force le mode mobile partout === */
@media (min-width: 768px) {
  #mood-wrapper {
    display: block !important;     /* toujours afficher la roue */
  }
  #mood-slider-container {
    display: none !important;      /* toujours masquer le slider */
  }
  #ls-button-submit {
    position: fixed !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    display: block !important;
  }
  body {
    padding-bottom: 80px !important;
  }
}

#mood-hint {
  text-align: center;
  margin-top: 10px;
  animation: pulse 1.5s infinite;
}

.hint-arrow {
  font-size: 32px;
  margin: 0 20px;
  opacity: 0.6;
  animation: move-pulse 1.2s infinite;
  display: inline-block;
  color: #555;
}

@keyframes move-pulse {
  0%   { transform: translateX(0); opacity: 0.4; }
  50%  { transform: translateX(5px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.4; }
}
