/* =========================================================
   LiveGalerie - Compte (connexion / inscription)
   ========================================================= */

/* ===== Fond global ===== */
#corps.compte-page {
	background: #e9eff4;
	padding: 20px 0 30px 0;
}

/* ===== Conteneur principal ===== */
.compte-container {
	width: 96%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ===== Hero ===== */
.compte-hero {
	background: linear-gradient(135deg, #f7fafc 0%, #dde7ee 100%);
	border: 1px solid #b8c9d4;
	padding: 20px 24px;
	margin-bottom: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.compte-hero h1 {
	margin: 0 0 8px 0;
	font-size: 2em;
	color: #1d3a4d;
}

.compte-hero p {
	margin: 0;
	color: #405e70;
}

/* ===== Layout ===== */
.compte-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.compte-main {
	flex: 1;
}

.compte-side {
	width: 320px;
}

/* ===== Carte ===== */
.compte-card {
	background: #ffffff;
	border: 1px solid #c4d3dc;
	box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.compte-card-header {
	padding: 16px 18px;
	background: linear-gradient(180deg, #dce6ed 0%, #c8d6e0 100%);
	border-bottom: 1px solid #b4c4cf;
}

.compte-card-header h2 {
	margin: 0;
	font-size: 1.4em;
	color: #1d3a4d;
}

.compte-card-body {
	padding: 18px;
}

/* ===== Formulaire ===== */
.compte-form p {
	margin-bottom: 10px;
}

.compte-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 4px;
	color: #2c4a5d;
}

.compte-form input[type="text"],
.compte-form input[type="password"],
.compte-form select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #9fb3bf;
	background: #f9fcfe;
}

.compte-form input:focus,
.compte-form select:focus {
	outline: none;
	border-color: #2e6a8c;
	box-shadow: 0 0 0 3px rgba(46,106,140,0.15);
}

/* ===== Bouton standard ===== */
.compte-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #d6e2ea;
	border: 1px solid #90a6b3;
	color: #1d3a4d;
	cursor: pointer;
	font-weight: bold;
	text-decoration: none;
}

.compte-btn:hover {
	background: #c5d7e2;
}

/* ===== Messages ===== */
.compte-error {
	background: #fbe3e3;
	border: 1px solid #e3a1a1;
	padding: 10px;
	margin-bottom: 12px;
	color: #7a1f1f;
}

.compte-success {
	background: #e3f5ea;
	border: 1px solid #9fd0b2;
	padding: 14px;
}

/* ===== Sidebar ===== */
.compte-box {
	background: #ffffff;
	border: 1px solid #c4d3dc;
	padding: 14px;
	margin-bottom: 14px;
}

.compte-box h3 {
	margin-top: 0;
	font-size: 1.1em;
	color: #1d3a4d;
}

.compte-box ul {
	margin-left: 18px;
}

/* ===== Étape choix profil ===== */
.compte-step {
	text-align: center;
	margin-bottom: 20px;
}

.compte-choices {
	display: flex;
	gap: 20px;
	justify-content: center;
}

.compte-choice {
	cursor: pointer;
	padding: 20px;
	width: 180px;
	border: 1px solid #c4d3dc;
	background: #fff;
	transition: .2s;
}

.compte-choice:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.compte-choice .icon {
	font-size: 30px;
	margin-bottom: 8px;
}

/* ===== Responsive global ===== */
@media screen and (max-width: 900px) {
	.compte-layout {
		display: block;
	}

	.compte-side {
		width: auto;
		margin-top: 20px;
	}
}

/* =========================================================
   MODE MODAL
   ========================================================= */
.compte-page-modal {
	padding: 6px 0 8px 0 !important;
	background: #eef3f7;
	font-size: 15px;
}

.compte-page-modal .compte-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 8px;
	box-sizing: border-box;
}

.compte-page-modal .compte-hero {
	margin-bottom: 8px;
	padding: 10px 12px;
	box-shadow: none;
}

.compte-page-modal .compte-hero h1 {
	margin: 0 0 4px 0;
	font-size: 1.8em;
	line-height: 1.15;
}

.compte-page-modal .compte-hero p {
	font-size: 1em;
	line-height: 1.25;
}

.compte-page-modal .compte-layout {
	display: block;
}

.compte-page-modal .compte-main {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.compte-page-modal #inscription_form {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.compte-page-modal .compte-side {
	display: none !important;
}

.compte-page-modal .compte-card {
	box-shadow: none;
	border-color: #c7d6df;
}

.compte-page-modal .compte-card-header {
	padding: 10px 12px;
}

.compte-page-modal .compte-card-header h2 {
	font-size: 1.1em;
}

.compte-page-modal .compte-card-body {
	padding: 10px 12px;
}

.compte-page-modal .cadre_gris {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.compte-page-modal fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* ===== Choix de profil modal ===== */
.compte-page-modal .compte-step {
	margin-bottom: 10px;
}

.compte-page-modal .compte-step h3 {
	margin: 0 0 8px 0;
	font-size: 1em;
}

.compte-page-modal .compte-choices {
	gap: 10px;
}

.compte-page-modal .compte-choice {
	width: calc(33.333% - 7px);
	padding: 10px 8px;
}

.compte-page-modal .compte-choice .icon {
	font-size: 24px;
	margin-bottom: 4px;
}

.compte-page-modal .compte-choice h4 {
	margin: 2px 0;
	font-size: 0.98em;
}

.compte-page-modal .compte-choice p {
	margin: 0;
	font-size: 0.82em;
	line-height: 1.15;
}

/* ===== Formulaire modal ===== */
.compte-page-modal .compte-form p {
	margin: 0 0 6px 0;
}

.compte-page-modal .compte-form label {
	margin-bottom: 3px;
	font-size: 1.02em;
	line-height: 1.2;
}

.compte-page-modal .compte-form input[type="text"],
.compte-page-modal .compte-form input[type="password"],
.compte-page-modal .compte-form select {
	box-sizing: border-box;
	padding: 9px 11px;
	font-size: 1.02em;
}

.compte-page-modal .notice {
	font-size: 0.82em;
	line-height: 1.25;
	color: #587085;
}

.compte-page-modal .compte-field {
	display: block;
	margin: 0;
}

.compte-page-modal .compte-field label {
	display: block;
	margin-bottom: 4px;
}

.compte-page-modal .compte-input-url {
	margin-top: 0;
}

/* ===== En-tête profil choisi ===== */
.compte-page-modal .compte-profile-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 8px 0;
	padding: 0 0 8px 0;
	border-bottom: 1px solid #d6e2ea;
}

.compte-page-modal .compte-profile-title {
	font-size: 1.16em;
	font-weight: bold;
	color: #1d3a4d;
	line-height: 1.2;
}

.compte-page-modal .compte-profile-url {
	margin-top: 2px;
	font-size: 0.92em;
	line-height: 1.2;
	color: #587085;
}

.compte-page-modal .compte-back-link {
	font-size: 0.82em;
	white-space: nowrap;
	text-decoration: none;
	color: #2e6a8c;
}

.compte-page-modal .compte-back-link:hover {
	text-decoration: underline;
}

/* ===== Grilles compactes ===== */
.compte-page-modal .compte-grid-2 {
	display: grid;
	grid-template-columns: minmax(0, 500px) minmax(0, 500px);
	gap: 8px 12px;
	align-items: start;
	justify-content: start;
	margin-bottom: 8px;
}

.compte-page-modal .compte-grid-3 {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 320px) minmax(0, 320px);
	gap: 8px 12px;
	align-items: start;
	justify-content: start;
	margin-bottom: 8px;
}

.compte-page-modal .compte-input-url {
	max-width: 530px;
}

.compte-page-modal .compte-grid-align {
	align-items: end;
}

.compte-page-modal .compte-col-full {
	grid-column: 1 / -1;
}

/* ===== Aides et notes ===== */
.compte-page-modal .compte-hint {
	display: block;
	margin-top: 2px;
	font-size: 0.78em;
	line-height: 1.2;
	color: #6b8192;
}

.compte-page-modal .compte-mininote {
	font-size: 0.92em;
	line-height: 1.35;
	color: #52697c;
	background: #f5f8fb;
	border: 1px solid #d6e2ea;
	padding: 7px 9px;
	margin-bottom: 8px;
}

.compte-page-modal .compte-sep {
	margin: 8px 0;
	border: 0;
	border-top: 1px solid #d6e2ea;
}

/* ===== Icônes dans les labels ===== */
.compte-page-modal .compte-label-icon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.compte-page-modal .compte-label-icon .ico {
	font-size: 1.18em;
	line-height: 1;
	opacity: 0.85;
}

/* ===== Champ URL sophistiqué ===== */
.compte-page-modal .compte-input-url {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.compte-page-modal .compte-input-url .url-prefix,
.compte-page-modal .compte-input-url .url-suffix {
	display: inline-flex;
	align-items: center;
	padding: 0 10px;
	border: 1px solid #9fb3bf;
	background: #eef4f8;
	color: #4e6576;
	font-size: 0.95em;
	white-space: nowrap;
}

.compte-page-modal .compte-input-url .url-prefix {
	border-right: 0;
	border-radius: 4px 0 0 4px;
}

.compte-page-modal .compte-input-url .url-suffix {
	border-left: 0;
	border-radius: 0 4px 4px 0;
}

.compte-page-modal .compte-input-url input[type="text"] {
	border-radius: 0;
	border-left: 1px solid #9fb3bf;
	border-right: 1px solid #9fb3bf;
	flex: 1 1 auto;
	min-width: 0;
}

/* ===== Code parrain ===== */
.compte-page-modal .compte-code-parrain {
	max-width: 300px;
	margin-bottom: 10px !important;
}

.compte-page-modal .compte-code-parrain input[type="text"] {
	max-width: 210px;
}

/* ===== Barre d’action du bas ===== */
.compte-page-modal .compte-actionbar {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px 16px;
	align-items: center;
	margin-top: 8px;
}

.compte-page-modal .compte-captcha-box {
	display: inline-grid;
	grid-template-columns: auto auto 90px;
	gap: 6px;
	align-items: center;
}

.compte-page-modal .compte-captcha-box label {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.2;
}

.compte-page-modal .compte-captcha-box img {
	display: block;
	margin: 0;
}

.compte-page-modal .compte-captcha-box input[type="text"] {
	width: 90px;
}

.compte-page-modal .compte-submit-wrap {
	text-align: right;
}

/* ===== Bouton principal ===== */
.compte-page-modal .compte-submit-btn,
.compte-page-modal .compte-form input[type="submit"].button {
	display: inline-block;
	width: auto;
	min-width: 220px;
	padding: 11px 18px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #1d2b3d, #2f4969);
	color: #fff;
	font-weight: 700;
	font-size: 0.95em;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(29, 43, 61, 0.18);
}

.compte-page-modal .compte-submit-btn:hover,
.compte-page-modal .compte-form input[type="submit"].button:hover {
	background: linear-gradient(135deg, #24384f, #35577c);
}

.compte-page-modal .compte-submit-btn[disabled],
.compte-page-modal .compte-form input[type="submit"].button[disabled] {
	background: #b8c3cf;
	color: #eef3f7;
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
}

.compte-choice {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #c4d3dc;
	background: #fff;
	font: inherit;
	color: inherit;
	text-align: center;
}

.compte-choice:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(46,106,140,0.18);
}

.compte-check {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.35;
	min-height: 18px;
}

.compte-check-ok {
	color: #14804a;
}

.compte-check-error {
	color: #c62828;
}

.compte-check-pending {
	color: #6b7280;
}

/* ===== Responsive modal ===== */
@media screen and (max-width: 760px) {
	.compte-page-modal .compte-form label {
		font-size: 0.98em;
	}

	.compte-page-modal .compte-choices {
		display: block;
	}

	.compte-page-modal .compte-choice {
		width: auto;
		margin-bottom: 10px;
	}

	.compte-page-modal .compte-grid-2,
	.compte-page-modal .compte-grid-3,
	.compte-page-modal .compte-actionbar,
	.compte-page-modal .compte-captcha-box {
		grid-template-columns: 1fr;
	}

	.compte-page-modal .compte-col-full {
		grid-column: auto;
	}

	.compte-page-modal .compte-submit-wrap {
		text-align: left;
	}
}