/*
 * Gallia – Formulaire de candidature "Devenir créateur" (/devenir-createur/).
 * Style volontairement autonome (ne dépend pas de gallia-subscribe-oneclick/
 * modal.css, qui n'est enqueue que sur les pages avec le widget
 * d'abonnement) — jetons de couleur repris à l'identique par cohérence
 * visuelle avec le reste du site.
 */

.gallia-ca-wrap {
	max-width: 640px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.gallia-ca-field {
	margin: 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.gallia-ca-fieldset {
	border: none;
	padding: 0;
}

.gallia-ca-field label,
.gallia-ca-fieldset legend {
	font-weight: 600;
	font-size: 0.92rem;
}

.gallia-ca-required {
	color: #c0392b;
}

/* Chantier "Communauté payante, sélecteur, carte latérale" (2026-08-25,
   suite), point 1 — texte d'aide sous le libellé "Descriptif du projet". */
.gallia-ca-field-hint {
	margin: -0.15rem 0 0;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--gallia-text-muted, #666);
}

/* Même correctif que gallia-subscribe-oneclick/modal.css (bordure/arrondi
   codés en dur #ccc/8px au lieu des jetons partagés --gallia-border/
   --gallia-radius-input) — trouvé en balayant tous les champs du site. */
.gallia-ca-field input[type="text"],
.gallia-ca-field input[type="email"],
.gallia-ca-field input[type="tel"],
.gallia-ca-field textarea {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--gallia-border, #e4e4e4);
	border-radius: var(--gallia-radius-input, 8px);
	font-size: 0.95rem;
	font-family: inherit;
}

.gallia-ca-field input:focus,
.gallia-ca-field textarea:focus {
	outline: 2px solid var(--gallia-cta-yellow, #F8D481);
	outline-offset: 1px;
}

.gallia-ca-radio-label {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 400;
	margin-right: 1.5rem;
}

.gallia-ca-channel-links[hidden] {
	display: none;
}

.gallia-ca-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.4rem;
	/*
	 * Chantier "corrections complémentaires façon Skool" (2026-08-22,
	 * session suivante), Partie 14 : ce bouton avait sa PROPRE valeur
	 * codée en dur (999px + hover #e6b400, jamais la vraie variable de
	 * marque) — trouvé en cherchant tous les boutons jaunes du site, pas
	 * repéré à la seule lecture d'un chantier précédent. Corrigé pour
	 * référencer les MÊMES variables partagées que le reste du site
	 * (brand.css), pour qu'un futur changement de radius/couleur de survol
	 * n'ait plus jamais besoin d'être répété ici à la main.
	 */
	border-radius: var(--gallia-radius-pill, 4px);
	border: none;
	background: var(--gallia-cta-yellow, #F8D481);
	color: #0f0f0f;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.1s ease;
}

.gallia-ca-submit:hover:not(:disabled),
.gallia-ca-submit:focus:not(:disabled) {
	/* --gallia-yellow-hover (pas --gallia-cta-yellow-hover, l'alias local de
	   modal.css) : cette page n'a aucune garantie de charger modal.css,
	   alors que gallia-brand/brand.css est chargé globalement (priorité 5,
	   toutes pages) — source canonique directe. */
	background: var(--gallia-yellow-hover, #F1D07C);
}

.gallia-ca-submit:disabled {
	background: #e9e9e9;
	color: #8a8a8a;
	cursor: default;
}

.gallia-ca-error {
	background: #fdecea;
	border: 1px solid #c0392b;
	color: #c0392b;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
}

.gallia-ca-error[hidden] {
	display: none;
}

.gallia-ca-success {
	background: #eafaf0;
	border: 1px solid #2ecc71;
	border-radius: 8px;
	padding: 1.25rem;
	font-weight: 600;
}

.gallia-ca-success[hidden] {
	display: none;
}

/* ---------- Honeypot (même technique que gallia-signup-guard/honeypot.css :
   hors-écran plutôt que display:none, pour rester indétectable par un simple
   test de style calculé — voir ce fichier pour le détail complet). Copié
   plutôt que partagé car ce fichier n'est enqueue que sur les pages avec le
   formulaire d'inscription léger, pas ici. ---------- */

.gallia-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 0;
}

.gallia-hp-field-label {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
