/* Palette alignée sur tiakaora.fr : corail #f7a394 / #f77d67, fond doux #fee8dc, texte #1d1d23 */
.tlms-app {
	max-width: 720px;
	margin: 0 auto 2em;
	/* En-tête du thème (Astra) mesuré à ~138px de haut et chevauchant le
	   contenu de la page sur cette installation (2026-08-24, signalé :
	   bouton "Mes formations" qui "devient blanc au survol" — en réalité
	   l'en-tête du thème, avec un fond clair, qui recouvre partiellement le
	   bouton). Marge généreuse pour toujours passer sous l'en-tête. */
	padding-top: 160px;
	font-family: inherit;
	color: #1d1d23;
}
.tlms-loading, .tlms-empty {
	text-align: center;
	padding: 3em 1em;
	color: #7a7a7a;
}
.tlms-view h2 {
	color: #1d1d23;
	margin-bottom: 0.6em;
}
.tlms-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.2em;
	flex-wrap: wrap;
	gap: 0.5em;
}

/* Boutons */
.tlms-btn {
	display: inline-block;
	appearance: none;
	-webkit-appearance: none;
	background: #f7a394;
	color: #fff;
	border: none;
	outline: none;
	border-radius: 6px;
	padding: 0.7em 1.4em;
	font-size: 1em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}
.tlms-btn:hover { background: #f77d67; }
.tlms-btn:disabled { background: #eee; color: #aaa; cursor: not-allowed; }
.tlms-btn-primary { background: #f77d67; font-weight: 600; }
.tlms-btn-primary:hover { background: #e8654e; }
/* Style "lien" (retour) : même logique de survol (changement de fond) que
   les autres boutons plutôt qu'un simple soulignement — sur certains
   navigateurs (Safari notamment), un bouton sans fond explicite au survol
   peut laisser transparaître le style natif du bouton (chrome système
   grisé/blanchâtre) faute de "appearance:none" ; le fond clair ci-dessous
   garantit un survol visible et cohérent quel que soit le navigateur. */
.tlms-btn-link { background: none; color: #f77d67; padding: 0.4em 0.6em; }
.tlms-btn-link:hover { background: #fee8dc; text-decoration: underline; }
.tlms-btn-bookmark.active { background: #f77d67; }

/* Formulaire de connexion */
.tlms-view-login { max-width: 380px; margin: 3em auto; }
.tlms-form { display: flex; flex-direction: column; gap: 1em; }
.tlms-form label { display: flex; flex-direction: column; gap: 0.4em; font-size: 0.95em; }
.tlms-form input {
	padding: 0.7em 0.9em;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1em;
}
.tlms-form input:focus { outline: none; border-color: #f7a394; }
.tlms-error { color: #c0392b; font-size: 0.9em; }
.tlms-error-view { text-align: center; padding: 2em; }

/* Liste des formations */
.tlms-course-list { display: flex; flex-direction: column; gap: 1em; }
.tlms-course-card {
	background: #fee8dc;
	border-radius: 10px;
	padding: 1.4em;
}
.tlms-course-card h3 { margin: 0 0 0.3em; color: #1d1d23; }
.tlms-course-card p { margin: 0 0 0.8em; color: #555d66; }
.tlms-course-actions { display: flex; flex-wrap: wrap; gap: 0.6em; }
.tlms-progress-bar {
	background: #fff;
	border-radius: 20px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 0.5em;
}
.tlms-progress-fill { background: #f77d67; height: 100%; transition: width 0.2s ease; }
.tlms-progress-label { font-size: 0.85em; color: #7a7a7a; margin-bottom: 1em !important; }

/* Visualiseur de slides */
.tlms-slide-counter { color: #7a7a7a; font-size: 0.9em; }
.tlms-bookmarks-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-bottom: 0.8em;
}
.tlms-bookmarks-label { color: #7a7a7a; font-size: 0.9em; }
.tlms-bookmark-chip {
	appearance: none;
	-webkit-appearance: none;
	background: #fee8dc;
	color: #f77d67;
	border: none;
	outline: none;
	border-radius: 20px;
	min-width: 1.8em;
	padding: 0.2em 0.6em;
	font-size: 0.85em;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.tlms-bookmark-chip:hover { background: #f7a394; color: #fff; }
.tlms-bookmark-chip.current { background: #f77d67; color: #fff; }
.tlms-slide-frame {
	position: relative;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}
.tlms-slide-img { max-width: 100%; display: block; cursor: zoom-in; }

/* Loupe plein écran */
.tlms-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	/* Le bandeau cookies (Complianz) du site utilise déjà z-index:9999 — une
	   valeur bien plus haute garantit que la loupe reste toujours au premier
	   plan, quel que soit l'ordre d'insertion des deux éléments dans le DOM. */
	z-index: 999999;
	display: flex;
	flex-direction: column;
}
.tlms-lightbox-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5em;
	padding: 0.6em 1em;
	flex-shrink: 0;
}
.tlms-lightbox-btn {
	appearance: none;
	-webkit-appearance: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	outline: none;
	border-radius: 6px;
	width: 2.4em;
	height: 2.2em;
	font-size: 1.1em;
	cursor: pointer;
	transition: background 0.15s ease;
}
.tlms-lightbox-btn:hover { background: rgba(255, 255, 255, 0.3); }
.tlms-lightbox-zoom-label { color: #fff; font-size: 0.9em; min-width: 3.5em; text-align: center; }
.tlms-lightbox-scroll {
	flex: 1;
	overflow: auto;
	padding: 1em;
	/* Même curseur loupe qu'avant l'ouverture de la loupe (demande explicite
	   du 2026-08-24) plutôt qu'une main de glisser-déposer générique. */
	cursor: zoom-in;
}
.tlms-lightbox-scroll.dragging { cursor: grabbing; }
.tlms-lightbox-img {
	display: block;
	width: 100%;
	/* Le thème du site applique globalement "img { max-width:100% }" — sans
	   cette réinitialisation, l'agrandissement (width fixé en JS au-delà de
	   100%) reste plafonné à la largeur du conteneur et ne produit aucun
	   dépassement scrollable, donc aucun zoom réel. */
	max-width: none;
	height: auto;
	margin: 0 auto;
	user-select: none;
	-webkit-user-drag: none;
}
.tlms-viewer-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8em;
	margin-top: 1em;
	flex-wrap: wrap;
}
.tlms-view-viewer > .tlms-btn-primary { display: block; width: 100%; margin-top: 1em; text-align: center; }

/* Quiz */
.tlms-quiz-question {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 1em 1.2em;
	margin-bottom: 1em;
}
.tlms-quiz-question legend { font-weight: 600; padding: 0 0.4em; }
.tlms-quiz-answer { display: block; margin: 0.5em 0; cursor: pointer; }
.tlms-quiz-answer input { margin-right: 0.5em; }

/* Résultat */
.tlms-result-score {
	text-align: center;
	padding: 2em;
	border-radius: 10px;
	margin-bottom: 1.5em;
}
.tlms-result-score.passed { background: #fee8dc; }
.tlms-result-score.failed { background: #f5f5f5; }
.tlms-score-value { font-size: 2.5em; font-weight: 700; margin: 0; color: #f77d67; }
.tlms-score-label { margin: 0.3em 0 0; color: #3a3a3a; }
.tlms-view-result .tlms-btn { display: block; width: 100%; text-align: center; margin-bottom: 0.8em; }
.tlms-contact-form { margin-bottom: 0.8em; }
.tlms-contact-form textarea {
	width: 100%;
	padding: 0.7em 0.9em;
	border: 1px solid #ddd;
	border-radius: 6px;
	font: inherit;
	resize: vertical;
	margin-bottom: 0.6em;
}
.tlms-contact-form textarea:focus { outline: none; border-color: #f7a394; }
.tlms-contact-status { display: block; margin-top: 0.5em; font-size: 0.9em; color: #7a7a7a; text-align: center; }
.tlms-contact-sent { text-align: center; color: #2e7d32; font-weight: 600; }
