/* css/tutoriels.css — Tutoriels vidéo et centre d'aide automatisé (tutoriels.html, 2026-11-30). */
.tu-sec { padding: 56px 0 24px; color: #0f172a; }
.tu-sec--aide { background: #f8fafc; padding-bottom: 48px; }
.tu-sous { text-align: center; max-width: 760px; margin: -6px auto 22px; font-size: 16px; color: #1f2937; }
.tu-h3 { font-size: 19px; margin: 26px 0 10px; color: #0f172a; }

/* Vidéos : un lecteur unique (YouTube chargé au clic) + une carte par chapitre */
.tu-lecteur { max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0f172a; box-shadow: 0 6px 20px rgba(15, 23, 42, .18); }
.tu-lecteur iframe { width: 100%; height: 100%; border: 0; display: block; }
.tu-lecteur__facade { width: 100%; height: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: linear-gradient(135deg, #0f172a 0%, #023E8A 55%, #0077B6 100%); padding: 20px; text-align: center; }
.tu-lecteur__play { width: 76px; height: 76px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; padding-left: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .15s; }
.tu-lecteur__facade:hover .tu-lecteur__play, .tu-lecteur__facade:focus-visible .tu-lecteur__play { transform: scale(1.08); }
.tu-lecteur__titre { font-size: 22px; font-weight: 700; max-width: 640px; line-height: 1.25; }
.tu-lecteur__info { font-size: 15px; font-weight: 600; color: #e0f2fe; }
.tu-lecteur__legende { text-align: center; font-size: 14px; color: #1f2937; margin: 10px auto 22px; max-width: 900px; user-select: text; }
.tu-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tu-video { background: #fff; border: 2px solid #64748b; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); display: flex; flex-direction: column; }
.tu-video.actif { border-color: #0077B6; box-shadow: 0 0 0 3px rgba(0, 119, 182, .25); }
.tu-video__jouer { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; cursor: pointer; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #023E8A, #0077B6); }
.tu-video__num { font-size: 26px; font-weight: 800; line-height: 1; }
.tu-video__heure { font-size: 15px; font-weight: 700; background: rgba(15, 23, 42, .35); border-radius: 999px; padding: 4px 10px; }
.tu-video h3 { font-size: 16px; margin: 12px 14px 4px; color: #0f172a; }
.tu-video p { font-size: 14px; margin: 0 14px 12px; color: #1f2937; flex: 1; }
.tu-video__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px 14px; }
.tu-video__btn { border: 2px solid #0077B6; background: #fff; color: #023E8A; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.tu-video__btn:hover { background: #eff6ff; }
.tu-video__pied a { font-size: 14px; font-weight: 600; color: #023E8A; }

/* Recherche */
.tu-recherche { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto 6px; }
.tu-recherche input { flex: 1; font-size: 16px; padding: 12px 14px; border: 2px solid #64748b; border-radius: 10px; color: #0f172a; background: #fff; }
.tu-recherche input:focus { outline: none; border-color: #0077B6; box-shadow: 0 0 0 3px rgba(0, 119, 182, .2); }
.tu-recherche-cpt { font-size: 13px; font-weight: 600; color: #1f2937; min-width: 48px; }

/* Diagnostic guidé */
.tu-diag-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-diag-choix { border: 2px solid #0077B6; background: #fff; color: #023E8A; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; cursor: pointer; text-align: left; }
.tu-diag-choix:hover { background: #eff6ff; }
.tu-diag { margin-top: 14px; background: #fff; border: 2px solid #0077B6; border-radius: 14px; padding: 16px 18px; }
.tu-diag-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tu-diag-tete h3 { margin: 0; font-size: 18px; color: #0f172a; }
.tu-diag-fermer { border: 1px solid #64748b; background: #fff; color: #0f172a; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.tu-diag-fil { font-size: 13px; color: #1f2937; margin: 6px 0 0; }
.tu-diag-q { font-size: 16px; font-weight: 600; margin: 12px 0 10px; }
.tu-diag-reps { display: flex; flex-wrap: wrap; gap: 8px; }
.tu-diag-solution { margin-top: 12px; background: #f0fdf4; border: 1px solid #15803d; border-radius: 10px; padding: 12px 14px; user-select: text; }
.tu-diag-solution b { color: #166534; }
.tu-diag-solution p { margin: 6px 0 0; font-size: 15px; color: #0f172a; }
.tu-diag-encore { font-size: 14px; color: #1f2937; margin: 12px 0 0; }
.tu-diag-recommencer { margin-top: 12px; border: 1px solid #64748b; background: #fff; color: #0f172a; border-radius: 8px; padding: 6px 12px; cursor: pointer; }

/* Conseils et questions */
.tu-conseils { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tu-conseil { background: #fff; border: 1px solid #94a3b8; border-left: 4px solid #0077B6; border-radius: 10px; padding: 12px 14px; }
.tu-conseil b { color: #023E8A; }
.tu-conseil p { margin: 6px 0 0; font-size: 14px; color: #1f2937; }
.tu-faq-item { background: #fff; border: 1px solid #94a3b8; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.tu-faq-item summary { font-weight: 600; cursor: pointer; color: #0f172a; }
.tu-faq-item p { margin: 8px 0 0; font-size: 15px; color: #1f2937; }
[data-cherche][hidden] { display: none !important; }

@media (max-width: 768px) {
    .tu-sec { padding: 40px 0 18px; }
    .tu-recherche { flex-direction: column; align-items: stretch; }
}
@media (max-width: 768px) {
    .tu-lecteur__titre { font-size: 18px; }
    .tu-lecteur__play { width: 60px; height: 60px; font-size: 24px; }
}
@media (max-width: 480px) {
    .tu-video h3 { font-size: 15px; }
    .tu-lecteur { border-radius: 10px; }
    .tu-lecteur__titre { font-size: 15px; }
    .tu-lecteur__info { font-size: 13px; }
}
