/*
Theme Name: D'un Seul Geste
Theme URI: https://breakdance.com/zero-theme // todo
Author: Steven DIAI
Author URI: https://www.steven-diai.fr
Description: Entirely disables the WordPress theme system and lets you design every part of your site with Breakdance, while keeping other theme functionality like templates overrides and functions.php.
Version: 1.0.0
Tested up to: 5.9
Requires PHP: 7
License: GNU General Public License v2 or later // todo no idea about this
License URI: LICENSE
Text Domain: breakdance

Requires Breakdance to be installed.
/*--------------------------------------------------------------*/

html,body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

html {
	font-size: 62.5%;
	scroll-behavior: smooth;
}

body {

}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	//list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

b, strong {
	font-weight: bold;
}

/* Styles généraux du formulaire */
.gform_wrapper .gform_fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}

.gform_wrapper .gform_fields label {
	color: #022EED;
	display: block;
	font-size: 1.6rem;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	margin-bottom: .5rem;
}

.gform_wrapper .gform_required_legend {
	color: #FF5757;
	font-size: 1.2rem;
	text-align: left;
	margin-bottom: 1rem;
}

/* Styles communs pour les champs */
.gform_wrapper .gfield {
	margin-bottom: 1.5rem;
}

.gform_wrapper .gfield:not(.gfield--type-textarea):not(.gfield--type-choice) {
	grid-column: 1;
}

.gform_wrapper .gfield:not(.gfield--type-textarea):not(.gfield--type-choice) input {
	height: 3.9rem;
	border-radius: 3.8rem;
	border: 1px solid #022EED;
	width: 100%;
}

.gform_wrapper .gfield_error:not(.gfield--type-textarea):not(.gfield--type-choice) input {
	border-color: #FF5757;
}

/* Champ textarea */
.gform_wrapper .gfield--type-textarea {
	grid-column: 2;
	margin-bottom: 0;
	grid-row: 1 / span 5;
}

.gform_wrapper .gfield--type-textarea .ginput_container,
.gform_wrapper .gfield--type-textarea textarea {
	height: 95%;
}

.gform_wrapper .gfield--type-textarea textarea {
	border-radius: 1.3rem;
	border: 1px solid #022EED;
	padding: 2rem;
	width: 100%;
}

.gform_wrapper .gfield--type-textarea.gfield_error textarea {
	border-color: #FF5757;
}

/* Champs de type choix */
.gform_wrapper .gfield--type-choice {
	grid-column: 2;
	margin-top: 2.5rem;
}

/* Champs cachés et avertissements */
.gform_wrapper .gfield_visibility_hidden {
	display: none;
}

.hidden_label .gfield_label {
	display: none;
}

.gform_wrapper .partial_entry_warning {
	font-size: 1.2rem;
	margin-bottom: 1.5rem !important;
}

.gform_wrapper .gfield_validation_message {
	display: none;
}

/* Conteneur de validation caché */
.gform_wrapper .gform_validation_container,
.gform_wrapper li.gform_validation_container,
.gform_wrapper .gform_body ul.gform_fields li.gfield.gform_validation_container,
.gform_wrapper ul.gform_fields li.gfield.gform_validation_container {
	display: none !important;
	position: absolute !important;
	left: -9000px;
}

.gfield_checkbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Masquer la checkbox originale */
.gfield-choice-input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* Créer le bouton toggle */
.gfield-choice-input[type="checkbox"] + label {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	padding-left: 4.5rem; /* Ajustez selon la taille de votre toggle */
	font-size: 1.2rem;
	color: #022EED;
	text-align: center;
}

/* Créer l'arrière-plan du toggle */
.gfield-choice-input[type="checkbox"] + label::before {
	content: '';
	position: absolute;
	left: 0;
	width: 50px; /* Largeur du toggle */
	height: 24px; /* Hauteur du toggle */
	border-radius: 12px;
	background-color: #ccc; /* Couleur quand désactivé */
	transition: background-color 0.3s;
}

/* Créer le cercle du toggle */
.gfield-choice-input[type="checkbox"] + label::after {
	content: '';
	position: absolute;
	left: 2px;
	width: 20px; /* Diamètre du cercle */
	height: 20px; /* Diamètre du cercle */
	border-radius: 50%;
	background-color: white;
	transition: transform 0.3s;
}

/* Style quand le toggle est activé */
.gfield-choice-input[type="checkbox"]:checked + label::before {
	background-color: #022EED; /* Couleur bleue quand activé */
}

.gfield-choice-input[type="checkbox"]:checked + label::after {
	transform: translateX(26px); /* Déplacer le cercle */
}

.gform_footer {
	margin-top: 2rem;
}
.gform_footer .gform_button {
	background: #022EED;
	border-radius: 47px;
	border: none;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 300;
	text-transform: uppercase;
	padding: 1.3rem 6.4rem;
	width: 100%;
	&:hover {
		background: #0325B9;
		cursor: pointer;
	}
}

@media (max-width: 1024px) {
	.gfield_checkbox {
		justify-content: flex-start;
		gap: 2rem;
	}
	.gfield-choice-input[type="checkbox"] + label {
		padding-left: 5.5rem;
	}
}

/* Media query pour les écrans mobiles */
@media (max-width: 768px) {
	.gform_wrapper .gform_fields {
		grid-template-columns: 1fr;
	}

	.gform_wrapper .gfield--type-textarea,
	.gform_wrapper .gfield--type-choice {
		grid-column: 1;
	}

	.gform_wrapper .gfield--type-textarea {
		grid-row: auto;
	}
}

@media (max-width: 576px) {
	.gfield_checkbox {
		flex-direction: column;
		justify-content: start;
		align-items: start;
	}
}

/*
.bde-posts-pagination {
	position: relative;
	&:before {
		content: url('/wp-content/themes/dunseulgeste/img/arrow-right.png');
		display: table;
		margin: 0 auto;
		height: 2.9rem;
		width: 2.8rem;
		position: absolute;
		top: -5rem;
		left: 0;
		right: 0;
		z-index: 1;
	}
}
*/

.category-title {
	background: #e76e70;
	color: #fff;
	padding: 1rem;
	display: table
}

.title {
	font-weight: 500;
	font-size: 3.2rem;
	margin-top: 1.5rem
}

.content .banner {
	margin-bottom: 2.5rem
}

.content_flexible h2 {
	position: relative;
	color: #000;
	margin-bottom: 1.5rem;
	font-size: 3.6rem;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 3.7rem
}

.content_flexible p {
	margin-bottom: 1.5rem
}

.content_flexible ul {
	padding-left: 4rem;
	margin-bottom: 1.5rem;
}

.content_flexible a {
	color: #e76e70
}

.content_flexible .content_img {
	margin-bottom: 5rem
}

.content_flexible .resources {
	margin-top: 2.5rem
}

.content_flexible .resources>div a {
	background: #e76e70;
	color: #fff;
	display: block;
	padding: 1rem
}


