/* ── AAPPMA Enquête — Formulaire (style premium) ─────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--ae-green:   #1b3d28;
	--ae-green2:  #2d6a44;
	--ae-gold:    #e8b84b;
	--ae-gold-lt: #fdf3d7;
	--ae-bg:      #f8faf8;
	--ae-white:   #ffffff;
	--ae-border:  #d4e4da;
	--ae-text:    #1a1a1a;
	--ae-muted:   #6b7280;
	--ae-red:     #dc2626;
}

.ae-wrap {
	max-width: 700px;
	margin: 0 auto;
	font-family: 'Inter', Arial, sans-serif;
	color: var(--ae-text);
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.ae-header {
	background: var(--ae-green);
	border-radius: 16px;
	padding: 32px 28px 24px;
	text-align: center;
	margin-bottom: 28px;
	position: relative;
	overflow: hidden;
}
.ae-header::before {
	content: '';
	position: absolute;
	top: -40px; right: -40px;
	width: 160px; height: 160px;
	border-radius: 50%;
	background: rgba(232,184,75,.12);
}
.ae-header::after {
	content: '';
	position: absolute;
	bottom: -30px; left: -30px;
	width: 120px; height: 120px;
	border-radius: 50%;
	background: rgba(232,184,75,.08);
}
.ae-title,
.ae-header .ae-title,
.ae-header h2,
.ae-header h2.ae-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 8px;
	letter-spacing: -.01em;
	position: relative; z-index: 1;
}
.ae-desc {
	color: rgba(255,255,255,.75);
	font-size: .88rem;
	margin: 0 0 14px;
	position: relative; z-index: 1;
}
.ae-anon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: .75rem;
	color: rgba(255,255,255,.9);
	font-weight: 500;
	position: relative; z-index: 1;
}

/* ── Intro ───────────────────────────────────────────────────────────────── */
.ae-intro {
	font-size: .85rem;
	font-weight: 500;
	color: var(--ae-muted);
	margin-bottom: 20px;
	padding: 10px 14px;
	background: var(--ae-gold-lt);
	border-left: 3px solid var(--ae-gold);
	border-radius: 0 8px 8px 0;
}
.ae-intro span { font-weight: 700; color: var(--ae-green); }

/* ── Bloc question ───────────────────────────────────────────────────────── */
.ae-question {
	background: var(--ae-white);
	border: 1.5px solid var(--ae-border);
	border-radius: 12px;
	padding: 20px 20px 16px;
	margin-bottom: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.ae-question:focus-within {
	border-color: var(--ae-green2);
	box-shadow: 0 0 0 3px rgba(45,106,68,.08);
}
.ae-question.has-error { border-color: var(--ae-red); }

.ae-q-label {
	font-weight: 700;
	font-size: .95rem;
	margin-bottom: 16px;
	color: var(--ae-text);
}
.ae-req { color: var(--ae-gold); margin-left: 3px; }

/* ── Score 1-10 ──────────────────────────────────────────────────────────── */
.ae-score10-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}
.ae-score10-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.ae-score10-num {
	font-size: .7rem;
	font-weight: 600;
	color: var(--ae-muted);
	min-width: 36px;
	text-align: center;
}
.ae-score10-btn {
	width: 36px;
	height: 36px;
	border: 2px solid var(--ae-border);
	border-radius: 8px;
	background: var(--ae-bg);
	cursor: pointer;
	padding: 0;
	font-size: 0;
	transition: border-color .15s, background .15s, transform .1s;
	flex-shrink: 0;
}
.ae-score10-btn:hover {
	border-color: var(--ae-green2);
	background: #e8f5ee;
	transform: scale(1.1);
}
.ae-score10-btn.active {
	background: var(--ae-green);
	border-color: var(--ae-green);
	box-shadow: 0 2px 8px rgba(27,61,40,.35);
	transform: scale(1.1);
}
.ae-question.has-error .ae-score10-btn { border-color: #fca5a5; }

/* ── Encadré remarques ───────────────────────────────────────────────────── */
.ae-score10-rem-block {
	background: var(--ae-bg);
	border: 1.5px solid var(--ae-border);
	border-radius: 8px;
	padding: 10px 12px 8px;
	margin-top: 12px;
}
.ae-score10-rem-label {
	font-weight: 600;
	font-size: .75rem;
	color: var(--ae-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	display: block;
	margin-bottom: 4px;
}
.ae-score10-remarques {
	width: 100%;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: .88rem;
	color: var(--ae-text);
	resize: none;
	box-sizing: border-box;
	background: transparent;
	min-height: 52px;
}

/* ── Textarea finale ─────────────────────────────────────────────────────── */
.ae-textarea-block {
	background: var(--ae-bg);
	border: 1.5px solid var(--ae-border);
	border-radius: 8px;
	padding: 10px 12px 8px;
	margin-top: 4px;
}
.ae-textarea-block-label {
	font-weight: 600;
	font-size: .75rem;
	color: var(--ae-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	display: block;
	margin-bottom: 4px;
}
.ae-textarea {
	width: 100%;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: .88rem;
	color: var(--ae-text);
	resize: none;
	box-sizing: border-box;
	background: transparent;
	min-height: 80px;
}

/* ── Radio ───────────────────────────────────────────────────────────────── */
.ae-radio-group { display: flex; flex-direction: column; gap: 8px; }
.ae-radio-label {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border: 1.5px solid var(--ae-border);
	border-radius: 8px;
	cursor: pointer;
	font-size: .9rem;
	transition: border-color .15s, background .15s;
}
.ae-radio-label:hover { border-color: var(--ae-green2); background: #f0fdf4; }
.ae-radio-label input[type="radio"] { accent-color: var(--ae-green); }
.ae-radio-label.selected { border-color: var(--ae-green); background: #f0fdf4; font-weight: 600; }

/* ── Input texte ─────────────────────────────────────────────────────────── */
.ae-input {
	width: 100%;
	border: 1.5px solid var(--ae-border);
	border-radius: 8px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: .9rem;
	box-sizing: border-box;
	background: var(--ae-bg);
	transition: border-color .15s;
}
.ae-input:focus { outline: none; border-color: var(--ae-green2); }

/* ── Erreurs ─────────────────────────────────────────────────────────────── */
.ae-q-error { margin-top: 8px; color: var(--ae-red); font-size: .8rem; font-weight: 600; }

/* ── Bouton submit ───────────────────────────────────────────────────────── */
.ae-submit-row { text-align: center; padding: 24px 0 40px; }
.ae-submit {
	background: linear-gradient(135deg, var(--ae-green2) 0%, var(--ae-green) 100%);
	color: var(--ae-gold);
	border: none;
	border-radius: 12px;
	padding: 15px 48px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	letter-spacing: .03em;
	box-shadow: 0 4px 16px rgba(27,61,40,.3);
	transition: opacity .2s, transform .15s, box-shadow .2s;
}
.ae-submit:hover  { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,61,40,.4); }
.ae-submit:active { opacity: .8; transform: translateY(0); }
.ae-submit:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ── Messages ────────────────────────────────────────────────────────────── */
.ae-msg {
	text-align: center;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: .88rem;
	margin: 0 0 16px;
	font-weight: 500;
}
.ae-msg.error { background: #fef2f2; color: var(--ae-red); border: 1px solid #fca5a5; }

/* ── Confirmation ────────────────────────────────────────────────────────── */
.ae-confirm {
	text-align: center;
	padding: 60px 20px;
	background: var(--ae-white);
	border: 1.5px solid var(--ae-border);
	border-radius: 16px;
}
.ae-confirm-icon  { font-size: 3.5rem; margin-bottom: 16px; }
.ae-confirm-title { font-size: 1.5rem; font-weight: 800; color: var(--ae-green); margin-bottom: 8px; }
.ae-confirm-sub   { color: var(--ae-muted); font-size: .95rem; }

/* ── Enquête fermée ──────────────────────────────────────────────────────── */
.ae-closed {
	text-align: center;
	padding: 60px 20px;
	border: 1.5px solid var(--ae-border);
	border-radius: 16px;
	background: var(--ae-white);
}
.ae-closed-icon  { font-size: 2.5rem; margin-bottom: 12px; }
.ae-closed-title { font-weight: 700; font-size: 1.05rem; color: var(--ae-text); margin-bottom: 6px; }
.ae-closed-sub   { color: var(--ae-muted); font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
	.ae-header { padding: 24px 18px 20px; border-radius: 12px; }
	.ae-title  { font-size: 1.1rem; }
	.ae-question { padding: 16px 14px 12px; }
	.ae-score10-btn { width: 30px; height: 30px; border-radius: 6px; }
	.ae-score10-num { min-width: 30px; font-size: .65rem; }
	.ae-score10-btns { gap: 5px; }
	.ae-submit { padding: 14px 32px; }
}
