/* 4F Formation — Espace Participant */

/* Masquer les éléments thème sur la page espace stagiaire */
.banner-simple-C,
.breadcrumb-scroller,
.entry-header {
  display: none;
}
.entry-content {
  margin-top: 4px !important;
}

:root {
  --ff-blue: #1a3a6b;
  --ff-orange: #e85d04;
  --ff-light: #f8f9fa;
  --ff-border: #dee2e6;
  --ff-text: #212529;
  --ff-muted: #6c757d;
  --ff-success: #198754;
  --ff-error: #dc3545;
  --ff-radius: 10px;
  --ff-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ff-ep-wrap * {
  box-sizing: border-box;
}

.ff-ep-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ff-text);
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 15px;
}

/* ── Card ── */
.ff-card {
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 30px;
  box-shadow: var(--ff-shadow);
  margin-bottom: 20px;
}

.ff-card h3 {
  margin: 0 0 8px;
  color: var(--ff-blue);
  font-size: 1.2rem;
}

.ff-info-text {
  color: var(--ff-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ── Étape connexion ── */
.ff-logo {
  text-align: center;
  margin-bottom: 28px;
}
.ff-logo img {
  max-height: 70px;
  margin-bottom: 12px;
}
.ff-logo h1 {
  font-size: 1.6rem;
  color: var(--ff-blue);
  margin: 0 0 8px;
}
.ff-subtitle {
  color: var(--ff-muted);
  font-size: 0.95rem;
}

.ff-code-input-wrap {
  margin-bottom: 20px;
}
.ff-code-input-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ff-blue);
}

#ff-code-input {
  width: 100%;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 6px;
  padding: 14px 16px;
  border: 2px solid var(--ff-border);
  border-radius: var(--ff-radius);
  outline: none;
  transition: border-color 0.2s;
  color: var(--ff-blue);
}
#ff-code-input:focus {
  border-color: var(--ff-blue);
}

.ff-code-hint {
  font-size: 0.82rem;
  color: var(--ff-muted);
  text-align: center;
  margin-top: 6px;
}
.ff-saved-hint {
  font-size: 0.82rem;
  color: var(--ff-success);
  text-align: center;
  margin-top: 4px;
}
.ff-link-btn {
  background: none;
  border: none;
  color: var(--ff-muted);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: underline;
  padding: 0;
}

/* ── Boutons ── */
.ff-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  touch-action: manipulation;
  border-radius: var(--ff-radius);
  cursor: pointer;
  transition:
    background 0.2s,
    opacity 0.2s;
}
.ff-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ff-btn-primary {
  background: var(--ff-blue);
  color: #fff;
}
.ff-btn-primary:hover:not(:disabled) {
  background: #162e55;
}

.ff-btn-outline {
  background: transparent;
  border: 1.5px solid var(--ff-blue);
  color: var(--ff-blue);
  width: auto;
  padding: 6px 14px;
  font-size: 0.85rem;
}

.ff-btn-small {
  width: auto;
  padding: 7px 14px;
  font-size: 0.85rem;
}

/* ── Header dashboard ── */
.ff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
#ff-participant-name {
  font-size: 1.3rem;
  color: var(--ff-blue);
  font-weight: 700;
  margin: 0 0 3px;
}
.ff-session-label {
  color: var(--ff-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Tabs ── */
.ff-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ff-border);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.ff-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ff-muted);
  margin-bottom: -2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ff-tab-active,
.ff-tab:hover {
  color: var(--ff-blue);
  border-bottom-color: var(--ff-blue);
}

.ff-tab-locked {
  opacity: 0.4;
  cursor: not-allowed;
}
.ff-tab-locked:hover {
  color: var(--ff-muted);
  border-bottom-color: transparent;
}

.ff-label-hint {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--ff-muted);
}

.ff-tab-content {
  display: none;
}
.ff-tab-content-active {
  display: block;
}

/* ── Formulaires ── */
.ff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .ff-row {
    grid-template-columns: 1fr;
  }
}

.ff-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.ff-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ff-blue);
}

.ff-input {
  padding: 10px 12px;
  border: 1.5px solid var(--ff-border);
  border-radius: 7px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.ff-input:focus {
  border-color: var(--ff-blue);
}
.ff-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Signature ── */
.ff-signature-wrap label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ff-blue);
  display: block;
  margin-bottom: 6px;
}
.ff-canvas-container {
  border: 2px dashed var(--ff-border);
  border-radius: var(--ff-radius);
  background: #fafafa;
  cursor: crosshair;
  touch-action: none;
}
#ff-signature-pad {
  display: block;
  width: 100%;
  height: 180px;
}
.ff-signature-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* ── Émargement history ── */
.ff-emargement-history {
  border-top: 1px solid var(--ff-border);
  margin-top: 20px;
  padding-top: 16px;
}
.ff-emargement-history h4 {
  font-size: 0.95rem;
  color: var(--ff-blue);
  margin: 0 0 8px;
}
.ff-emargement-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ff-emargement-history li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--ff-text);
}

/* ── Note globale 1-10 ── */
.ff-field-note-globale {
  margin-bottom: 24px;
}
.ff-field-note-globale > label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.ff-note-scale {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ff-note-btn {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ff-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ff-muted);
  transition: all 0.15s;
}
.ff-note-btn:hover {
  border-color: var(--ff-blue);
  color: var(--ff-blue);
}
.ff-note-btn-active {
  background: var(--ff-blue);
  border-color: var(--ff-blue);
  color: #fff;
}
.ff-note-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ff-muted);
  margin-top: 4px;
  padding: 0 2px;
}

/* ── Smileys critères ── */
.ff-smiley-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ff-muted);
  margin-bottom: 16px;
}
.ff-field-smiley {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ff-border);
}
.ff-smiley-label {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ff-smileys {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.ff-smiley-btn {
  font-size: 1.6rem;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.15s;
}
.ff-smiley-btn:focus {
  outline: none;
}
/* Hover uniquement sur devices pointeur fin (souris), pas sur tactile */
@media (hover: hover) and (pointer: fine) {
  .ff-smiley-btn:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.15);
    border-color: var(--ff-border);
  }
}
.ff-smiley-btn.ff-smiley-active {
  opacity: 1;
  filter: grayscale(0);
  border-color: var(--ff-blue);
  background: var(--ff-light);
}

/* ── Radio groupe ── */
.ff-radio-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ff-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── Section title ── */
.ff-section-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ff-muted);
  border-bottom: 1px solid var(--ff-border);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

/* ── Messages ── */
.ff-error {
  background: #fff5f5;
  border: 1px solid #fcc;
  color: var(--ff-error);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.ff-success {
  background: #f0fff4;
  border: 1px solid #b7e4c7;
  color: var(--ff-success);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.ff-success-block {
  background: #f0fff4;
  border: 1px solid #b7e4c7;
  color: var(--ff-success);
  padding: 20px;
  border-radius: var(--ff-radius);
  text-align: center;
  font-size: 1rem;
}

/* Écran de remerciement fin de questionnaire */
.ff-sat-thanks-box {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f5e9 100%);
  border: 1px solid #b0c8f0;
  border-radius: var(--ff-radius);
  margin: 20px 0;
}
.ff-sat-thanks-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 12px;
}
.ff-sat-thanks-box h3 {
  font-size: 1.5rem;
  color: var(--ff-blue);
  margin: 0 0 14px;
}
.ff-sat-thanks-box p {
  color: #444;
  line-height: 1.5;
  margin: 0 0 10px;
  font-size: 1rem;
}
.ff-sat-thanks-sub {
  color: #666 !important;
  font-size: 0.92rem !important;
  font-style: italic;
  margin-bottom: 20px !important;
}
.ff-sat-thanks-box .ff-btn {
  margin-top: 12px;
  min-width: 200px;
}
.ff-info-block {
  background: #f0f6ff;
  border: 1px solid #b0c8f0;
  color: var(--ff-blue);
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.ff-emargement-form {
  margin-top: 16px;
}

/* ── Wizard satisfaction ── */
.ff-wizard-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ff-wizard-bar {
  flex: 1;
  height: 6px;
  background: var(--ff-border);
  border-radius: 3px;
  overflow: hidden;
}
.ff-wizard-bar-fill {
  height: 100%;
  background: var(--ff-blue);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 8%;
}
.ff-wizard-count {
  font-size: 0.82rem;
  color: var(--ff-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Onglets verrouillés — feedback visuel */
.ff-tab-locked {
  cursor: not-allowed;
  opacity: 0.6;
}

.ff-wiz-step {
  display: none;
  animation: ffWizFadeIn 0.25s ease;
}
.ff-wiz-step-active {
  display: block;
}
@keyframes ffWizFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ff-wiz-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ff-blue);
  margin-bottom: 16px;
  line-height: 1.4;
}
.ff-wiz-sub-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ff-text);
  margin-bottom: 8px;
}

.ff-wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ff-border);
}
.ff-wiz-prev {
  background: none;
  border: none;
  color: var(--ff-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 0;
}
.ff-wiz-prev:hover {
  color: var(--ff-blue);
}
.ff-wiz-skip {
  color: #bbb;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}
.ff-wiz-skip:hover {
  color: var(--ff-muted);
  text-decoration: underline;
}
.ff-wiz-next {
  margin-top: 12px;
}

.ff-radio-big label {
  padding: 10px 20px;
  border: 2px solid var(--ff-border);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-size: 1rem;
}
.ff-radio-big label:hover {
  border-color: var(--ff-blue);
  background: #f0f6ff;
}
.ff-radio-big input:checked + label,
.ff-radio-big label:has(input:checked) {
  border-color: var(--ff-blue);
  background: #f0f6ff;
  font-weight: 600;
}
