/*
 * Diagnostic PMx en 4 parties (refonte du 2026-10-18) — formulaire maison
 * (class-questionnaire.php), plus de Fluent Forms. Reprend l'habillage de la
 * refonte Claude Design (cartes, bandeau sous l'en-tête du site).
 */

/* --- Bandeau des étapes --- */
.lmt-quiz-header{
	position: relative;
	z-index: 1;
	background: rgba(251,249,245,.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--lmt-line);
	/* Aligné sur le contenu de l'en-tête du site (1200 px, marges 32 px). */
	padding: 14px max(32px, calc((100% - 1136px) / 2));
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.lmt-quiz-steps{ display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.lmt-quiz-steps li{
	margin: 0;
	display: flex; align-items: center; gap: 8px;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--lmt-line);
	background: var(--lmt-white);
	color: var(--lmt-text);
	font-size: 13.5px;
}
.lmt-quiz-steps li > a{ display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.lmt-quiz-steps li > a:hover{ color: var(--lmt-primary); }
.lmt-quiz-step-num{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 26px; height: 26px; padding: 0 6px;
	background: var(--lmt-paper-warm);
	color: var(--lmt-primary);
	font-weight: 700; font-size: 12.5px;
	white-space: nowrap;
}
.lmt-quiz-steps li.is-current{ border-color: var(--lmt-primary); color: var(--lmt-primary); font-weight: 600; }
.lmt-quiz-steps li.is-current .lmt-quiz-step-num{ background: var(--lmt-primary); color: var(--lmt-paper); }
.lmt-quiz-steps li.is-done .lmt-quiz-step-num{ background: var(--lmt-accent); color: var(--lmt-primary); }
.lmt-quiz-header-link{ flex-shrink: 0; font-size: 14px; }

.lmt-quiz-container{ max-width: 880px; margin: 0 auto; padding: 0 32px 88px; }

.lmt-quiz-intro{ padding: 48px 0 32px; text-align: left; }
.lmt-quiz-intro h1{ text-align: left; font-size: clamp(28px, 3.2vw, 40px); }
.lmt-quiz-intro .lmt-chapo{ max-width: 680px; }

/* --- Cartes --- */
.lmt-quiz-card{
	background: var(--lmt-white);
	border: 1px solid var(--lmt-line);
	margin-bottom: 24px;
}
.lmt-quiz-card-head{
	background: var(--lmt-paper-warm);
	border-bottom: 1px solid var(--lmt-line);
	padding: 16px 28px;
}
.lmt-quiz-card-head h2{ margin: 0; font-size: 22px; text-align: left; }
.lmt-quiz-card-body{ padding: 4px 28px 6px; }

/* --- Champs (partie 1, quiz) --- */
.lmt-q-field{ border: none; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--lmt-line-light); min-width: 0; }
.lmt-q-field:last-child{ border-bottom: none; }
.lmt-q-field[hidden]{ display: none; }
.lmt-q-label{
	display: block;
	font-family: "Manrope", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--lmt-text-body);
	margin: 0 0 12px;
	padding: 0;
}
.lmt-q-hint{ font-weight: 400; font-size: 13px; color: var(--lmt-text-tertiary); margin-left: 6px; }
.lmt-q-num{
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; margin-right: 10px;
	background: var(--lmt-paper-warm); color: var(--lmt-primary);
	font-size: 12px; font-weight: 700;
}
.lmt-q-field input[type="text"]{
	width: 100%; max-width: 420px;
	border: 1px solid var(--lmt-line-field);
	border-radius: 0;
	background: var(--lmt-white);
	padding: 12px 16px;
	font-size: 15px;
	font-family: "Manrope", sans-serif;
}
.lmt-q-field input[type="text"]:focus{ border-color: var(--lmt-primary); outline: none; }
.lmt-q-field.has-error .lmt-q-label{ color: var(--lmt-accent-dark); }
.lmt-q-field.has-error input[type="text"]{ border-color: var(--lmt-accent); }

.lmt-q-choices{ display: flex; flex-wrap: wrap; gap: 8px; }
.lmt-q-choices-stack{ flex-direction: column; }
.lmt-q-choice{ position: relative; cursor: pointer; margin: 0; }
.lmt-q-choice input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.lmt-q-choice span{
	display: block;
	padding: 10px 16px;
	border: 1px solid var(--lmt-line-field);
	background: var(--lmt-white);
	font-size: 14.5px;
	color: var(--lmt-text-body);
	transition: border-color .15s ease-out, background .15s ease-out;
}
.lmt-q-choice:hover span{ border-color: var(--lmt-primary); }
.lmt-q-choice input:checked + span{ background: var(--lmt-primary); border-color: var(--lmt-primary); color: var(--lmt-paper); }
.lmt-q-choice input:focus-visible + span{ outline: 2px solid var(--lmt-accent); outline-offset: 2px; }

/* --- Notes de 1 à 5 (parties 2 et 3) --- */
.lmt-q-rating{
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--lmt-line-light);
}
.lmt-q-rating:last-child{ border-bottom: none; }
.lmt-q-rating-label{ margin: 0; font-size: 15.5px; color: var(--lmt-text-body); font-weight: 500; }
.lmt-q-rating-scale{ display: flex; align-items: center; gap: 6px; }
.lmt-q-rating-end{ font-size: 12px; color: var(--lmt-text-tertiary); width: 72px; line-height: 1.25; }
.lmt-q-rating-end:first-child{ text-align: right; }
.lmt-q-rating-dot{ position: relative; cursor: pointer; margin: 0; }
.lmt-q-rating-dot input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.lmt-q-rating-dot span{
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid var(--lmt-line-field);
	background: var(--lmt-white);
	font-weight: 600; font-size: 14px;
	color: var(--lmt-text);
	transition: border-color .15s ease-out, background .15s ease-out;
}
.lmt-q-rating-dot:hover span{ border-color: var(--lmt-primary); color: var(--lmt-primary); }
.lmt-q-rating-dot input:checked + span{ background: var(--lmt-primary); border-color: var(--lmt-primary); color: var(--lmt-paper); }
.lmt-q-rating-dot input:focus-visible + span{ outline: 2px solid var(--lmt-accent); outline-offset: 2px; }

@media (max-width: 720px){
	.lmt-quiz-header{ padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
	.lmt-quiz-step-label{ display: none; }
	.lmt-quiz-steps li.is-current .lmt-quiz-step-label{ display: inline; }
	.lmt-quiz-container{ padding: 0 16px 64px; }
	.lmt-quiz-intro{ padding: 32px 0 24px; }
	.lmt-quiz-card-head, .lmt-quiz-card-body{ padding-left: 16px; padding-right: 16px; }
	.lmt-q-rating{ grid-template-columns: 1fr; }
	.lmt-q-rating-scale{ justify-content: space-between; flex-wrap: wrap; }
	.lmt-q-rating-dot span{ width: 44px; height: 44px; }
	.lmt-q-rating-end{ width: auto; flex-basis: 100%; order: 2; text-align: left !important; }
	.lmt-q-rating-end:last-child{ text-align: right !important; margin-top: -18px; }
}

/* --- Pied de formulaire --- */
.lmt-quiz-footer{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--lmt-line);
	flex-wrap: wrap;
}
.lmt-quiz-footer-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.lmt-questionnaire button.lmt-cta, .lmt-questionnaire button.lmt-cta-secondary{ cursor: pointer; font-family: "Manrope", sans-serif; }
@media (max-width: 720px){
	.lmt-quiz-footer{ flex-direction: column-reverse; align-items: stretch; }
	.lmt-quiz-footer-actions{ flex-direction: column-reverse; }
	.lmt-quiz-footer-actions .lmt-cta, .lmt-quiz-footer-actions .lmt-cta-secondary{ justify-content: center; }
}

/* Bouton de test (jamais en prod). */
.lmt-random-fill-btn{ margin-top: 16px; }

/* Reprise d'un diagnostic commencé sans compte (2026-11-01). */
.lmt-q-resume-banner{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 18px 22px; background: #EEF3F8; border-left: 3px solid var(--lmt-primary); }
.lmt-q-resume-banner[hidden]{ display: none; }
.lmt-q-resume-banner p{ margin: 0; }
.lmt-q-resume-banner-actions{ display: flex; align-items: center; gap: 16px; }
.lmt-q-resume-banner button{ background: none; border: 0; padding: 0; cursor: pointer; }
.lmt-q-resume-box{ margin: 32px 0 0; padding: 22px 24px; border: 1px dashed var(--lmt-line-dashed); background: var(--lmt-white); }
.lmt-q-resume-box > p{ margin: 0 0 12px; }
.lmt-q-resume-title{ font-weight: 700; color: var(--lmt-primary); }
.lmt-q-resume-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.lmt-q-resume-row input[type="email"]{ flex: 1 1 240px; min-width: 0; margin: 0; }
.lmt-q-choice-unknown span{ font-style: italic; color: var(--lmt-text); }
/* Affirmation sans réponse à l'envoi de la partie 2 (2026-11-02). */
.lmt-q-rating.is-missing{ box-shadow: inset 3px 0 0 #B3261E; padding-left: 12px; }
.lmt-q-rating.is-missing .lmt-q-rating-label{ color: #B3261E; }
.lmt-q-discover{ text-align: center; margin: 18px 0 0; }
