.grc-form-wrapper {
	max-width: 640px;
	margin: 0 auto;
}

.grc-form .grc-field {
	margin-bottom: 16px;
}

.grc-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #222;
}

.grc-form .required {
	color: #b32d2e;
}

.grc-form input[type="text"],
.grc-form input[type="email"],
.grc-form input[type="tel"],
.grc-form select,
.grc-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.grc-form input[type="text"]:focus,
.grc-form input[type="email"]:focus,
.grc-form input[type="tel"]:focus,
.grc-form textarea:focus,
.grc-form select:focus {
	outline: 2px solid #2D6AB0;
	outline-offset: 1px;
	border-color: #2D6AB0;
}

.grc-guest-fields {
	background: #f5f7fa;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
}

.grc-phone-field {
	display: flex;
	gap: 8px;
}

.grc-phone-field .grc-phone-country {
	flex: 0 0 auto;
	max-width: 160px;
	padding: 10px 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.grc-phone-field .grc-phone-number {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
}

.grc-hint {
	font-size: 13px;
	color: #555;
	margin-bottom: 12px;
}

.grc-consent label {
	font-weight: 400;
	font-size: 13px;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.grc-btn-submit {
	background: #2D6AB0;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.grc-btn-submit:hover {
	background: #24568f;
}

.grc-btn-submit:disabled {
	background: #999;
	cursor: not-allowed;
}

.grc-form-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
}

.grc-form-message--success {
	background: #eaf3e6;
	color: #2f4a1f;
	border: 1px solid #587526;
}

.grc-form-message--error {
	background: #fbeaea;
	color: #7a1f1f;
	border: 1px solid #b32d2e;
}

.grc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #2D6AB0;
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
	border-radius: 0 0 6px 0;
	font-size: 14px;
	text-decoration: none;
}

.grc-skip-link:focus {
	left: 0;
}

#grc-signalements-proches {
	background: #fff3cd;
	border: 1px solid #ffe69c;
	color: #664d03;
	border-radius: 8px;
	padding: 12px 14px;
	margin-top: 10px;
	font-size: 13px;
}

#grc-signalements-proches ul {
	margin: 8px 0 8px 20px;
	list-style: disc;
}

.grc-demandes-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.grc-liste-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.grc-liste-toolbar h3 {
	margin: 0;
}

.grc-liste-controls {
	display: flex;
	gap: 8px;
	align-items: center;
}

.grc-liste-controls select {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
}

.grc-vue-toggle {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}

.grc-vue-toggle:hover {
	border-color: #2D6AB0;
}

.grc-liste-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
	font-size: 13px;
}

.grc-liste-table th {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 2px solid #eee;
	color: #555;
	font-weight: 600;
}

.grc-liste-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.grc-liste-table tr:hover td {
	background: #fafafa;
}

.grc-demande-card {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 16px;
	background: #fff;
}

.grc-demande-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.grc-demande-card h3 {
	margin: 8px 0;
	font-size: 16px;
}

.grc-demande-date,
.grc-demande-pj {
	font-size: 12px;
	color: #777;
	margin: 4px 0 0;
}

.grc-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
}

.grc-badge--nouveau { background: #2D6AB0; }
.grc-badge--en_cours,
.grc-badge--assigne { background: #DEA128; color: #4a3200; }
.grc-badge--resolu { background: #587526; }
.grc-badge--cloture { background: #666; }
.grc-badge--reouvert { background: #b32d2e; }
.grc-badge--en_attente { background: #2D6AB0; }
.grc-badge--valide { background: #587526; }
.grc-badge--rejete { background: #b32d2e; }
.grc-badge--complement_requis { background: #DEA128; color: #4a3200; }

.grc-mes-demandes-wrapper {
	max-width: 640px;
	margin: 0 auto;
}

.grc-auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 2px solid #eee;
}

.grc-auth-tab {
	background: none;
	border: none;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
}

.grc-auth-tab--active {
	color: #2D6AB0;
	border-bottom-color: #2D6AB0;
}

.grc-citoyen-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.grc-citoyen-header span {
	font-weight: 600;
}

.grc-citoyen-header .grc-btn-link {
	font-weight: 400;
	margin-left: 12px;
}

.grc-citoyen-profil {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

#grc-global-bar {
	background: #2D6AB0;
	color: #fff;
	position: relative;
	z-index: 9999;
	font-size: 13px;
}

.grc-global-bar-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 20px;
	max-width: 1100px;
	margin: 0 auto;
}

#grc-global-bar .grc-btn-link {
	color: #fff;
	text-decoration: underline;
}

.grc-global-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.grc-global-nav a {
	color: #fff;
	text-decoration: none;
	opacity: 0.9;
	font-size: 13px;
	white-space: nowrap;
}

.grc-global-nav a:hover {
	text-decoration: underline;
	opacity: 1;
}

.grc-global-nav a.grc-global-nav-active {
	opacity: 1;
	font-weight: 600;
	text-decoration: underline;
}

.grc-global-bar-spacer {
	flex: 1;
}

@media (max-width: 780px) {
	.grc-global-bar-inner {
		flex-wrap: wrap;
	}
	.grc-global-nav {
		order: 3;
		width: 100%;
		flex-wrap: wrap;
		gap: 10px;
	}
	.grc-global-bar-spacer {
		display: none;
	}
}

.grc-global-profil-panel {
	background: #fff;
	color: #222;
	max-width: 500px;
	margin: 0 auto;
	padding: 16px 20px;
	border-bottom: 1px solid #ddd;
}

.grc-global-profil-panel:focus-visible {
	outline: 2px solid #2D6AB0;
	outline-offset: -2px;
}

#grc-2fa-section h4 {
	margin: 0 0 6px;
	font-size: 14px;
}

#grc-2fa-choix .button {
	margin-right: 8px;
}

#grc-2fa-totp-setup {
	background: #f5f7fa;
	border-radius: 8px;
	padding: 12px 14px;
}

#grc-2fa-qrcode {
	display: inline-block;
	background: #fff;
	padding: 8px;
	border-radius: 6px;
}

#grc-login-2fa-field {
	background: #eef4fa;
	border-radius: 8px;
	padding: 10px 12px;
}

.grc-2fa-prompt-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.grc-2fa-prompt-box {
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	max-width: 420px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.grc-2fa-prompt-box h3 {
	margin: 0 0 10px;
	font-size: 17px;
}

.grc-2fa-prompt-box p {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.grc-2fa-prompt-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.grc-demarche-toggle-thread {
	margin-top: 10px;
}

.grc-demarche-thread {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}

.grc-thread-message {
	background: #f5f5f5;
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 8px;
	font-size: 13px;
}

.grc-thread-message--agent {
	background: #eaf1f8;
}

.grc-thread-message p {
	margin: 4px 0 0;
}

.grc-thread-reply {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.grc-message-attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0;
}

.grc-attachment-chip {
	display: inline-block;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 14px;
	padding: 3px 10px;
	font-size: 12px;
	text-decoration: none;
	color: #2D6AB0;
}

input[type="file"].grc-thread-reply-files {
	margin-bottom: 6px;
	font-size: 12px;
}

.grc-btn-link {
	background: none;
	border: none;
	color: #2D6AB0;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	padding: 0;
}

.grc-connected-banner {
	background: #eaf1f8;
	border: 1px solid #2D6AB0;
	color: #1a3f66;
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.grc-creneaux-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.grc-creneau-btn {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
}

.grc-creneau-btn:hover {
	border-color: #2D6AB0;
}

.grc-creneau-btn--selected {
	background: #2D6AB0;
	color: #fff;
	border-color: #2D6AB0;
}

.grc-duree-toggle {
	display: flex;
	gap: 8px;
}

.grc-duree-btn {
	flex: 1;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 10px;
	font-size: 14px;
	cursor: pointer;
}

.grc-duree-btn--active {
	background: #2D6AB0;
	color: #fff;
	border-color: #2D6AB0;
}

.grc-calendar-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #555;
	margin-bottom: 10px;
}

.grc-legend-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin-right: 4px;
}

.grc-legend-dot--available { background: #587526; }
.grc-legend-dot--few { background: #DEA128; }
.grc-legend-dot--full { background: #ccc; }

.grc-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 10px;
	font-weight: 600;
}

.grc-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	color: #888;
	margin-bottom: 4px;
}

.grc-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.grc-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 13px;
	cursor: default;
}

button.grc-cal-day {
	border: none;
	background: none;
	font-family: inherit;
	width: 100%;
	padding: 0;
}

button.grc-cal-day:focus-visible {
	outline: 2px solid #2D6AB0;
	outline-offset: 2px;
}

.grc-cal-day--empty {
	visibility: hidden;
}

.grc-cal-day--none {
	color: #ccc;
}

.grc-cal-day--full {
	background: #f0f0f0;
	color: #aaa;
	text-decoration: line-through;
}

.grc-cal-day--few {
	background: #fbeecb;
	color: #8a6817;
	cursor: pointer;
	font-weight: 600;
}

.grc-cal-day--available {
	background: #e6efe0;
	color: #3d5a29;
	cursor: pointer;
	font-weight: 600;
}

.grc-cal-day--selected {
	outline: 2px solid #2D6AB0;
	outline-offset: 1px;
}

.grc-satisfaction-form {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #ddd;
}

.grc-stars {
	display: flex;
	gap: 4px;
	margin: 8px 0;
}

.grc-star {
	background: none;
	border: none;
	font-size: 24px;
	color: #ccc;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.grc-star--active {
	color: #DEA128;
}

.grc-satisfaction-comment {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
	box-sizing: border-box;
	margin-bottom: 8px;
}
