:root {
	--ahl-primary:      #0A2851;
	--ahl-primary-dark: #1B4479;
	--ahl-light-blue:   #1B4479;
	--ahl-green:        #009E7C;
	--ahl-border:       #e0e6ed;
	--ahl-gray:         #A5A5A5;
	--ahl-radius:       12px;
}

/* ── Bouton déclencheur ── */
.axe-hotline-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ahl-primary);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .1s;
	font-family: inherit;
}
.axe-hotline-open-btn:hover  { background: var(--ahl-primary-dark); transform: translateY(-1px); }
.axe-hotline-open-btn:active { transform: translateY(0); }

/* ── Overlay ── */
.axe-hotline-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 20, 40, .55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.axe-hotline-overlay.is-open { display: flex; }

/* ── Carte modal ── */
.axe-hotline-modal {
	background: #fff;
	border-radius: var(--ahl-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
	width: 100%;
	max-width: 580px;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
	animation: ahlIn .22s ease;
}
@keyframes ahlIn {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* ── En-tête ── */
.axe-hotline-header {
	background: linear-gradient(135deg, var(--ahl-primary) 0%, var(--ahl-light-blue) 100%);
	color: #fff;
	padding: 28px 32px 24px;
	border-radius: var(--ahl-radius) var(--ahl-radius) 0 0;
}
.axe-hotline-header h2 {
	margin: 0 0 6px !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1.3;
}
.axe-hotline-header p {
	margin: 0 !important;
	opacity: .85;
	font-size: .9rem;
	color: #fff !important;
}


/* ── Corps du formulaire ── */
.axe-hotline-body { padding: 28px 32px 32px; }

.ahl-row            { display: flex; gap: 16px; }
.ahl-row .ahl-field { flex: 1 1 0; min-width: 0; }

.ahl-field           { margin-bottom: 18px; }
.ahl-field label     {
	display: block;
	margin-bottom: 6px;
	font-size: .78rem;
	font-weight: 700;
	color: #555;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ahl-field label .req { color: #e74c3c; margin-left: 2px; }

.ahl-field input,
.ahl-field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1.5px solid var(--ahl-border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: .95rem;
	color: #222;
	background: #fafbfc;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	font-family: inherit;
}
.ahl-field input:focus,
.ahl-field textarea:focus {
	border-color: var(--ahl-primary);
	box-shadow: 0 0 0 3px rgba(10, 40, 81, .12);
	background: #fff;
}
.ahl-field input[readonly] { background: #f0f4f8; color: #556; cursor: default; }
.ahl-field textarea        { resize: vertical; min-height: 110px; }

/* ── Erreurs inline ── */
.ahl-error {
	font-size: .78rem;
	color: #e74c3c;
	margin-top: 4px;
	display: none;
}
.ahl-field.has-error input,
.ahl-field.has-error textarea          { border-color: #e74c3c; }
.ahl-field.has-error .ahl-error        { display: block; }
.ahl-field.has-error .ahl-captcha      { border-color: #e74c3c; }

/* ── Bouton capture d'écran ── */
.ahl-screenshot-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1.5px solid var(--ahl-border);
	color: #555;
	padding: 7px 14px;
	border-radius: 7px;
	font-size: .85rem;
	cursor: pointer;
	transition: all .2s;
	margin-bottom: 10px;
	font-family: inherit;
}
.ahl-screenshot-btn:hover {
	border-color: var(--ahl-primary);
	color: var(--ahl-primary);
	background: rgba(10, 40, 81, .05);
}

/* ── Zone drag & drop ── */
.ahl-dropzone {
	border: 2px dashed var(--ahl-border);
	border-radius: 8px;
	padding: 22px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	background: #fafbfc;
	position: relative;
}
.ahl-dropzone.drag-over {
	border-color: var(--ahl-primary);
	background: rgba(10, 40, 81, .05);
}
.ahl-dropzone-icon   { font-size: 30px; margin-bottom: 8px; line-height: 1; }
.ahl-dropzone p      { margin: 0 0 4px !important; font-size: .9rem; color: #555; }
.ahl-dropzone p strong { color: var(--ahl-primary); }
.ahl-dropzone small  { color: var(--ahl-gray); font-size: .78rem; }
.ahl-dropzone input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
}

/* ── Chips fichiers ── */
.ahl-file-list  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ahl-file-chip  {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f0f4f8;
	border-radius: 20px;
	padding: 4px 10px 4px 8px;
	font-size: .8rem;
	color: #333;
	max-width: 220px;
}
.ahl-file-chip span           { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ahl-file-chip button         {
	background: none;
	border: none;
	cursor: pointer;
	color: #999;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}
.ahl-file-chip button:hover   { color: #e74c3c; }

/* ── Captcha ── */
.ahl-captcha {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1.5px solid var(--ahl-border);
	border-radius: 8px;
	padding: 14px 16px;
	background: #fafbfc;
	cursor: pointer;
	user-select: none;
	transition: border-color .2s;
}
.ahl-captcha:hover              { border-color: #bbb; }
.ahl-captcha.is-checked         { border-color: var(--ahl-primary); }

.ahl-captcha-box {
	width: 24px;
	height: 24px;
	border: 2px solid #ccc;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
	flex-shrink: 0;
	background: #fff;
}
.ahl-captcha.is-checked .ahl-captcha-box {
	background: var(--ahl-primary);
	border-color: var(--ahl-primary);
}
.ahl-captcha-box svg           { display: none; }
.ahl-captcha.is-checked .ahl-captcha-box svg { display: block; }

.ahl-captcha-label  { flex: 1; font-size: .9rem; color: #333; margin: 0 14px; }
.ahl-captcha-brand  { text-align: center; flex-shrink: 0; }
.ahl-captcha-brand svg { display: block; margin: 0 auto 2px; }
.ahl-captcha-brand span { display: block; font-size: .58rem; color: #aaa; line-height: 1.3; }
.ahl-captcha-brand strong { font-size: .62rem; color: var(--ahl-primary); }

/* ── Alerte résultat ── */
.ahl-alert {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: .9rem;
	margin-top: 16px;
	display: none;
}
.ahl-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.ahl-alert.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ── Bouton envoyer ── */
.ahl-submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
}
.ahl-submit-row small { color: #aaa; font-size: .8rem; }

.ahl-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--ahl-primary);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .1s;
	font-family: inherit;
}
.ahl-submit-btn:hover:not(:disabled) { background: var(--ahl-primary-dark); }
.ahl-submit-btn:disabled             { opacity: .6; cursor: not-allowed; }

.ahl-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ahlSpin .7s linear infinite;
}
.ahl-submit-btn.loading .ahl-spinner  { display: block; }
.ahl-submit-btn.loading .ahl-btn-text { display: none; }
@keyframes ahlSpin { to { transform: rotate(360deg); } }

/* ── Bouton flottant (affiché partout) ── */
.axe-hotline-fab {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--ahl-primary);
	color: #fff;
	border: none;
	padding: 13px 22px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(10, 40, 81, .45);
	transition: background .2s, transform .15s, box-shadow .2s;
	font-family: inherit;
	white-space: nowrap;
}
.axe-hotline-fab:hover {
	background: var(--ahl-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(10, 40, 81, .5);
}
.axe-hotline-fab:active { transform: translateY(0); }

/* ── Barre capture (modal fermé temporairement) ── */
.ahl-capture-bar {
	display: none;
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999999;
	background: #1a2a3a;
	color: #fff;
	padding: 12px 22px;
	border-radius: 50px;
	font-size: .88rem;
	font-weight: 500;
	align-items: center;
	gap: 10px;
	box-shadow: 0 8px 32px rgba(0,0,0,.4);
	white-space: nowrap;
	animation: ahlIn .2s ease;
}
.ahl-capture-bar .ahl-capture-dot {
	width: 8px;
	height: 8px;
	background: #ff4444;
	border-radius: 50%;
	animation: ahlPulse 1s ease infinite;
}
.ahl-capture-bar button {
	background: rgba(255,255,255,.15);
	border: none;
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: .8rem;
	cursor: pointer;
	margin-left: 4px;
}
.ahl-capture-bar button:hover { background: rgba(255,255,255,.25); }
@keyframes ahlPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: .5; transform: scale(.75); }
}

/* ── Toast succès ── */
.ahl-toast {
	display: none;
	position: fixed;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 999998;
	background: #065f46;
	color: #fff;
	padding: 13px 22px;
	border-radius: 50px;
	font-size: .9rem;
	font-weight: 500;
	align-items: center;
	gap: 8px;
	box-shadow: 0 8px 32px rgba(0,0,0,.25);
	white-space: nowrap;
	animation: ahlIn .25s ease;
}

/* ── Responsive ── */
@media (max-width: 520px) {
	.axe-hotline-header,
	.axe-hotline-body { padding-left: 18px; padding-right: 18px; }
	.ahl-row          { flex-direction: column; gap: 0; }
	.axe-hotline-fab  { bottom: 18px; right: 18px; padding: 11px 18px; font-size: 14px; }
}
