/* Ajustements Amplitude Sellerie hors tokens SurveyJS (survey-core 3.2.1) */
#surveyContainer {
	font-family: Roboto, Helvetica, sans-serif;
	font-weight: 300;
}

#surveyContainer .sd-title,
#surveyContainer .sd-page__title,
#surveyContainer .sd-question__title {
	font-weight: 300;
}

#surveyContainer .sd-navigation__complete-btn,
#surveyContainer .sd-navigation__next-btn,
#surveyContainer .sd-navigation__prev-btn {
	text-transform: uppercase;
	font-weight: 400;
}

/* Formulaire en une seule colonne, largeur de lecture limitée sur desktop */
#surveyContainer .sd-container-modern {
	max-width: 720px;
	margin: 0 auto;
}

/* Arrière-plan photo de la page (voile bleu-nuit comme sur le site).
   Calque fixe plutôt que background-attachment: fixed, ignoré par Safari iOS.
   Ne dépend pas de la structure du gabarit (#main absent de la page en ligne).
   main.css colore html ET body : le fond de body masquerait le calque, la couleur reste portée par html. */
html {
	background-color: #1c1d26;
}
body {
	background-color: transparent;
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(rgba(28, 29, 38, 0.88), rgba(28, 29, 38, 0.94)),
		url("https://amplitudesellerie.com/includes/assets/M.A.AMPLITUDE_028.jpg") center / cover no-repeat;
	background-color: #1c1d26;
	pointer-events: none;
}

/* Défilement automatique de SurveyJS (changement d'étape, erreur) : ne pas glisser sous l'en-tête collant */
#surveyContainer .sd-container-modern,
#surveyContainer .sd-page,
#surveyContainer .sd-question {
	scroll-margin-top: 140px;
}

/* Mobile : la barre de titre du gabarit (#titleBar, 100px) est fixe et ne réserve pas sa place.
   Ne s'applique que si le formulaire est posé directement dans <body> (intégration en ligne) ;
   sans effet si la section est un jour déplacée dans le conteneur .wrapper du gabarit. */
@media screen and (max-width: 736px) {
	body > section#content {
		padding-top: 100px;
	}
	#surveyContainer .sd-container-modern,
	#surveyContainer .sd-page,
	#surveyContainer .sd-question {
		scroll-margin-top: 110px;
	}
}

#surveyContainer .sd-container-modern__title {
	background:
		linear-gradient(rgba(28, 29, 38, 0.72), rgba(28, 29, 38, 0.85)),
		url("https://amplitudesellerie.com/includes/assets/M.A.AMPLITUDE_005.jpg") center 35% / cover no-repeat;
	border-radius: 6px 6px 0 0;
	min-height: 140px;
}

#surveyContainer .sd-root-modern {
	background-color: transparent;
}

/* Calque de fond du thème SurveyJS : laisse voir la photo de la page */
#surveyContainer .sd-root-modern::before {
	background: transparent;
}

/* Champs texte, e-mail et zones de texte : neutralise le style input/textarea du gabarit (main.css).
   Le cadre est dessiné par .sd-formbox ; sans cela, double bordure et hauteur différente
   des champs téléphone/nombre, que main.css ne cible pas. */
#surveyContainer input.sd-formbox__input,
#surveyContainer textarea.sd-formbox__input {
	border: none;
	border-radius: 0;
	height: auto;
	padding: var(--sjs2-layout-component-input-medium-content-padding-vertical) var(--sjs2-layout-component-input-medium-content-padding-horizontal);
	transition: none;
}

/* Champ de saisie des dropdown/tagbox : neutralise le style input[type="text"] du gabarit (main.css) */
#surveyContainer .sd-dropdown__filter-string-input {
	border: none;
	border-radius: 0;
	height: auto;
	padding: 0;
	transition: none;
}
#surveyContainer .sd-dropdown__filter-string-input:not(.sd-tagbox__filter-string-input) {
	display: inline-block;
}
#surveyContainer .sd-tagbox__filter-string-input {
	display: flex;
	height: 100%;
}

/* Mentions RGPD repliables */
#surveyContainer .rgpd-notice {
	font-size: 0.9rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}
#surveyContainer .rgpd-notice summary {
	cursor: pointer;
	font-weight: 400;
	color: #fff;
}
#surveyContainer .rgpd-notice p { margin: 0.6rem 0 0; }
#surveyContainer .rgpd-notice a { color: #fff; text-decoration: underline; }

/* Bouton « Réessayer » de la page d'échec d'envoi */
#surveyContainer [data-retry-send] {
	background: #e44c65;
	color: #fff;
	text-transform: uppercase;
	font-weight: 400;
}

/* Consentement : titre masqué, l'astérisque « obligatoire » est placé sur le libellé de la case */
#surveyContainer [data-name="rgpd_consentement"] .sd-item__control-label .sv-string-viewer::after {
	content: " *";
	color: #e44c65;
}
