/* RGB Conventions — formulaire partenaire & page de signature. Charte « Citron frais ». */
@font-face { font-family: "RGB Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Lato-Regular.woff2") format("woff2"); }
@font-face { font-family: "RGB Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Lato-Bold.woff2") format("woff2"); }
@font-face { font-family: "RGB Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/Lato-Black.woff2") format("woff2"); }
@font-face { font-family: "RGB Lato"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/Lato-Italic.woff2") format("woff2"); }
@font-face { font-family: "RGB Fredoka"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Fredoka-Bold.woff2") format("woff2"); }
@font-face { font-family: "RGB Fredoka"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Fredoka-Medium.woff2") format("woff2"); }
@font-face { font-family: "RGB Raleway"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Raleway-Regular.woff2") format("woff2"); }
@font-face { font-family: "RGB Raleway"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Raleway-Bold.woff2") format("woff2"); }
@font-face { font-family: "RGB Raleway Light"; font-weight: 300 400; font-style: normal; font-display: swap; src: url("../fonts/Raleway-Light.woff2") format("woff2"); }
@font-face { font-family: "RGB Lato Black"; font-weight: 400 900; font-style: normal; font-display: swap; src: url("../fonts/Lato-Black.woff2") format("woff2"); }
@font-face { font-family: "RGB Raleway"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Raleway-Light.woff2") format("woff2"); }

.rgbc-wrap {
	--rgbc-jaune: #F9E54E;
	--rgbc-orange: #F8981D;
	--rgbc-grenade: #E12E4B;
	--rgbc-turquoise: #5BBDC8;
	--rgbc-ink: #1d1d1b;
	--rgbc-text: #3a3a3a;
	--rgbc-muted: #7c7c7c;
	--rgbc-line: #e8e6e1;
	--rgbc-soft: #faf9f6;
	--rgbc-radius: 16px;
	max-width: 920px;
	margin: 0 auto;
	font-family: "RGB Lato", "Lato", system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rgbc-text);
	text-align: left;
	box-sizing: border-box;
	container-type: inline-size;
	container-name: rgbc;
}
.rgbc-wrap *, .rgbc-wrap *::before, .rgbc-wrap *::after { box-sizing: border-box; }
.rgbc-wrap [hidden] { display: none !important; }
.rgbc-wrap p { margin: 0 0 .6em; }

/* Cartes */
.rgbc-wrap .rgbc-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--rgbc-line);
	border-radius: var(--rgbc-radius);
	padding: 34px 38px;
	margin: 0 0 22px;
	box-shadow: 0 1px 2px rgba(29, 29, 27, .03), 0 12px 32px -18px rgba(29, 29, 27, .14);
}
.rgbc-stripe-web { position: absolute; top: 0; left: 0; right: 0; display: flex; height: 5px; border-radius: var(--rgbc-radius) var(--rgbc-radius) 0 0; overflow: hidden; }
.rgbc-stripe-web span { flex: 1; }
.rgbc-stripe-web span:nth-child(1) { background: var(--rgbc-jaune); }
.rgbc-stripe-web span:nth-child(2) { background: var(--rgbc-orange); }
.rgbc-stripe-web span:nth-child(3) { background: var(--rgbc-grenade); }
.rgbc-stripe-web span:nth-child(4) { background: var(--rgbc-turquoise); }

/* En-tête */
.rgbc-head { text-align: center; padding-top: 44px; }
.rgbc-head-logos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin: 0 auto 26px; max-width: 560px; }
.rgbc-head-logo:first-child { justify-self: end; }
.rgbc-head-logo:last-child { justify-self: start; }
.rgbc-head-logo > img { display: block; width: 118px; height: auto; }
.rgbc-head-amp { font-family: "RGB Raleway", "Raleway", sans-serif; font-weight: 300; font-size: 44px; line-height: 1; color: var(--rgbc-orange); }

.rgbc-drop {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	width: 170px; height: 118px;
	border: 1.5px dashed #cfccc4;
	border-radius: 14px;
	background: var(--rgbc-soft);
	cursor: pointer;
	transition: border-color .2s, background .2s;
	overflow: hidden;
	margin: 0;
}
.rgbc-drop:hover, .rgbc-drop.is-over, .rgbc-drop:focus-within { border-color: var(--rgbc-orange); background: #fff8ef; }
.rgbc-drop.has-file { border-style: solid; border-color: var(--rgbc-line); background: #fff; }
.rgbc-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.rgbc-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; padding: 0 8px; }
.rgbc-drop-plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rgbc-ink); color: #fff; font-size: 20px; line-height: 1; margin-bottom: 4px; }
.rgbc-drop-title { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 500; font-size: 15px; color: var(--rgbc-ink); word-break: break-all; }
.rgbc-drop-hint { font-size: 11.5px; color: var(--rgbc-muted); }
.rgbc-drop-preview { pointer-events: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 10px; }
.rgbc-drop-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rgbc-drop.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--rgbc-line); border-top-color: var(--rgbc-orange); border-radius: 50%; animation: rgbc-spin .8s linear infinite; }
.rgbc-head .rgbc-field .rgbc-error { display: block; margin-top: 6px; }

.rgbc-eyebrow-web {
	font-family: "RGB Raleway", "Raleway", sans-serif;
	font-weight: 300;
	font-size: 13px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--rgbc-grenade);
	margin: 0 0 8px !important;
}
.rgbc-wrap .rgbc-doc-title {
	font-family: "RGB Fredoka", "Fredoka", sans-serif;
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.18;
	letter-spacing: -.01em;
	color: var(--rgbc-ink);
	margin: 0 auto 10px;
	max-width: 720px;
	text-transform: none;
}
.rgbc-intro { max-width: 620px; margin: 14px auto 0 !important; color: var(--rgbc-muted); font-size: 15px; }

/* Étapes */
.rgbc-wrap .rgbc-step {
	display: flex; align-items: center; gap: 14px;
	font-family: "RGB Fredoka", "Fredoka", sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.2;
	color: var(--rgbc-ink);
	margin: 0 0 22px;
	text-transform: none;
	letter-spacing: 0;
}
.rgbc-step-num { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; font-size: 16px; color: #fff; }
.rgbc-step-num.n1 { background: var(--rgbc-orange); }
.rgbc-step-num.n2 { background: var(--rgbc-grenade); }
.rgbc-step-num.n3 { background: var(--rgbc-turquoise); }
.rgbc-wrap .rgbc-sub {
	font-family: "RGB Raleway", "Raleway", sans-serif;
	font-weight: 300;
	font-size: 13px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--rgbc-muted);
	margin: 30px 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--rgbc-line);
}
.rgbc-help { color: var(--rgbc-muted); font-size: 14.5px; margin-top: -10px !important; }

/* Les deux structures */
.rgbc-parties { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 22px; }
.rgbc-party { border-radius: 14px; padding: 22px 24px; }
.rgbc-party--rgb { background: var(--rgbc-soft); border-top: 3px solid var(--rgbc-orange); }
.rgbc-party--partner { border: 1px solid var(--rgbc-line); border-top: 3px solid var(--rgbc-turquoise); }
.rgbc-party-tag { font-family: "RGB Raleway", "Raleway", sans-serif; font-weight: 300; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--rgbc-muted); margin-bottom: 10px !important; }
.rgbc-party-name { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 18px; color: var(--rgbc-ink); line-height: 1.3; }
.rgbc-party-text { font-size: 14.5px; color: var(--rgbc-text); }

/* Champs */
.rgbc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.rgbc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rgbc-field { display: flex; flex-direction: column; min-width: 0; }
.rgbc-party--partner .rgbc-field[data-field="partenaire"],
.rgbc-party--partner .rgbc-field[data-field="statut"],
.rgbc-field--wide { grid-column: 1 / -1; }
.rgbc-wrap .rgbc-field > label {
	font-size: 13px; font-weight: 700; color: var(--rgbc-ink);
	margin: 0 0 6px; line-height: 1.3; text-transform: none; letter-spacing: 0;
}
.rgbc-req { color: var(--rgbc-grenade); }
.rgbc-wrap .rgbc-form input[type=text],
.rgbc-wrap .rgbc-form input[type=email],
.rgbc-wrap .rgbc-form input[type=tel],
.rgbc-wrap .rgbc-form input[type=url],
.rgbc-wrap .rgbc-form input[type=number],
.rgbc-wrap .rgbc-form input[type=date],
.rgbc-wrap .rgbc-form textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	font: inherit;
	font-size: 15.5px;
	color: var(--rgbc-ink);
	background: #fff;
	border: 1px solid #d9d6cf;
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	margin: 0;
}
.rgbc-wrap .rgbc-form textarea { resize: vertical; min-height: 70px; line-height: 1.45; }
.rgbc-wrap .rgbc-form input:focus,
.rgbc-wrap .rgbc-form textarea:focus { border-color: var(--rgbc-orange); box-shadow: 0 0 0 3px rgba(248, 152, 29, .18); }
.rgbc-wrap .rgbc-form input::placeholder, .rgbc-wrap .rgbc-form textarea::placeholder { color: #aaa69d; }
.rgbc-field.has-error input, .rgbc-field.has-error textarea { border-color: var(--rgbc-grenade) !important; }
.rgbc-error { font-size: 13px; color: var(--rgbc-grenade); margin-top: 5px; min-height: 0; }
.rgbc-error:empty { display: none !important; }

/* Texte de la convention */
.rgbc-paper {
	border: 1px solid var(--rgbc-line);
	border-radius: 12px;
	background: #fff;
	padding: 30px 36px;
	max-height: 560px;
	overflow-y: auto;
	box-shadow: inset 0 -30px 30px -30px rgba(29, 29, 27, .12);
}
.rgbc-paper .rgbc-doc { font-size: 15px; background: transparent; }
.rgbc-paper .rgbc-body h2 { font-size: 17px; margin: 22px 0 8px; }
.rgbc-paper .rgbc-body h2:first-child { margin-top: 0; }
.rgbc-ph { background: #fff6d6; border-bottom: 1.5px solid var(--rgbc-jaune); padding: 0 3px; border-radius: 3px; color: var(--rgbc-ink); transition: background .2s; }
.rgbc-ph.is-empty { background: #f4f3ef; border-bottom-color: #cfccc4; color: #9a968c; font-style: italic; }

/* Date */
.rgbc-faita-web { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 16px; color: var(--rgbc-ink); margin-bottom: 26px; }
.rgbc-faita-web .rgbc-inline { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.rgbc-faita-web .rgbc-inline > label:not(.rgbc-sr) { margin: 0; font-size: 16px; font-weight: 400; color: var(--rgbc-ink); }
.rgbc-inline input[type=text] { width: 200px !important; }
.rgbc-inline input[type=date] { width: 190px !important; }
.rgbc-inline .rgbc-error { flex-basis: 100%; line-height: 1.3; margin-top: 0; }
.rgbc-faita-end { color: var(--rgbc-muted); font-size: 15px; }
.rgbc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Signatures */
.rgbc-signs-web { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rgbc-signcard { border-radius: 14px; padding: 20px 22px; background: var(--rgbc-soft); }
.rgbc-signcard--rgb { border-top: 3px solid var(--rgbc-orange); }
.rgbc-signcard--partner { border-top: 3px solid var(--rgbc-turquoise); background: #fff; border-left: 1px solid var(--rgbc-line); border-right: 1px solid var(--rgbc-line); border-bottom: 1px solid var(--rgbc-line); }
.rgbc-signcard-for { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 17px; color: var(--rgbc-ink); margin: 0 !important; line-height: 1.3; }
.rgbc-signcard-who { font-size: 14px; color: var(--rgbc-muted); margin: 2px 0 12px !important; }
.rgbc-signcard-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 170px; border-radius: 10px; border: 1px dashed #d9d6cf; text-align: center; }
.rgbc-signcard-wait span { font-family: "RGB Raleway", "Raleway", sans-serif; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--rgbc-muted); }
.rgbc-signcard-wait small { font-size: 12.5px; color: #a5a198; margin-top: 4px; }
.rgbc-signcard-wait img { max-height: 140px; max-width: 90%; }

.rgbc-pad { position: relative; height: 170px; border-radius: 10px; border: 1px solid #d9d6cf; background: #fff; background-image: linear-gradient(to right, #e2dfd8 0, #e2dfd8 100%); background-size: calc(100% - 48px) 1px; background-position: 24px 72%; background-repeat: no-repeat; }
.rgbc-field.has-error .rgbc-pad { border-color: var(--rgbc-grenade); }
.rgbc-pad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; border-radius: 10px; }
.rgbc-pad-hint { position: absolute; left: 24px; top: calc(72% - 26px); font-family: "RGB Raleway", "Raleway", sans-serif; font-weight: 300; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #b9b5ab; pointer-events: none; transition: opacity .2s; }
.rgbc-pad.is-signed .rgbc-pad-hint { opacity: 0; }
.rgbc-wrap .rgbc-pad-clear {
	position: absolute; right: 10px; top: 10px;
	padding: 5px 12px; min-height: 0;
	font: inherit; font-size: 12.5px; line-height: 1.4;
	color: var(--rgbc-muted); background: #fff;
	border: 1px solid var(--rgbc-line); border-radius: 999px;
	cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.rgbc-wrap .rgbc-pad-clear:hover { color: var(--rgbc-ink); border-color: #cfccc4; background: #fff; }

/* Signature : dessin ou fichier */
.rgbc-sigtabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 999px; background: #f1efea; }
.rgbc-wrap .rgbc-sigtabs button {
	min-height: 0; padding: 6px 14px; margin: 0;
	font: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none;
	color: var(--rgbc-muted); background: transparent; border: 0; border-radius: 999px; box-shadow: none; cursor: pointer;
}
.rgbc-wrap .rgbc-sigtabs button:hover { color: var(--rgbc-ink); background: transparent; }
.rgbc-wrap .rgbc-sigtabs button.is-active { background: #fff; color: var(--rgbc-ink); box-shadow: 0 1px 3px rgba(29, 29, 27, .12); }
.rgbc-wrap .rgbc-sigfile {
	position: relative; display: flex; align-items: center; justify-content: center;
	height: 170px; margin: 0; padding: 12px; text-align: center; cursor: pointer; overflow: hidden;
	border: 1.5px dashed #cfccc4; border-radius: 10px; background: var(--rgbc-soft);
	font-weight: 400; transition: border-color .2s, background .2s;
}
.rgbc-wrap .rgbc-sigfile:hover, .rgbc-wrap .rgbc-sigfile:focus-within { border-color: var(--rgbc-orange); background: #fff8ef; }
.rgbc-wrap .rgbc-sigfile.has-file { border-style: solid; border-color: #d9d6cf; background: #fff; }
.rgbc-sigfile input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rgbc-sigfile-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.rgbc-sigfile-preview { pointer-events: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rgbc-sigfile-preview img { max-width: 100%; max-height: 140px; object-fit: contain; }
.rgbc-sigfile.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--rgbc-line); border-top-color: var(--rgbc-orange); border-radius: 50%; animation: rgbc-spin .8s linear infinite; }
.rgbc-field.has-error .rgbc-sigfile { border-color: var(--rgbc-grenade); }
.rgbc-sigfile .rgbc-sigfile-remove { z-index: 2; }

/* Validation */
.rgbc-consent { margin-top: 26px; }
.rgbc-wrap .rgbc-field > label.rgbc-check, .rgbc-wrap .rgbc-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; color: var(--rgbc-text); cursor: pointer; margin: 0; }
.rgbc-wrap .rgbc-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rgbc-grenade); }
.rgbc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rgbc-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--rgbc-line); }
.rgbc-form-msg { margin: 0 !important; font-size: 14.5px; color: var(--rgbc-muted); }
.rgbc-form-msg.is-error { color: var(--rgbc-grenade); }
.rgbc-form-msg.is-ok { color: #1f8a6e; }

.rgbc-wrap .rgbc-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px;
	padding: 14px 30px;
	font-family: "RGB Fredoka", "Fredoka", sans-serif;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: .01em;
	text-transform: none;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, background .2s;
}
.rgbc-wrap .rgbc-btn--primary { background: var(--rgbc-grenade); color: #fff; box-shadow: 0 10px 24px -10px rgba(225, 46, 75, .6); }
.rgbc-wrap .rgbc-btn--primary:hover { background: #c9203c; color: #fff; transform: translateY(-1px); }
.rgbc-wrap .rgbc-btn--ghost { background: #fff; color: var(--rgbc-ink); border: 1.5px solid var(--rgbc-ink); }
.rgbc-wrap .rgbc-btn--ghost:hover { background: var(--rgbc-ink); color: #fff; }
.rgbc-wrap .rgbc-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.rgbc-btn.is-loading .rgbc-btn-label { opacity: .35; }
.rgbc-btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: rgbc-spin .8s linear infinite; }
@keyframes rgbc-spin { to { transform: rotate(360deg); } }

/* Confirmation */
.rgbc-done { text-align: center; padding: 56px 38px 46px; }
.rgbc-done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--rgbc-turquoise); color: #fff; font-size: 30px; }
.rgbc-done-msg { max-width: 540px; margin: 0 auto 24px !important; color: var(--rgbc-text); }

/* Choix du modèle */
.rgbc-picker { text-align: center; }
.rgbc-wrap .rgbc-h { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 30px; color: var(--rgbc-ink); margin: 0 0 24px; }
.rgbc-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; text-align: left; }
.rgbc-wrap .rgbc-picker-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 14px; border: 1px solid var(--rgbc-line); border-top: 3px solid var(--rgbc-orange); background: #fff; color: var(--rgbc-text); text-decoration: none; transition: transform .15s, box-shadow .2s; }
.rgbc-wrap .rgbc-picker-card:nth-child(4n+2) { border-top-color: var(--rgbc-grenade); }
.rgbc-wrap .rgbc-picker-card:nth-child(4n+3) { border-top-color: var(--rgbc-turquoise); }
.rgbc-wrap .rgbc-picker-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(29, 29, 27, .3); }
.rgbc-picker-title { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 19px; color: var(--rgbc-ink); }
.rgbc-picker-text { font-size: 14.5px; color: var(--rgbc-muted); }
.rgbc-picker-go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--rgbc-grenade); }
.rgbc-notice { padding: 18px 22px; border-radius: 12px; background: var(--rgbc-soft); border-left: 3px solid var(--rgbc-orange); }

/* Page de signature du président */
body.rgbc-page { margin: 0; background: #f5f4f0; }
.rgbc-page .rgbc-wrap { padding: 36px 16px 60px; }
.rgbc-page-top { text-align: center; margin-bottom: 22px; }
.rgbc-page-top img { width: 84px; height: auto; }
.rgbc-status { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.rgbc-status--attente { background: #fff1dc; color: #a35d00; }
.rgbc-status--signee { background: #ddf3f5; color: #1c6e78; }
.rgbc-status--annulee { background: #f3f3f3; color: #777; }
.rgbc-docwrap { padding: 44px 52px; }
.rgbc-docwrap .rgbc-doc { font-size: 15px; }
.rgbc-docwrap .rgbc-doc .rgbc-stripe { display: none; }
.rgbc-docwrap .rgbc-title { font-size: 26px; }
.rgbc-docwrap .rgbc-eyebrow { font-size: 12.5px; }
.rgbc-docwrap .rgbc-body h2 { font-size: 17px; }
.rgbc-docwrap .rgbc-logo--rgb img { height: 96px; }
.rgbc-docwrap .rgbc-sign-box { height: 110px; }
.rgbc-docwrap .rgbc-sign-box img { max-height: 104px; }

/* Document à signer */
.rgbc-paper--tall { max-height: 640px; }
.rgbc-grid--doc { margin-top: 0; }

.rgbc-docfield { margin-top: 18px; }
.rgbc-checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.rgbc-wrap .rgbc-checkopt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border: 1px solid #d9d6cf; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 400; font-size: 14.5px; color: var(--rgbc-ink); transition: border-color .15s, background .15s; }
.rgbc-wrap .rgbc-checkopt:hover { border-color: var(--rgbc-orange); }
.rgbc-checkopt input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--rgbc-grenade); }
.rgbc-wrap .rgbc-checkopt:has(input:checked) { border-color: var(--rgbc-turquoise); background: #f2fafb; }
.rgbc-field.has-error .rgbc-checkopt { border-color: var(--rgbc-grenade); }
.rgbc-checkall { margin: 8px 0 0 !important; }
.rgbc-wrap .rgbc-linkbtn { padding: 0; min-height: 0; border: 0; background: none; box-shadow: none; color: var(--rgbc-grenade); font: inherit; font-size: 13.5px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.rgbc-wrap .rgbc-linkbtn:hover { background: none; color: #c9203c; text-decoration: underline; }
@container rgbc (max-width: 560px) { .rgbc-checkgrid { grid-template-columns: minmax(0, 1fr); } }

/* Commissions */
.rgbc-com-intro { max-width: 640px; margin: 16px auto 0; text-align: left; font-size: 15.5px; color: var(--rgbc-text); }
.rgbc-com-intro p { margin: 0 0 .7em !important; }
.rgbc-coms { display: grid; gap: 10px; }
.rgbc-wrap .rgbc-com { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.rgbc-com input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rgbc-com-body { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid #d9d6cf; border-left-width: 4px; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.rgbc-com--0 .rgbc-com-body { border-left-color: var(--rgbc-orange); }
.rgbc-com--1 .rgbc-com-body { border-left-color: var(--rgbc-grenade); }
.rgbc-com--2 .rgbc-com-body { border-left-color: var(--rgbc-turquoise); }
.rgbc-com--3 .rgbc-com-body { border-left-color: var(--rgbc-jaune); }
.rgbc-com:hover .rgbc-com-body { background: var(--rgbc-soft); }
.rgbc-com input:focus-visible + .rgbc-com-body { box-shadow: 0 0 0 3px rgba(248, 152, 29, .25); }
.rgbc-com input:checked + .rgbc-com-body { background: #fff8ef; border-color: var(--rgbc-orange); box-shadow: inset 0 0 0 1px var(--rgbc-orange); }
.rgbc-com-mark { flex: 0 0 20px; height: 20px; margin-top: 2px; border: 1.5px solid #b9b5ab; border-radius: 50%; background: #fff; transition: all .15s; }
.rgbc-com input[type=checkbox] + .rgbc-com-body .rgbc-com-mark { border-radius: 5px; }
.rgbc-com input:checked + .rgbc-com-body .rgbc-com-mark { border-color: var(--rgbc-grenade); background: var(--rgbc-grenade); box-shadow: inset 0 0 0 4px #fff; }
.rgbc-com input[type=checkbox]:checked + .rgbc-com-body .rgbc-com-mark { box-shadow: inset 0 0 0 3px #fff; }
.rgbc-com-text { display: flex; flex-direction: column; gap: 2px; }
.rgbc-com-name { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 17px; color: var(--rgbc-ink); line-height: 1.3; }
.rgbc-com-desc { font-size: 14.5px; color: var(--rgbc-muted); }
.rgbc-field.has-error .rgbc-com-body { border-top-color: var(--rgbc-grenade); border-right-color: var(--rgbc-grenade); border-bottom-color: var(--rgbc-grenade); }
.rgbc-wrap--com .rgbc-step { font-size: 20px; }

/* Adhésion */
.rgbc-adh-logo-web img { display: block; width: 104px; height: auto; margin: 0 auto 18px; }
.rgbc-step-num.n4 { background: var(--rgbc-ink); }
.rgbc-wrap .rgbc-label { display: block; font-size: 13px; font-weight: 700; color: var(--rgbc-ink); margin: 0 0 8px; line-height: 1.3; }
.rgbc-grid--1 { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.rgbc-grid--cp { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); margin: 14px 0; }
.rgbc-wrap--adh .rgbc-grid { margin-top: 14px; }
.rgbc-wrap--adh .rgbc-field[data-field="civilite"] { margin-bottom: 4px; }

.rgbc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rgbc-wrap .rgbc-choice { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.rgbc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rgbc-choice span {
	display: inline-block; padding: 9px 16px; border-radius: 999px;
	border: 1px solid #d9d6cf; background: #fff; color: var(--rgbc-ink);
	font-size: 14.5px; line-height: 1.3; transition: border-color .15s, background .15s, color .15s;
}
.rgbc-choice:hover span { border-color: var(--rgbc-orange); }
.rgbc-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(248, 152, 29, .25); }
.rgbc-choice input:checked + span { background: var(--rgbc-ink); border-color: var(--rgbc-ink); color: #fff; }
.rgbc-field.has-error .rgbc-choice span { border-color: var(--rgbc-grenade); }

.rgbc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rgbc-wrap .rgbc-option { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.rgbc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rgbc-option-body {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
	padding: 16px 18px; border-radius: 12px; border: 1px solid #d9d6cf; background: #fff;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.rgbc-option:hover .rgbc-option-body { border-color: var(--rgbc-orange); }
.rgbc-option input:focus-visible + .rgbc-option-body { box-shadow: 0 0 0 3px rgba(248, 152, 29, .25); }
.rgbc-option input:checked + .rgbc-option-body { border-color: var(--rgbc-orange); background: #fff8ef; box-shadow: inset 0 0 0 1px var(--rgbc-orange); }
.rgbc-option-title { font-size: 15px; color: var(--rgbc-ink); line-height: 1.35; }
.rgbc-option-price { flex: 0 0 auto; font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 18px; color: var(--rgbc-ink); }
.rgbc-field.has-error .rgbc-option-body { border-color: var(--rgbc-grenade); }

.rgbc-structure { margin-top: 6px; }
.rgbc-wrap .rgbc-filepick {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
	min-height: 64px; margin: 0; padding: 12px 16px; cursor: pointer; font-weight: 400;
	border: 1.5px dashed #cfccc4; border-radius: 10px; background: var(--rgbc-soft);
}
.rgbc-wrap .rgbc-filepick:hover, .rgbc-wrap .rgbc-filepick:focus-within { border-color: var(--rgbc-orange); background: #fff8ef; }
.rgbc-wrap .rgbc-filepick.has-file { border-style: solid; border-color: var(--rgbc-turquoise); background: #f2fafb; }
.rgbc-filepick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rgbc-filepick-name { font-weight: 700; font-size: 14px; color: var(--rgbc-ink); word-break: break-all; }
.rgbc-filepick-hint { font-size: 12px; color: var(--rgbc-muted); }

.rgbc-amounts { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; }
.rgbc-amount { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 16px 18px; border-radius: 12px; background: var(--rgbc-soft); }
.rgbc-wrap .rgbc-amount-label { font-size: 13px; font-weight: 700; color: var(--rgbc-muted); margin: 0; }
.rgbc-amount-label small { font-weight: 400; }
.rgbc-amount-value { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 26px; color: var(--rgbc-ink); line-height: 1.1; }
.rgbc-amount--total { background: var(--rgbc-ink); }
.rgbc-wrap .rgbc-amount--total .rgbc-amount-label { color: rgba(255, 255, 255, .7); }
.rgbc-amount--total .rgbc-amount-value { color: #fff; }
.rgbc-amount--don { background: #fff; border: 1px solid var(--rgbc-line); }
.rgbc-don-input { display: flex; align-items: center; gap: 8px; }
.rgbc-wrap .rgbc-don-input input[type=number] { min-height: 42px; font-size: 18px; font-weight: 700; }
.rgbc-don-input > span { font-weight: 700; font-size: 18px; color: var(--rgbc-ink); }
.rgbc-don-note { margin: 10px 0 0 !important; font-size: 13.5px; }

.rgbc-payinfo { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: #f2fafb; border-left: 3px solid var(--rgbc-turquoise); font-size: 14.5px; }
.rgbc-payinfo p:last-child { margin-bottom: 0; }
.rgbc-payinfo code { font-size: 14px; background: #fff; padding: 2px 6px; border-radius: 4px; }
.rgbc-wrap .rgbc-link { color: var(--rgbc-grenade); font-weight: 700; text-decoration: none; }
.rgbc-done-pay { max-width: 540px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 12px; background: var(--rgbc-soft); }
.rgbc-done-pay:empty { display: none; }
.rgbc-signs-web--single { grid-template-columns: minmax(0, 1fr); max-width: 520px; }

@container rgbc (max-width: 640px) {
	.rgbc-options, .rgbc-amounts, .rgbc-grid--cp { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.rgbc-options, .rgbc-amounts, .rgbc-grid--cp { grid-template-columns: minmax(0, 1fr); }
}

/* Responsive (largeur du conteneur Elementor, puis de l'écran) */
@container rgbc (max-width: 820px) {
	.rgbc-parties { grid-template-columns: minmax(0, 1fr); }
	.rgbc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rgbc-grid--3 .rgbc-field:first-child { grid-column: 1 / -1; }
}
@container rgbc (max-width: 560px) {
	.rgbc-wrap .rgbc-card { padding: 26px 18px; }
	.rgbc-grid, .rgbc-grid--3, .rgbc-signs-web { grid-template-columns: minmax(0, 1fr); }
	.rgbc-paper { padding: 20px 16px; }
	.rgbc-wrap .rgbc-btn { width: 100%; }
	.rgbc-head-logo > img { width: 92px; }
	.rgbc-drop { width: 132px; height: 96px; }
}
@media (max-width: 760px) {
	.rgbc-wrap .rgbc-card { padding: 26px 18px; border-radius: 14px; }
	.rgbc-head { padding-top: 34px; }
	.rgbc-head-logos { gap: 12px; }
	.rgbc-head-logo > img { width: 92px; }
	.rgbc-head-amp { font-size: 32px; }
	.rgbc-drop { width: 132px; height: 96px; }
	.rgbc-parties, .rgbc-grid, .rgbc-grid--3, .rgbc-signs-web { grid-template-columns: minmax(0, 1fr); }
	.rgbc-paper { padding: 20px 16px; max-height: 460px; }
	.rgbc-inline input[type=text], .rgbc-inline input[type=date] { width: 100% !important; }
	.rgbc-faita-web .rgbc-inline { flex: 1 1 100%; flex-wrap: nowrap; }
	.rgbc-faita-web .rgbc-inline > label:not(.rgbc-sr) { flex: 0 0 52px; }
	.rgbc-actions { justify-content: stretch; }
	.rgbc-wrap .rgbc-btn { width: 100%; }
	.rgbc-docwrap { padding: 28px 18px; }
	.rgbc-docwrap .rgbc-signs td { display: block; width: 100% !important; }
	.rgbc-docwrap .rgbc-sign-gap { height: 14px; }
}

/* ------------------------------------------------------------------ */
/* Fond noir (option « Fond noir » des documents à signer)             */
/* ------------------------------------------------------------------ */
.rgbc-wrap--dark {
	--rgbc-ink: #f5f3ee;
	--rgbc-text: #d6d3cc;
	--rgbc-muted: #9b978d;
	--rgbc-line: #2e2e2c;
	--rgbc-soft: #1b1b1a;
	color-scheme: dark;
	background: #000;
	color: var(--rgbc-text);
	padding: 22px;
	border-radius: 22px;
}
.rgbc-wrap--dark .rgbc-card { background: #111110; border-color: #262624; box-shadow: none; }
.rgbc-wrap--dark .rgbc-adh-logo-web img { filter: invert(1) hue-rotate(180deg); }
.rgbc-wrap--dark .rgbc-eyebrow-web { color: #ff6b84; }
.rgbc-wrap--dark .rgbc-intro { color: var(--rgbc-muted); }
.rgbc-wrap--dark .rgbc-paper { background: #0a0a0a; border-color: #262624; box-shadow: inset 0 -30px 30px -30px rgba(0, 0, 0, .9); }
.rgbc-wrap--dark .rgbc-doc { color: #d6d3cc; }
.rgbc-wrap--dark .rgbc-doc .rgbc-body h2,
.rgbc-wrap--dark .rgbc-doc .rgbc-body h3,
.rgbc-wrap--dark .rgbc-doc .rgbc-body strong { color: #ffffff; }
.rgbc-wrap--dark .rgbc-doc a { color: var(--rgbc-orange); }
.rgbc-wrap--dark .rgbc-ph { color: #1d1d1b; }
.rgbc-wrap--dark .rgbc-ph.is-empty { background: #2a2a28; color: #9b978d; border-bottom-color: #4a4a46; }
.rgbc-wrap--dark .rgbc-form input[type=text],
.rgbc-wrap--dark .rgbc-form input[type=email],
.rgbc-wrap--dark .rgbc-form input[type=tel],
.rgbc-wrap--dark .rgbc-form input[type=date],
.rgbc-wrap--dark .rgbc-form textarea { background: #1b1b1a; border-color: #3a3a37; color: #f5f3ee; }
.rgbc-wrap--dark .rgbc-form input::placeholder { color: #6f6c65; }
.rgbc-wrap--dark .rgbc-signcard--partner { background: #111110; border-left-color: #2e2e2c; border-right-color: #2e2e2c; border-bottom-color: #2e2e2c; }
.rgbc-wrap--dark .rgbc-sigtabs { background: #1f1f1d; }
.rgbc-wrap--dark .rgbc-sigtabs button.is-active { background: #3a3a37; color: #fff; box-shadow: none; }
.rgbc-wrap--dark .rgbc-sigfile { background: #1b1b1a; border-color: #4a4a46; }
.rgbc-wrap--dark .rgbc-sigfile.has-file { background: #fff; }
.rgbc-wrap--dark .rgbc-drop-plus { background: #f5f3ee; color: #000; }
.rgbc-wrap--dark .rgbc-checkopt { background: #1b1b1a; border-color: #3a3a37; }
.rgbc-wrap--dark .rgbc-checkopt:has(input:checked) { background: #0f2427; }
.rgbc-wrap--dark .rgbc-actions { border-top-color: #262624; }
.rgbc-wrap--dark .rgbc-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.rgbc-wrap--dark .rgbc-btn--ghost:hover { background: #fff; color: #000; }
/* La zone de signature reste claire : l'encre reste noire, comme sur le PDF. */
.rgbc-wrap--dark .rgbc-pad { background-color: #fff; border-color: #3a3a37; }
.rgbc-wrap--dark .rgbc-pad .rgbc-pad-clear { background: #fff; color: #555; border-color: #ddd; }
@media (max-width: 760px) { .rgbc-wrap--dark { padding: 10px; border-radius: 16px; } }

/* ---------- Formations des bénévoles ---------- */
.rgbc-opt { font-weight: 400; color: var(--rgbc-muted); font-size: .88em; }
.rgbc-formation-desc ul, .rgbc-formation-desc ol { margin: 0 0 .7em 1.2em; }
.rgbc-formation-closed { text-align: center; }
.rgbc-formation-note { margin-top: 14px; }
.rgbc-sessions { display: grid; gap: 10px; }
.rgbc-wrap .rgbc-session { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400; }
.rgbc-session input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rgbc-session-body { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid #d9d6cf; border-left-width: 4px; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.rgbc-session.rgbc-com--0 .rgbc-session-body { border-left-color: var(--rgbc-orange); }
.rgbc-session.rgbc-com--1 .rgbc-session-body { border-left-color: var(--rgbc-grenade); }
.rgbc-session.rgbc-com--2 .rgbc-session-body { border-left-color: var(--rgbc-turquoise); }
.rgbc-session.rgbc-com--3 .rgbc-session-body { border-left-color: var(--rgbc-jaune); }
.rgbc-session:hover .rgbc-session-body { background: var(--rgbc-soft); }
.rgbc-session input:focus-visible + .rgbc-session-body { box-shadow: 0 0 0 3px rgba(248, 152, 29, .25); }
.rgbc-session input:checked + .rgbc-session-body { background: #fff8ef; border-color: var(--rgbc-orange); box-shadow: inset 0 0 0 1px var(--rgbc-orange); }
.rgbc-session-date { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 12px; background: var(--rgbc-ink); color: #fff; line-height: 1; }
.rgbc-session-date .d { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 22px; }
.rgbc-session-date .m { margin-top: 3px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--rgbc-jaune); }
.rgbc-session-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rgbc-session-day { font-family: "RGB Fredoka", "Fredoka", sans-serif; font-weight: 700; font-size: 16.5px; color: var(--rgbc-ink); line-height: 1.3; }
.rgbc-session-meta { font-size: 14px; color: var(--rgbc-muted); }
.rgbc-session-places { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #e6f5f6; color: #1c6e78; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rgbc-session-places.is-low { background: #fff1dc; color: #9a5800; }
.rgbc-session-places.is-full { background: #f0efec; color: #8a8a8a; }
.rgbc-session .rgbc-com-mark { flex: 0 0 20px; height: 20px; border: 1.5px solid #b9b5ab; border-radius: 50%; background: #fff; transition: all .15s; }
.rgbc-session input[type=checkbox] + .rgbc-session-body .rgbc-com-mark { border-radius: 5px; }
.rgbc-session input:checked + .rgbc-session-body .rgbc-com-mark { border-color: var(--rgbc-grenade); background: var(--rgbc-grenade); box-shadow: inset 0 0 0 4px #fff; }
.rgbc-session input[type=checkbox]:checked + .rgbc-session-body .rgbc-com-mark { box-shadow: inset 0 0 0 3px #fff; }
.rgbc-session.is-full { cursor: not-allowed; }
.rgbc-session.is-full .rgbc-session-body { background: #faf9f6; opacity: .65; }
.rgbc-session.is-full .rgbc-session-date { background: #8a8a8a; }
.rgbc-field.has-error .rgbc-session-body { border-top-color: var(--rgbc-grenade); border-right-color: var(--rgbc-grenade); border-bottom-color: var(--rgbc-grenade); }
@media (max-width: 560px) {
	.rgbc-session-body { flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; }
	.rgbc-session-date { flex-basis: 48px; height: 48px; }
	.rgbc-session-text { flex-basis: calc(100% - 100px); }
	.rgbc-session-places { margin-left: 62px; }
	.rgbc-session .rgbc-com-mark { position: absolute; top: 14px; right: 14px; }
}
.rgbc-wrap .rgbc-formation-note { margin: 18px 0 0 !important; }
.rgbc-session .rgbc-com-mark { width: 20px; box-sizing: border-box; }
@media (max-width: 560px) { .rgbc-session-text { padding-right: 26px; } }
