/*
 * Retab.fr - pages d'inscription et de connexion (responsables d'etablissement et
 * professionnels du reseau).
 * Copyright Geoffroy COUHET - 2026
 *
 * Feuille chargee APRES bootstrap.css, select2.css, theme.css, skins/default.css et
 * theme-custom.css. Tout est prefixe "rtb-" et borne a .rtb-auth / body.rtb-auth-body :
 * aucune regle ne touche le reste du site.
 *
 * Unites en px uniquement : le theme fixe html{font-size:10px}, donc 1rem = 10px.
 * Les champs de saisie sont a 16px : en dessous, iOS zoome tout seul a la mise au point.
 */

/* ---------------------------------------------------------------- Fond et base */
html.rtb-auth-html,
body.rtb-auth-body {
	background: #F3F6FA;
}

body.rtb-auth-body {
	color: #14213D;
	font-family: 'Rubik', Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.45;
}

.rtb-auth {
	min-height: 100vh;
	color: #14213D;
}

.rtb-auth p,
.rtb-auth h1,
.rtb-auth h2,
.rtb-auth ul,
.rtb-auth ol {
	margin: 0;
	padding: 0;
}

.rtb-auth svg {
	flex: none;
	display: block;
}

.rtb-auth a:focus-visible,
.rtb-auth button:focus-visible {
	box-shadow: 0 0 0 3px rgba(49, 85, 139, 0.4);
}

.rtb-req {
	color: #B42318;
}

/* ---------------------------------------------------------------- En-tete */
.rtb-top {
	background: #FFFFFF;
	border-bottom: 1px solid #DDE3EC;
}

.rtb-top__in {
	max-width: 1220px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
}

.rtb-auth a.rtb-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #14213D;
	text-decoration: none;
	border-radius: 8px;
}

.rtb-brand img {
	width: 46px;
	height: 46px;
	flex: none;
}

.rtb-brand__txt {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.rtb-brand__nom {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rtb-brand__nom span {
	color: #31558B;
}

.rtb-brand__sous {
	font-size: 12px;
	letter-spacing: 0.16em;
	color: #4A5567;
}

.rtb-top__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
}

.rtb-top__compte {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #4A5567;
}

.rtb-auth a.rtb-retour {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 500;
	color: #4A5567;
	text-decoration: none;
	border-radius: 8px;
}

.rtb-auth a.rtb-retour:hover {
	color: #31558B;
}

/* ---------------------------------------------------------------- Boutons */
.rtb-auth .rtb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 0 20px;
	border: 2px solid #31558B;
	border-radius: 10px;
	background: #FFFFFF;
	color: #31558B;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.rtb-auth .rtb-btn:hover,
.rtb-auth .rtb-btn:focus {
	background: #EEF3FA;
	color: #24406B;
	border-color: #24406B;
	text-decoration: none;
}

.rtb-auth .rtb-btn--plein {
	width: 100%;
	min-height: 54px;
	background: #31558B;
	color: #FFFFFF;
	font-size: 17px;
}

.rtb-auth .rtb-btn--plein:hover,
.rtb-auth .rtb-btn--plein:focus {
	background: #24406B;
	border-color: #24406B;
	color: #FFFFFF;
}

.rtb-auth .rtb-btn--plein[disabled],
.rtb-auth .rtb-btn--plein[disabled]:hover {
	background: #AEB9CC;
	border-color: #AEB9CC;
	color: #FFFFFF;
	cursor: not-allowed;
}

.rtb-auth .rtb-lien {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: #31558B;
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
	border-radius: 4px;
}

.rtb-auth .rtb-lien:hover {
	color: #24406B;
}

/* ---------------------------------------------------------------- Mise en page */
.rtb-main {
	max-width: 1220px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.rtb-carte {
	flex: 999 1 560px;
	min-width: 0;
	padding: 44px;
	border: 1px solid #DDE3EC;
	border-radius: 16px;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.rtb-form {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
}

.rtb-cote {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---------------------------------------------------------------- Titre */
.rtb-intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.rtb-badge {
	padding: 6px 13px;
	border-radius: 999px;
	background: #E3EAF5;
	color: #31558B;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rtb-auth--reseau .rtb-badge {
	background: #DDF3F0;
	color: #12635C;
}

.rtb-auth h1.rtb-titre {
	color: #14213D;
	font-family: inherit;
	font-size: 38px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.rtb-titre span {
	display: inline-block;
	color: #31558B;
}

.rtb-auth p.rtb-chapo {
	max-width: 620px;
	color: #4A5567;
	font-size: 16.5px;
}

/* ---------------------------------------------------------------- Messages */
.rtb-alerte,
.rtb-info {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 15px;
}

.rtb-alerte {
	border: 1px solid #F1B5AE;
	background: #FEF3F2;
	color: #7A271A;
	font-weight: 500;
}

.rtb-alerte svg {
	margin-top: 1px;
	color: #B42318;
}

.rtb-info {
	border: 1px solid #A9DCD6;
	background: #E9F7F5;
	color: #14213D;
}

.rtb-info svg {
	margin-top: 1px;
	color: #17786F;
}

.rtb-info strong {
	display: block;
	font-weight: 600;
}

.rtb-messages {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ---------------------------------------------------------------- Etapes */
.rtb-etape {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rtb-etape__tete {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rtb-etape__n {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #E3EAF5;
	color: #31558B;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rtb-auth h2.rtb-etape__t {
	color: #14213D;
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.rtb-auth p.rtb-etape__d {
	color: #4A5567;
	font-size: 14px;
}

/* ---------------------------------------------------------------- Champs */
.rtb-rang {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.rtb-col {
	min-width: 0;
}

.rtb-rang > .rtb-col {
	flex: 1 1 260px;
}

.rtb-champ {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 8px 14px;
	border: 1px solid #C3CCD9;
	border-radius: 10px;
	background: #FFFFFF;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rtb-champ:focus-within {
	border-color: #31558B;
	box-shadow: 0 0 0 3px rgba(49, 85, 139, 0.18);
}

.rtb-col--erreur .rtb-champ {
	border-color: #B42318;
}

.rtb-col--erreur .rtb-champ:focus-within {
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.16);
}

.rtb-champ__ico {
	color: #5B6779;
}

.rtb-champ__corps {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rtb-auth label.rtb-champ__lib {
	display: block;
	max-width: none;
	margin: 0;
	color: #4A5567;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	cursor: text;
}

/* Un clic n'importe ou dans le cadre met le champ en saisie : le libelle couvre le cadre. */
.rtb-champ__lib::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.rtb-champ--liste .rtb-champ__lib::after {
	display: none;
}

.rtb-auth input.rtb-saisie {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #14213D;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.rtb-auth input.rtb-saisie::placeholder {
	color: #6B7686;
	opacity: 1;
}

/* Remplissage automatique du navigateur : pas de pave colore dans le cadre. */
.rtb-auth input.rtb-saisie:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 40px #FFFFFF inset;
	-webkit-text-fill-color: #14213D;
}

.rtb-auth .rtb-oeil {
	position: relative;
	z-index: 1;
	flex: none;
	width: 44px;
	height: 44px;
	margin: -2px -8px -2px 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #4A5567;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rtb-auth .rtb-oeil:hover {
	background: #F3F6FA;
	color: #31558B;
}

.rtb-oeil__barre {
	display: none;
}

.rtb-oeil[aria-pressed="true"] {
	color: #31558B;
}

.rtb-oeil[aria-pressed="true"] .rtb-oeil__barre {
	display: block;
}

.rtb-auth label.error {
	display: block;
	margin: 6px 2px 0;
	padding: 0;
	color: #B42318;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.35;
}

/* ---------------------------------------------------------------- Regles du mot de passe */
.rtb-auth ul.rtb-regles {
	list-style: none;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: #F3F6FA;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.rtb-auth ul.rtb-regles.rtb-regles--alerte {
	border-color: #B42318;
	background: #FEF3F2;
}

.rtb-regle {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #4A5567;
	font-size: 13.5px;
}

.rtb-regle::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 1.5px solid #8A96A8;
	border-radius: 50%;
	background: #FFFFFF;
}

.rtb-regle.rtb-regle--ok {
	color: #14213D;
}

.rtb-regle.rtb-regle--ok::before {
	border-color: #17786F;
	background: #17786F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
}

/* ---------------------------------------------------------------- Listes deroulantes (select2 3.4.6) */
.rtb-auth .rtb-champ select {
	width: 100%;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #14213D;
	font-family: inherit;
	font-size: 16px;
}

.rtb-auth .select2-container {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.rtb-auth .select2-container .select2-choice {
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #14213D;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.rtb-auth .select2-container .select2-choice .select2-chosen {
	margin-right: 30px;
	padding: 0;
}

.rtb-auth .select2-container.select2-allowclear .select2-choice .select2-chosen {
	margin-right: 52px;
}

.rtb-auth .select2-container .select2-choice.select2-default,
.rtb-auth .select2-container .select2-choice.select2-default .select2-chosen {
	color: #6B7686 !important;
}

.rtb-auth .select2-container .select2-choice .select2-arrow {
	width: 22px;
	border: 0;
	background: transparent;
}

.rtb-auth .select2-container .select2-choice .select2-arrow b {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5567' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 18px 18px !important;
}

.rtb-auth .select2-container .select2-choice abbr {
	top: 50%;
	right: 28px;
	margin-top: -6px;
}

/* Le theme ajoute un « x » en texte sur les croix de select2 : on garde une seule croix. */
.rtb-auth .select2-search-choice-close:after {
	content: none;
}

.rtb-auth .select2-container-multi .select2-choices {
	min-height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: text;
}

.rtb-auth .select2-container-multi .select2-choices .select2-search-field input {
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent !important;
	box-shadow: none;
	color: #14213D;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
}

.rtb-auth .select2-container-multi .select2-choices .select2-search-field input.select2-default {
	color: #6B7686 !important;
}

.rtb-auth .select2-container-multi .select2-choices .select2-search-choice {
	margin: 1px 6px 3px 0;
	padding: 3px 9px 3px 22px;
	border: 0;
	border-radius: 6px;
	background: #31558B;
	box-shadow: none;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 18px;
}

.rtb-auth .select2-container-multi .select2-search-choice-close {
	top: 6px;
	left: 6px;
	margin-top: 0;
	width: 12px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 11px 11px !important;
}

/* Le menu deroulant est accroche a <body>, hors de .rtb-auth. */
body.rtb-auth-body .select2-drop {
	margin-top: 10px;
	border: 1px solid #C3CCD9;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 0 12px 28px rgba(20, 33, 61, 0.16);
	color: #14213D;
	font-family: 'Rubik', Arial, sans-serif;
	overflow: hidden;
}

/* Ouvert vers le haut, le menu se place au-dessus du cadre pour ne pas masquer le libelle. */
body.rtb-auth-body .select2-drop.select2-drop-above {
	margin-top: -34px;
	border: 1px solid #C3CCD9;
	border-radius: 10px;
	box-shadow: 0 -8px 24px rgba(20, 33, 61, 0.14);
}

body.rtb-auth-body .select2-drop-active {
	border: 1px solid #31558B;
}

body.rtb-auth-body .select2-drop .select2-search {
	padding: 10px 10px 4px;
}

body.rtb-auth-body .select2-drop .select2-search input {
	min-height: 38px;
	border: 1px solid #C3CCD9;
	border-radius: 8px;
	box-shadow: none;
	color: #14213D;
	font-family: inherit;
	font-size: 16px;
}

body.rtb-auth-body .select2-drop .select2-results {
	margin: 6px 0;
	padding: 0 6px;
	font-size: 15px;
}

body.rtb-auth-body .select2-drop .select2-results .select2-result-label {
	padding: 9px 10px;
	border-radius: 6px;
}

body.rtb-auth-body .select2-drop .select2-results .select2-highlighted {
	border-radius: 6px;
	background: #31558B;
	color: #FFFFFF;
}

body.rtb-auth-body .select2-drop .select2-results .select2-no-results,
body.rtb-auth-body .select2-drop .select2-results .select2-searching {
	padding: 9px 10px;
	background: transparent;
	color: #4A5567;
}

/* ---------------------------------------------------------------- Consentement, controle, envoi */
.rtb-fin {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rtb-accord {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rtb-auth .rtb-accord input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: #31558B;
	cursor: pointer;
}

.rtb-auth .rtb-accord label {
	display: inline;
	max-width: none;
	margin: 0;
	color: #14213D;
	font-size: 15.5px;
	font-weight: 400;
	cursor: pointer;
}

.rtb-auth p.rtb-accord__lire {
	margin: 4px 0 0 32px;
	font-size: 14.5px;
}

.rtb-controle {
	min-height: 65px;
}

.rtb-auth p.rtb-aide {
	color: #4A5567;
	font-size: 13.5px;
}

.rtb-envoi {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.rtb-deja {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	padding: 18px 20px;
	border-radius: 12px;
	background: #F3F6FA;
}

.rtb-deja__t {
	color: #14213D;
	font-size: 16.5px;
	font-weight: 600;
}

.rtb-auth p.rtb-deja__d {
	color: #4A5567;
	font-size: 14px;
}

/* ---------------------------------------------------------------- Colonne de droite */
.rtb-bloc {
	padding: 28px;
	border-radius: 16px;
	background: #E6EDF7;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.rtb-auth h2.rtb-bloc__t {
	color: #14213D;
	font-family: inherit;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.rtb-atout {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.rtb-atout__ico {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #FFFFFF;
	color: #31558B;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rtb-atout__ico--vert {
	color: #17786F;
}

.rtb-atout__t {
	font-weight: 600;
}

.rtb-auth p.rtb-atout__d {
	margin-top: 3px;
	color: #33415A;
	font-size: 14.5px;
}

.rtb-suite {
	padding: 28px;
	border: 1px solid #DDE3EC;
	border-radius: 16px;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rtb-auth ol.rtb-suite__liste {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rtb-suite__liste li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rtb-suite__n {
	flex: none;
	width: 26px;
	height: 26px;
	margin-top: -2px;
	border: 1.5px solid #31558B;
	border-radius: 50%;
	color: #31558B;
	font-size: 13.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rtb-reserve {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 4px 8px;
	color: #4A5567;
	font-size: 14px;
}

/* ---------------------------------------------------------------- Fenetre « Protection des donnees » */
body.rtb-auth-body .modal-content {
	border: 0;
	border-radius: 14px;
	overflow: hidden;
}

body.rtb-auth-body .modal-header {
	padding: 16px 22px;
	border: 0;
	background: #31558B;
	color: #FFFFFF;
	text-align: left;
}

body.rtb-auth-body .modal-header .modal-title {
	color: #FFFFFF;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

body.rtb-auth-body .modal-header .close {
	margin-top: 0;
	color: #FFFFFF;
	font-size: 28px;
	line-height: 26px;
	opacity: 0.9;
	text-shadow: none;
}

body.rtb-auth-body .modal-body {
	padding: 22px 24px;
	color: #14213D;
	font-size: 15px;
	line-height: 1.55;
}

body.rtb-auth-body .modal-body h4 {
	margin: 0 0 12px;
	color: #14213D;
	font-size: 17px;
	font-weight: 600;
}

body.rtb-auth-body .modal-body p {
	margin: 0 0 12px;
}

body.rtb-auth-body .modal-body a {
	color: #31558B;
	text-decoration: underline;
}

body.rtb-auth-body .modal-footer {
	padding: 14px 22px;
	border: 0;
	background: #F3F6FA;
}

body.rtb-auth-body .modal-footer .btn {
	min-height: 42px;
	padding: 0 20px;
	border: 2px solid #31558B;
	border-radius: 10px;
	background: #FFFFFF;
	color: #31558B;
	font-size: 15px;
	font-weight: 600;
}

/* ---------------------------------------------------------------- Pages de connexion */
.rtb-main--etroit {
	max-width: 600px;
}

.rtb-form--serre {
	gap: 16px;
}

.rtb-controle--discret {
	min-height: 0;
}

.rtb-auth p.rtb-oubli {
	margin-top: 8px;
	text-align: right;
	font-size: 14.5px;
}

.rtb-auth p.rtb-contact {
	text-align: center;
	font-size: 14px;
}

/* Les messages de connexion sont composes par le traitement serveur avec les classes
   Bootstrap .alert : on les habille ici, sans toucher au traitement. La taille porte
   !important parce que ces blocs ont un style="font-size:13px" en ligne. */
.rtb-auth .rtb-messages .alert {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #F1B5AE;
	border-radius: 12px;
	background: #FEF3F2;
	color: #7A271A;
	font-size: 15px !important;
	font-weight: 500;
	line-height: 1.45;
	text-shadow: none;
}

.rtb-auth .rtb-messages .alert-warning {
	border-color: #F0D58C;
	background: #FFFAEB;
	color: #7A4D0B;
}

.rtb-auth .rtb-messages .alert .fa {
	margin-right: 6px;
}

/* Le bouton flottant « haut de page » du theme recouvre les boutons du formulaire sur mobile. */
body.rtb-auth-body .scroll-to-top {
	display: none !important;
}

/* ---------------------------------------------------------------- Ecrans etroits */
@media (max-width: 767px) {
	.rtb-main {
		padding: 16px 12px 40px;
		gap: 16px;
	}

	.rtb-carte {
		padding: 22px 16px;
	}

	.rtb-carte,
	.rtb-form {
		gap: 26px;
	}

	.rtb-auth h1.rtb-titre {
		font-size: 28px;
	}

	.rtb-bloc,
	.rtb-suite {
		padding: 22px 18px;
	}

	.rtb-top__in {
		padding: 10px 12px;
	}
}

@media (max-width: 520px) {
	.rtb-top__question {
		display: none;
	}

	.rtb-brand__nom {
		font-size: 21px;
	}

	.rtb-deja .rtb-btn {
		width: 100%;
	}
}

/* Le controle Cloudflare fait 300px de large : on le reduit sur les tres petits ecrans. */
@media (max-width: 359px) {
	.rtb-controle {
		transform: scale(0.86);
		transform-origin: left top;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rtb-auth .rtb-btn,
	.rtb-champ {
		transition: none;
	}
}
