.tx-powermail fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.powermail_legend {
	font-size: 1.2rem;
	font-weight: bold;
	margin: 0 0 1rem 0;
}

.powermail_fieldwrap_nom {
	float: left;
}

.gPageFormulaire {	
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.gPageFormulaire-Contenu {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.gPageFormulaire h1 {
	width: 100%;
}

.gPageFormulaire-Formulaire {
	flex: 1;
	height: 100%;
}

.gPageFormulaire-Formulaire form h3 {
	display: none;
}

.gPageFormulaire-Lateral {
	flex-basis: 30%;
	height: 100%;
}

.gFormulaire-Description {
	display: none;
}
/*********************************************************************************************************************/
/**************************************************************************************************** Sondage Page ***/
/*********************************************************************************************************************/

.gFormulaire-SondagePage {
	overflow: hidden;
}

.gFormulaire-SondagePage fieldset {
	border: none;
	padding: 0 1rem;
	margin: 0;
}

.gFormulaire-SondagePage h3 {
	width: 100%;
	color: #ffffff;
	background-color: #095797;
	padding: 1rem;
	margin: 1rem 0;
}

.gFormulaire-SondagePage legend {
	display: none;
}

.gFormulaire-SondagePage .radio {
	padding: 1rem 1rem 1rem 0;
}

.gFormulaire-SondagePage .mandatory {
	display: none;
}

.gFormulaire-SondagePage .powermail_fieldwrap_type_radio .powermail_field {
	display: flex;
	flex-direction: row;
}

.gFormulaire-SondagePage .powermail_textarea {
	width: 60%;
	min-width: 500px;
	margin: 1rem 0;	
}

.gFormulaire-SondagePage .powermail_fieldwrap_commentaires,
.gFormulaire-SondagePage .powermail_fieldwrap_soumettre {
		display: none;
}

.gFormulaire-SondagePage .powermail_submit {
	font-size: 1.1rem;
	border: none;
	color: #ffffff;
	background-color: #095797;
	padding: 0.5rem 4rem;
	cursor: pointer;
}

.tx-powermail a, .tx-powermail a:hover {
    color: #095797;
}

.powermail_label {
    margin-bottom: 4px;
    font-weight: 700;
    display: inline-block;
    color: #223654;
}

.mandatory {
    margin-left: 6px;
    color: #cb381f!important;
    font-weight: bold;
}

.complementLabel {
    color: #223654;
    font-weight: 400;
    display: flex;
}

.powermail_fieldwrap_type_input .powermail_field,
.powermail_fieldwrap_type_textarea .powermail_field {
    display: flex;
    flex-direction: column;
}

/* Champs texte*/

input, textarea, button.gFormulaire-button-upload-file {
    font-size: 1rem;
    font-family: inherit;
}

input[type="date"] {
    /* pour safari */
    -webkit-appearance: none;
    border-radius: 0px;
    background-color: white;
}

/* Champ extra large */
.champ-extra-large .powermail_field input,
.champ-extra-large .powermail_field textarea {
    width: 510px;
}

.champ-extra-large {
    width: 528px;
}

.champ-extra-large .powermail_field input.powermail_field_error,
.champ-extra-large .powermail_field textarea.powermail_field_error {
    width: 506px;
}

.champ-extra-large .powermail_field input:focus,
.champ-extra-large .powermail_field textarea:focus {
    width: 508px;
}

/* Champ large */
.champ-large .powermail_field input {
    width: 231px;
}

.champ-large {
    width: 249px;
}

.champ-large .powermail_field input.powermail_field_error {
    width: 227px;
}

.champ-large .powermail_field input:focus {
    width: 229px;
}

/* Champ moyen */
.champ-moyen .powermail_field input {
    width: 138px;
}

.champ-moyen {
    width: 156px;
}

.champ-moyen .powermail_field input.powermail_field_error {
    width: 134px;
}

.champ-moyen .powermail_field input:focus {
    width: 136px;
}

/* Champ petit */
.champ-petit .powermail_field input {
    width: 45px;
}

.champ-petit {
    width: 63px;
}

.champ-petit .powermail_field input.powermail_field_error {
    width: 41px;
}

.champ-petit .powermail_field input:focus {
    width: 43px;
}

.champ-extra-large,
.champ-large,
.champ-moyen,
.champ-petit {
    margin-bottom: 32px;
    margin-right: 32px;
    display: flex;
    flex-direction: column;
}

.champ-extra-large .powermail_field input,
.champ-large .powermail_field input,
.champ-moyen .powermail_field input,
.champ-petit .powermail_field input {
    height: 22px;
}

.champ-extra-large .powermail_field input,
.champ-large .powermail_field input,
.champ-moyen .powermail_field input,
.champ-petit .powermail_field input,
textarea {
    border: 1px solid #808A9D;
    padding: 8px;
}

.powermail_input, .powermail_textarea {
    border-radius: 0px;
}

.powermail_fieldwrap_type_input input.powermail_field_error, 
.powermail_fieldwrap_type_date input.powermail_field_error,
.powermail_fieldwrap_type_textarea textarea.powermail_field_error,
.powermail_fieldwrap_type_select select.powermail_field_error {
    border: 3px solid #cb381f;
}

.powermail_input.powermail_field_error:not(.powermail_field_error:focus),
.powermail_date.powermail_field_error:not(.powermail_field_error:focus) {
    height: 18px;
}

.champ-extra-large .powermail_field input:focus,
.champ-large .powermail_field input:focus,
.champ-moyen .powermail_field input:focus,
.champ-petit .powermail_field input:focus,
.champ-extra-large .powermail_field textarea:focus {
    outline: 2px solid #4a98d9 !important;
    border: 2px solid #5b6476 !important;
}

.champ-extra-large .powermail_field input:focus,
.champ-large .powermail_field input:focus,
.champ-moyen .powermail_field input:focus,
.champ-petit .powermail_field input:focus {
    height: 20px;
}

/* message d'erreur */

.powermail-errors-list {
    list-style-type: none;
    margin-top: 8px;
    margin-bottom: 0px;
    padding-left: 0px;
}

.powermail-errors-list li {
    font-weight: bold !important;
    color: #cb381f !important;
}

.powermail_message.powermail_message_error li {
    color: #cb381f;
}

/* Liste déroulante */

select {
    border-radius: 0px;
    height: 40px;
    padding: 8px;
}

.select-petit,
.select-moyen,
.select-grand {
    margin-bottom: 32px;
    margin-right: 32px;
    display: flex;
    flex-direction: column;
}
.select-petit,
.powermail_fieldwrap_type_select.select-petit .powermail_field select {
    width: 156px;
}

.select-moyen,
.powermail_fieldwrap_type_select.select-moyen .powermail_field select{
    width: 342px;
}

.select-grand,
.powermail_fieldwrap_type_select.select-grand .powermail_field select{
    width: 528px;
}

select:focus {
    outline: 2px solid #4a98d9 !important;
    border: 2px solid #5b6476 !important;
}

/* boutons */

.btn-principal:disabled,
.btn-secondaire:disabled,
.btn-tertiaire:disabled,
.btn-danger:disabled {
    opacity: 0.65;
}

.btn-principal,
.btn-secondaire,
.btn-tertiaire,
.btn-danger {
    margin-bottom: 32px;
}

/* bouton principal */
.btn-principal .powermail_field input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    display: inline-block;
    box-sizing: border-box;
    min-width: 112px;
    padding: 14px 22px;
    transition: all 0.24s ease-in-out;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    color: #fff;
    border-color: #095797;
    background-color: #095797;
    box-shadow: 0 1px 4px rgba(34, 54, 84, 0.16);
    /* pour safari */
    -webkit-appearance: none;
}

.btn-principal .powermail_field input[type="submit"]:hover:enabled {
    border-color: #156bb2;
    background-color: #156bb2;
}

.btn-principal .powermail_field input[type="submit"]:focus {
    border-color: #223654;
    background-color: #156bb2;
    box-shadow: 
        0 2px 8px rgba(34, 54, 84, 0.16),
        0 0 0 2px #4a98d9;
}

.btn-principal .powermail_field input[type="submit"]:active:enabled {
    border-color: #3783c9;
    background-color: #3783c9;
}

/* bouton secondaire */
.btn-secondaire .powermail_field input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    display: inline-block;
    box-sizing: border-box;
    min-width: 112px;
    padding: 14px 22px;
    transition: all 0.24s ease-in-out;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    color: #095797;
    background-color: transparent;
    border-color: #095797;
}
.btn-secondaire .powermail_field input[type="submit"]:hover:enabled {
    background-color: rgba(9, 87, 151, 0.16);
}
.btn-secondaire .powermail_field input[type="submit"]:focus {
    border-color: #223654;
    background-color: rgba(9, 87, 151, 0.16);
    box-shadow: 0 0 0 2px #4a98d9;
}
.btn-secondaire .powermail_field input[type="submit"]:active:enabled {
    background-color: rgba(9, 87, 151, 0.08);
}

/* bouton tertiaire */
.btn-tertiaire .powermail_field input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    display: inline-block;
    box-sizing: border-box;
    min-width: 112px;
    padding: 14px 22px;
    transition: all 0.24s ease-in-out;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    color: #095797;
    background-color: transparent;
}
.btn-tertiaire .powermail_field input[type="submit"]:hover:enabled {
    text-decoration: underline;
    background-color: rgba(197, 202, 210, 0.24);
}
.btn-tertiaire .powermail_field input[type="submit"]:focus {
    border-color: #223654;
    background-color: rgba(197, 202, 210, 0.24);
    box-shadow: 0 0 0 2px #4a98d9;
}
.btn-tertiaire .powermail_field input[type="submit"]:active:enabled {
    background-color: rgba(197, 202, 210, 0.16);
}

/* bouton d'avertissement */
.btn-danger .powermail_field input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
    line-height: 24px;
    display: inline-block;
    box-sizing: border-box;
    min-width: 112px;
    padding: 14px 22px;
    transition: all 0.24s ease-in-out;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0;
    color: #fff;
    border-color: #cb381f;
    background-color: #cb381f;
}
.btn-danger .powermail_field input[type="submit"]:hover:enabled {
    border-color: #b52e16;
    background-color: #b52e16;
}
.btn-danger .powermail_field input[type="submit"]:focus {
    border-color: #223654;
    background-color: #b52e16;
    box-shadow: 0 0 0 2px #4a98d9;
}
.btn-danger .powermail_field input[type="submit"]:active:enabled {
    border-color: #eb705a;
    background-color: #eb705a;
}

/* css spécifique pour boutons compacts */
.bouton-compact {
    font-weight: 600;
    min-width: 80px;
    padding: 7px 15px;
    border: 1px solid transparent;
}

/* boutons sur même ligne */
.bouton-row-compact {
    margin: 24px;
}

/* boutons placés un en dessous de l'autre */
.bouton-column-compact {
    margin-bottom: 16px;
}

.bouton-arrondi {
    border-radius: 4px;
}

/* boutons sur même ligne */
.bouton-row-standard {
    margin: 32px;
}

/* boutons placés un en dessous de l'autre */
.bouton-column-standard {
    margin-bottom: 24px;
}

/* icon dans un bouton */
.icon-bouton {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.hide-msg {
    display: none;
}

.show-msg {
    display: block;
}


/* Boutons radio */
.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_radio .powermail_label {
    margin-bottom: 16px;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_radio .radio {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_radio span.gFormulaire-Description {
    margin-bottom: 0.9rem;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_radio .radio label {
    display: inline-block;
	padding-top: 0.2em;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_radio .radio input {
    display: block;
	margin-left: 0;
	margin-right: 0.5em;
}

/* input file */
.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file input[type="file"]::file-selector-button,
.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file input[type="file"]::-webkit-file-upload-button {
    /* au lieu de display: none, j'ai ajouté ces propriétés car pour cas téléphones IOS, display: none */
    /* ne fonctionne pas comme voulu */
    width: 0px;
    height: 0px;
    overflow: hidden;
    border: none;
    background-color: #ffffff;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file .powermail_field {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}

.gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file .gFormulaire-button-upload-file {
    margin-right: 0.5rem;
}

/*********************************************************************************************************************/
/****************************************************************************************************** media 1024 ***/
/*********************************************************************************************************************/

@media (max-width: 1024px) {
	.gFormulaire-SondagePage .powermail_textarea {
		width: 98%;
	}
}

/*********************************************************************************************************************/
/******************************************************************************************************* media 640 ***/
/*********************************************************************************************************************/

@media (max-width: 640px) {
    .champ-extra-large .powermail_field input,
    .champ-extra-large .powermail_field textarea,
    .champ-extra-large .powermail_field input.powermail_field_error, 
    .champ-extra-large .powermail_field textarea.powermail_field_error,
    .champ-extra-large .powermail_field input:focus, 
    .champ-extra-large .powermail_field textarea:focus {
        width: auto;
    }

    .champ-extra-large {
        width: 100%;
    }

    .btn-principal .powermail_field input[type="submit"],
    .btn-secondaire .powermail_field input[type="submit"],
    .btn-tertiaire .powermail_field input[type="submit"],
    .btn-danger .powermail_field input[type="submit"] {
        width: 100%;
    }

    .powermail_fieldwrap_type_select.select-grand {
        width: 100%;
    }

    .powermail_fieldwrap_type_select.select-grand .powermail_field select {
        width: 100%;
    }

    /* input file */
    .gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file .powermail_field {
        display: flex;
        flex-direction: column-reverse;
        justify-content:unset;
        align-items: normal;
    }

    .gPageFormulaire-Formulaire .gFormulaire-Base .powermail_fieldwrap_type_file .gFormulaire-button-upload-file {
        margin-right: 0rem;
        margin-bottom: 0.5rem;
    }
}