/* =========================
   TINO FORM - STYLE GLOBAL
========================= */

/* =========================
   TINO PREMIUM UI
========================= */

:root {
    --tino-primary: #2c7be5;
    --tino-success: #2fb344;
    --tino-warning: #f59f00;
    --tino-danger: #e03131;
    --tino-bg: #f6f8fb;
    --tino-card: #ffffff;
    --tino-border: #e6e8ec;
}

/* PAGE */
.tino-wrapper {
    background: var(--tino-bg);
    padding: 30px 15px;
}

/* CARD STEP */
.tino-step {
    background: var(--tino-card);
    border: 1px solid var(--tino-border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    animation: fadeIn 0.25s ease;
}

/* ANIMATION STEP */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* INPUTS */
.tino-step input,
.tino-step textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tino-border);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.tino-step input:focus,
.tino-step textarea:focus {
    border-color: var(--tino-primary);
    box-shadow: 0 0 0 3px rgba(44,123,229,0.15);
    outline: none;
}

/* LABELS */
.tino-step p {
    font-weight: 600;
    margin: 10px 0 6px;
    font-size: 13px;
    color: #444;
}

/* =========================
   BADGES STATUT
========================= */

.tino-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

.tino-badge-success {
    background: rgba(47,179,68,0.12);
    color: var(--tino-success);
}

.tino-badge-warning {
    background: rgba(245,159,0,0.12);
    color: var(--tino-warning);
}

.tino-badge-info {
    background: rgba(44,123,229,0.12);
    color: var(--tino-primary);
}

.tino-badge-danger {
    background: rgba(224,49,49,0.12);
    color: var(--tino-danger);
}

/* =========================
   PROGRESSION BAR
========================= */

#tino-progress {
    margin-bottom: 18px;
}

#tino-bar {
    transition: width 0.35s ease;
    background: linear-gradient(90deg, var(--tino-primary), #5c9cff);
}

/* =========================
   BUTTONS
========================= */

#tino-form button {
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#next, #prev {
    background: #f1f3f5;
}

#next:hover, #prev:hover {
    transform: translateY(-1px);
}

#submit {
    background: var(--tino-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(44,123,229,0.25);
}

#submit:hover {
    transform: translateY(-2px);
}

/* =========================
   VALIDATION LIVE STATES
========================= */

.tino-error {
    border-color: var(--tino-danger) !important;
    box-shadow: 0 0 0 3px rgba(224,49,49,0.15) !important;
}

.tino-ok {
    border-color: var(--tino-success) !important;
    box-shadow: 0 0 0 3px rgba(47,179,68,0.15) !important;
}

/* SHAKE ERROR */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.tino-shake {
    animation: shake 0.25s ease;
}

.tino-wrapper {
    max-width: 850px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    color: #222;
}

/* HEADER */
.tino-header {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.tino-header h2 {
    margin-top: 0;
    font-size: 22px;
}

.tino-header a {
    color: #2c7be5;
    text-decoration: none;
}

/* PROGRESSION */
#tino-progress {
    margin-bottom: 20px;
}

#tino-progress strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

#tino-progress > div {
    border-radius: 10px;
    overflow: hidden;
}

/* BAR */
#tino-bar {
    transition: width 0.3s ease;
}

/* STEPS */
.tino-step {
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* TITRES */
.tino-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

/* INPUTS */
.tino-step input[type="text"],
.tino-step input[type="email"],
.tino-step input[type="number"],
.tino-step input[type="file"],
.tino-step textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.2s ease;
}

.tino-step textarea {
    min-height: 90px;
    resize: vertical;
}

.tino-step input:focus,
.tino-step textarea:focus {
    border-color: #2c7be5;
    outline: none;
}

/* FILE INPUT LABEL STYLE */
.tino-step p {
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 13px;
}

/* CHECKBOX */
.tino-step label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* NAVIGATION */
#tino-form button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

#next,
#prev {
    background: #eee;
}

#next:hover,
#prev:hover {
    background: #ddd;
}

#submit {
    background: #2c7be5;
    color: white;
}

#submit:hover {
    background: #1a68d1;
}

/* STEP BUTTONS (optionnel si tu les gardes) */
.tino-step-btn {
    margin-right: 8px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    cursor: pointer;
    font-size: 13px;
}

.tino-step-btn:hover {
    background: #f0f0f0;
}

/* RESPONSIVE */
@media (max-width: 600px) {

    .tino-wrapper {
        padding: 10px;
    }

    .tino-step {
        padding: 15px;
    }

    #tino-form button {
        width: 100%;
        margin-bottom: 10px;
    }
}

.tino-confirmation {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    font-family: Arial;
}

.tino-confirmation h2 {
    color: #2c7be5;
}
.tino-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Mobile : on repasse en colonne */
@media (max-width: 600px) {
    .tino-row {
        grid-template-columns: 1fr;
    }
}
.tino-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.tino-modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    padding: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.tino-modal-body {
    overflow-y: auto;
    max-height: 70vh;
    margin-top: 10px;
}

.tino-inscriptions-closes {
    background: #fff3e0;
    border-left: 4px solid #b45309;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 15px;
    color: #b45309;
    font-weight: 500;
}

/* ── Boutons navigation formulaire ── */
#prev, #next, #submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

#next, #submit {
  background: linear-gradient(135deg, #7C5CBF, #C25FA0, #F0835A);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 191, 0.3);
}

#next:hover, #submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 191, 0.4);
}

#next:active, #submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(124, 92, 191, 0.2);
}

#prev {
  background: #fff;
  color: #7C5CBF;
  border: 1.5px solid rgba(124, 92, 191, 0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#prev:hover {
  background: #f5eeff;
  border-color: #7C5CBF;
  transform: translateY(-2px);
}

/* Masquer les emojis WordPress dans les boutons */
#prev img.emoji,
#next img.emoji,
#submit img.emoji {
  display: none !important;
}

/* Remplacer par du texte propre via pseudo-éléments */
#prev::before  { content: '← Précédent'; }
#next::after   { content: 'Suivant →'; }
#submit::before { content: '✓ Envoyer ma candidature'; }

/* ── Titres des étapes ── */
.tino-step h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece8e0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Masquer les emojis WordPress */
.tino-step h3 img.emoji {
  display: none !important;
}

/* Remplacer par des emojis CSS selon l'étape */
.tino-step[data-step="1"] h3::before { content: '👤'; font-style: normal; }
.tino-step[data-step="2"] h3::before { content: '🎲'; font-style: normal; }
.tino-step[data-step="3"] h3::before { content: '📎'; font-style: normal; }