/* ── WP Survey — Frontend CSS ────────────────────────────────────── */

.wps-survey-wrap { max-width:660px; margin:0 auto; font-family:inherit; color:inherit; }
.wps-title        { margin:0 0 5px; font-size:20px; }
.wps-description  { margin:0 0 14px; color:#555; line-height:1.5; font-size:14px; }

/* Boîtes */
.wps-box { border-radius:6px; padding:14px 18px; margin:10px 0; }
.wps-notice    { background:#fff8e1; border-left:4px solid #f9a825; color:#5d4037; }
.wps-completed { background:#e8f5e9; border-left:4px solid #43a047; color:#1b5e20; text-align:center; padding:20px 24px; }
.wps-error     { color:#c62828; font-size:13px; }
.wps-error-msg { color:#c62828; font-size:12px; margin-top:6px; padding:8px 12px; background:#ffebee; border-radius:4px; border-left:3px solid #ef9a9a; }

/* Identification */
.wps-identify-box { background:#fff; border:1px solid #ddd; border-radius:7px; padding:16px 20px; margin-bottom:14px; }
.wps-identify-box h3 { margin:4px 0 3px; font-size:15px; }
.wps-identify-box > p {
	margin: 10px 0 12px 0px;
	padding: 6px 10px;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}
.wps-field        { margin-bottom:10px; }
.wps-field label  { display:block; font-weight:600; font-size:12px; margin-bottom:3px; }
.wps-req          { color:#e53935; margin-left:2px; }

/* Inputs */
.wps-input, .wps-select, .wps-textarea {
	width:100%; padding:8px 11px; border:1.5px solid #ccc; border-radius:5px;
	font-size:14px; font-family:inherit; background:#fff; box-sizing:border-box; transition:border-color .15s;
}
.wps-input:focus, .wps-select:focus, .wps-textarea:focus {
	outline:none; border-color:#4285f4; box-shadow:0 0 0 2px rgba(66,133,244,.12);
}
.wps-textarea { resize:vertical; min-height:80px; }

/* Progression */
.wps-progress-wrap  { margin:10px 0 6px; }
.wps-progress-label { font-size:11px; color:#999; margin-bottom:4px; display:flex; gap:3px; align-items:center; justify-content:flex-end; }
.wps-progress-bar   { height:4px; background:#e9ecef; border-radius:2px; overflow:hidden; }
.wps-progress-fill  { height:100%; background:linear-gradient(90deg,#4285f4,#34a853); border-radius:2px; transition:width .3s ease; }

/* Panel question */
.wps-question-panel { display:none; background:#fff; border:1px solid #e0e0e0; border-radius:7px; padding:16px 18px; margin-bottom:6px; animation:wps-in .18s ease; }
.wps-question-panel.wps-active { display:block; }
@keyframes wps-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }

.wps-question-label { font-size:14px; font-weight:600; margin-bottom:12px; line-height:1.4; color:#1a1a2e; }
.wps-q-num { color:#4285f4; margin-right:4px; }

/* Options radio/checkbox */
.wps-options { display:flex; flex-direction:column; gap:6px; }
.wps-option {
	display:flex; align-items:center; gap:9px; padding:8px 12px;
	border:1.5px solid #ddd; border-radius:6px; cursor:pointer; transition:all .12s;
	font-size:13px; user-select:none;
}
.wps-option:hover { border-color:#4285f4; background:#f0f7ff; }
.wps-option input[type="radio"],
.wps-option input[type="checkbox"] { width:15px; height:15px; cursor:pointer; flex-shrink:0; accent-color:#4285f4; }
.wps-option:has(input:checked) { border-color:#4285f4; background:#e8f0fe; }
.wps-yn { flex-direction:row; }
.wps-yn .wps-option { flex:1; justify-content:center; }

/* ── Échelle : petits boutons pills ─────────────────────────────── */
.wps-scale-wrap { display:flex; flex-direction:column; gap:5px; }
.wps-scale-labels { display:flex; justify-content:space-between; font-size:11px; color:#999; padding:0 2px; }
.wps-scale { display:flex; gap:5px; }
.wps-scale-item { flex:1; max-width:52px; }
.wps-scale-item input { display:none; }
.wps-scale-item span {
	display:flex; align-items:center; justify-content:center;
	width:100%; height:30px;
	border:1.5px solid #ddd; border-radius:5px;
	font-size:13px; font-weight:600; cursor:pointer; transition:all .12s; color:#666;
	background:#fff;
}
.wps-scale-item input:checked + span { background:#4285f4; border-color:#4285f4; color:#fff; }
.wps-scale-item span:hover { border-color:#4285f4; color:#4285f4; background:#f0f7ff; }

/* Erreur question */
.wps-question-error { color:#c62828; font-size:12px; margin-top:5px; padding:4px 9px; background:#ffebee; border-radius:4px; }

/* Navigation */
.wps-nav { display:flex; gap:7px; align-items:center; flex-wrap:wrap; margin-top:10px; padding-top:10px; border-top:1px solid #f0f0f0; }

/* Boutons */
.wps-btn {
	display:inline-flex; align-items:center; gap:4px; padding:8px 16px; border-radius:5px;
	font-size:13px; font-weight:600; cursor:pointer; border:none; background:#4285f4; color:#fff;
	transition:all .14s; text-decoration:none; line-height:1.2;
}
.wps-btn:hover:not(:disabled) { background:#3367d6; transform:translateY(-1px); box-shadow:0 3px 8px rgba(66,133,244,.28); color:#fff; }
.wps-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.wps-btn-secondary { background:#fff; color:#4285f4; border:2px solid #4285f4; }
.wps-btn-secondary:hover:not(:disabled) { background:#e8f0fe; }
.wps-btn-outline { background:transparent; color:#777; border:2px solid #ddd; }
.wps-btn-outline:hover:not(:disabled) { border-color:#aaa; color:#555; background:#f5f5f5; transform:none; box-shadow:none; }
.wps-btn-success { background:#34a853; }
.wps-btn-success:hover:not(:disabled) { background:#2d9249; box-shadow:0 3px 8px rgba(52,168,83,.28); }

/* Récapitulatif */
#wps-summary h3 { margin:0 0 8px; font-size:15px; }
#wps-summary-content {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 7px;
	padding: 4px 12px;
	margin-bottom: 12px;
	line-height: 1.2;
}
.wps-summary-item { display:flex; gap:8px; padding:7px 0; border-bottom:1px solid #f0f0f0; font-size:13px; align-items:baseline; }
.wps-summary-q    { font-weight:600; flex:1; color:#333; font-size:12px; }
.wps-summary-a    { color:#4285f4; flex:1; font-size:13px; }
.wps-summary-edit { color:#4285f4; cursor:pointer; text-decoration:underline; white-space:nowrap; flex-shrink:0; font-size:11px; }

/* Message statut */
#wps-status-msg { margin-top:8px; font-size:13px; }

/* Section header */
.wps-section-header { margin-bottom:10px; padding:8px 12px; background:#e8f0fe; border-radius:6px; }
.wps-section-title  { margin:0 0 2px; color:#1967d2; font-size:14px; }
.wps-section-desc   { margin:0; color:#444; font-size:12px; }

/* Confirmation */
.wps-post-submit-links { margin-top:10px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.wps-email-notice { font-size:12px; color:#555; margin:0; padding:6px 10px; background:#f0f6fb; border-radius:4px; display:block; text-align:center; }

/* Page résultats participant */
.wps-results-participant { max-width:660px; margin:0 auto; }
.wps-rp-header { background:linear-gradient(135deg,#2271b1,#135e96); color:#fff; padding:16px 20px; border-radius:7px; margin-bottom:14px; }
.wps-rp-header .wps-title { color:#fff; margin:0 0 3px; font-size:16px; }
.wps-rp-meta { color:rgba(255,255,255,.85); margin:0; font-size:12px; }
.wps-rp-section { background:#fff; border:1px solid #e0e0e0; border-radius:7px; padding:10px 14px; margin-bottom:8px; line-height:1.2; }
.wps-rp-section-title { margin:0 0 6px; font-size:13px; color:#1d2327; padding-bottom:5px; border-bottom:1px solid #f0f0f0; }
.wps-rp-section-name { font-weight:700; color:#2271b1; font-size:10px; text-transform:uppercase; letter-spacing:.4px; margin:10px 0 4px; }
.wps-rp-answer-item { padding:5px 0; border-bottom:1px solid #f5f5f5; display:flex; gap:10px; align-items:baseline; font-size:12px; }
.wps-rp-answer-item:last-child { border-bottom:none; }
.wps-rp-q { font-weight:600; color:#333; flex:1; font-size:12px; }
.wps-rp-a { color:#2271b1; flex:1; font-weight:500; font-size:13px; }

/* Barres résultats — mêmes interlignes que "mes réponses" */

/* Responsive */
@media (max-width:560px) {
	.wps-question-panel { padding:12px 13px; }
	.wps-yn { flex-direction:column; }
	.wps-nav { flex-direction:column; }
	.wps-btn { width:100%; justify-content:center; }
	.wps-summary-item { flex-direction:column; gap:2px; }
	.wps-scale { flex-wrap:wrap; }
}

/* ── Résultats globaux — même densité que "Mes réponses" ─────────── */
.wps-results-public > h2 { font-size:16px; margin:0 0 4px; }
.wps-results-public > p  { font-size:12px; color:#888; margin:0 0 8px; }

/* Bloc par question = même padding que wps-rp-answer-item */
.wps-result-block { padding:5px 0; border-bottom:1px solid #f5f5f5; }
.wps-result-block:last-child { border-bottom:none; }

/* Label question : inline petit, comme wps-rp-q */
.wps-result-block h4 {
	display:block;
	font-size:11px; font-weight:600; color:#555;
	margin:0 0 3px; line-height:1.3;
}

/* Barres : réduites pour correspondre à la densité des lignes texte */
.wps-bar-list { list-style:none; padding:0; margin:0; }
.wps-bar-item { display:flex; align-items:center; gap:5px; margin-bottom:2px; font-size:11px; line-height:1.2; }
.wps-bar-item:last-child { margin-bottom:0; }
.wps-bar-label { width:100px; flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#444; }
.wps-bar-track { flex:1; height:5px; background:#e9ecef; border-radius:3px; overflow:hidden; }
.wps-bar-fill  { height:100%; background:linear-gradient(90deg,#4285f4,#34a853); border-radius:3px; }
.wps-bar-count { width:52px; text-align:right; color:#aaa; flex-shrink:0; font-size:10px; }

/* Texte libre */
.wps-answers-list    { max-height:100px; overflow-y:auto; margin:2px 0 0; padding-left:12px; }
.wps-answers-list li { padding:1px 0; border-bottom:1px solid #f0f0f0; font-size:11px; line-height:1.3; }
.wps-answers-list li:last-child { border-bottom:none; }

/* "Aucune réponse" */
.wps-result-block > p { margin:0; font-size:11px; color:#aaa; }

/* Titre section + compteur participants */
.wps-rp-section-title { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:0 0 6px; }
.wps-rp-total { font-size:11px; font-weight:400; color:#888; background:#f0f0f0; padding:1px 6px; border-radius:8px; }

/* ── Nouveau participant ─────────────────────────────────────────── */
.wps-new-participant-wrap {
	margin-top:18px;
	padding-top:14px;
	border-top:1px solid rgba(0,0,0,.08);
}
.wps-new-participant-hint {
	font-size:12px; color:#888; margin:0 0 8px;
}

/* ── Séparateurs de section dans le récapitulatif et les résultats ─ */
.wps-summary-section {
	font-size:11px; font-weight:700; text-transform:uppercase;
	letter-spacing:.5px; color:#1967d2;
	background:#e8f0fe; border-left:3px solid #4285f4;
	padding:4px 10px; margin:10px 0 4px;
	border-radius:0 4px 4px 0;
}
.wps-summary-section:first-child { margin-top:2px; }

.wps-result-section-label {
	font-size:11px; font-weight:700; text-transform:uppercase;
	letter-spacing:.5px; color:#1967d2;
	background:#e8f0fe; border-left:3px solid #4285f4;
	padding:4px 10px; margin:10px 0 4px;
	border-radius:0 4px 4px 0;
}
.wps-result-section-label:first-child { margin-top:0; }

/* Bouton danger (annuler le sondage) */
.wps-btn-danger {
	background: transparent;
	color: #c62828;
	border: 1.5px solid #c62828;
	font-size: 12px;
	padding: 7px 13px;
}
.wps-btn-danger:hover:not(:disabled) {
	background: #c62828;
	color: #fff;
	transform: none;
	box-shadow: none;
}

/* Notice de confidentialité */
.wps-privacy-notice {
	margin: 12px 0 0;
	font-size: 11px;
	color: #777;
	line-height: 1.5;
	padding: 8px 10px;
	background: #f8f9fa;
	border-radius: 5px;
	border-left: 3px solid #ccc;
}

/* Surcharge thème Neve — réduction marges ul dans le contenu */
.nv-content-wrap ul { margin: 0 0; }

/* ── Accordéons sections — page résultats participant ────────────── */
details.wps-rp-acc {
	margin-bottom: 4px;
}
details.wps-rp-acc > summary.wps-rp-acc-summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	background: #e8f0fe;
	border: 1px solid #c5d5f5;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #1967d2;
	cursor: pointer;
	user-select: none;
}
details.wps-rp-acc > summary.wps-rp-acc-summary::-webkit-details-marker { display:none; }
details.wps-rp-acc > summary.wps-rp-acc-summary::before {
	content: '▶';
	font-size: 9px;
	transition: transform .2s;
	flex-shrink: 0;
}
details.wps-rp-acc[open] > summary.wps-rp-acc-summary::before { transform: rotate(90deg); }
details.wps-rp-acc[open] > summary.wps-rp-acc-summary {
	border-radius: 5px 5px 0 0;
	border-bottom-color: transparent;
}
details.wps-rp-acc > summary.wps-rp-acc-summary:hover { background: #d8e8ff; }

/* Corps de l'accordéon */
details.wps-rp-acc > .wps-rp-answer-item,
details.wps-rp-acc > .wps-result-block {
	border-left: 1px solid #c5d5f5;
	border-right: 1px solid #c5d5f5;
	padding-left: 12px;
	padding-right: 12px;
}
details.wps-rp-acc > *:last-child {
	border-bottom: 1px solid #c5d5f5;
	border-radius: 0 0 5px 5px;
}

/* Questions sans section : pas d'accordéon, toujours visible */
.wps-rp-acc-body .wps-rp-answer-item { padding-left:12px; padding-right:12px; }

/* ── Sélecteur de langue — dropdown natif details/summary ─────── */
.wps-identify-box { position: static; }
.wps-lang-dropdown {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 8px;
	position: relative;
	z-index: 100;
}
.wps-lang-details { display: block; }
.wps-lang-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 14px 4px 12px;
	background: #fff;
	border: 1.5px solid #ddd;
	border-radius: 22px;
	cursor: pointer;
	color: #444;
	transition: border-color .13s, box-shadow .13s, color .13s;
	line-height: 1.3;
	white-space: nowrap;
	list-style: none;
	user-select: none;
}
.wps-lang-trigger::-webkit-details-marker { display: none; }
.wps-lang-details[open] .wps-lang-trigger,
.wps-lang-trigger:hover {
	border-color: #4285f4;
	box-shadow: 0 2px 8px rgba(66,133,244,.15);
	color: #4285f4;
}
.wps-lang-trigger-flag { font-size: 18px; line-height: 1; }
.wps-lang-trigger-label { font-size: 13px; font-weight: 500; }
.wps-lang-chevron { flex-shrink: 0; transition: transform .2s ease; }
.wps-lang-details[open] .wps-lang-chevron { transform: rotate(180deg); }
.wps-flag-icon { display: none; line-height: 1; }
.wps-flag-icon.wps-flag-active { display: inline; }
.wps-lang-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 175px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 200;
}
.wps-lang-details[open] ~ .wps-lang-menu { display: block; }
.wps-lang-option {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 0px 16px;
	font-size: 13px;
	line-height: 1.8;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	transition: background .1s;
}
a.wps-lang-option:hover { background: #f0f7ff; color: #4285f4; }
.wps-lang-option--active { font-weight: 600; color: #4285f4; background: #f0f7ff; cursor: default; }
.wps-lang-menu li { border-bottom: 1px solid #f0f0f0; }
.wps-lang-menu li:last-child { border-bottom: none; }


.wps-flag-icon { display: none; line-height: 1; }
.wps-flag-icon.wps-flag-active { display: inline; }
.wps-lang-chevron { flex-shrink: 0; transition: transform .2s ease; }
.wps-lang-trigger[aria-expanded="true"] .wps-lang-chevron { transform: rotate(180deg); }
.wps-lang-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 160px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 200;
}
.wps-lang-menu.wps-lang-menu--open { display: block; }
.wps-lang-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0px 16px;
	font-size: 13px;
	line-height: 1.8;
	color: #333;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background .1s;
}
.wps-lang-option:hover { background: #f0f7ff; color: #4285f4; }
.wps-lang-option--active { font-weight: 600; color: #4285f4; background: #f0f7ff; cursor: default; }


/* ── Écran de pause ─────────────────────────────────────────────── */
.wps-paused-screen {
	text-align: center;
	padding: 28px 24px 24px;
	background: #f0faf4;
	border: 1.5px solid #a5d6a7;
}
.wps-paused-icon { font-size: 42px; line-height: 1; margin-bottom: 10px; }
.wps-paused-title { font-size: 18px; margin: 0 0 8px; color: #1b5e20; }
.wps-paused-saved { font-size: 14px; color: #2e7d32; margin: 0 0 20px; font-weight: 500; }
.wps-paused-howto {
	background: #fff;
	border: 1px solid #c8e6c9;
	border-radius: 8px;
	padding: 14px 18px;
	text-align: left;
	margin-bottom: 20px;
}
.wps-paused-howto-label { font-size: 13px; font-weight: 600; color: #333; margin: 0 0 10px; }
.wps-paused-step3 { font-size: 12px; color: #666; margin: 10px 0 0; line-height: 1.5; }
.wps-paused-email-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wps-paused-email {
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px 10px;
	font-size: 13px;
	font-family: monospace;
	color: #333;
	word-break: break-all;
}
.wps-paused-copy-btn {
	font-size: 12px;
	padding: 4px 10px;
	border: 1px solid #4285f4;
	border-radius: 4px;
	background: #fff;
	color: #4285f4;
	cursor: pointer;
	white-space: nowrap;
	transition: background .1s, color .1s;
}
.wps-paused-copy-btn:hover { background: #4285f4; color: #fff; }
.wps-paused-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wps-btn-secondary {
	background: #fff;
	border: 1.5px solid #ccc;
	color: #555;
}
.wps-btn-secondary:hover { border-color: #999; color: #333; }
.wps-field-hint { font-size: 11px; color: #888; font-weight: 400; margin-left: 6px; }
