/*
 Theme Name:   Thème Coam
 Theme URI:    https://agence-coam.fr/
 Description:  Thème de l'Agence Coam, basé sur GeneratePress.
 Author:       Agence Coam
 Author URI:   https://agence-coam.fr/
 Template:     generatepress
 Version:      0.1
*/

/* Fichier de personnalisation du site */


/* ---------- TYPOGRAPHIE ---------- */

/* Affecte la font family définie en "headings" dans la font library à tous les titres,
 * et à tous les textes ayant pour classe additionnelle "style-hX" */
h1,h2,h3,h4,h5,h6,[class*=style-h] {
	font-family: Phudu;	
	margin-bottom:clamp(1rem, 1.0303vw + .5352rem, 1.5rem);
}

/* Taille des titres et des textes ayant pour classe "style-hX".
 * Paramétré ici plutôt que dans le Customizer pour n'avoir à le changer qu'une fois
 * Ajouter les font-weight pour chaque niveau de titre. */

p {
	font-size:clamp(1rem, .3357vw + .8485rem, 1.125rem);
	margin-bottom:1.5rem;
	line-height:1.4;
}

h1, .style-h1 {
	font-size:clamp(2.353rem, 5.766vw + -.2485rem, 4.5rem);
	font-weight:600;
}

h2, .style-h2 {
	font-size:clamp(1.882rem, 4.3453vw + -.0785rem, 3.5rem);
	font-weight:600;
	line-height:1.2;
}

h3, .style-h3 {
	font-size:clamp(1.176rem, 2.4253vw + .0817rem, 2.353rem);
	font-weight:700;
	line-height:1.2;
}

h4, .style-h4 {
	font-size:clamp(1.5938rem, 1.3525rem + 0.9649vw, 2.1245rem);
	font-weight:600;
	line-height:1.2;
}

h5, .style-h5 {
	font-size:clamp(1.3281rem, 1.1271rem + 0.8041vw, 1.7704rem);
	font-weight:600;
	line-height:1.2;
}

h6, .style-h6 {
	font-size:clamp(1.1953rem, 1.0144rem + 0.7237vw, 1.5934rem);
	font-weight:600;
	line-height:1.2;
}

/* =====================
   CSS PERSONNALISÉ
======================== */


/*******Sign up form styling*******/

/*Sign up button style*/
.frm_style_formidable-style.with_frm_style .frm_submit button {
	width:100%;
  text-transform: uppercase;
	box-shadow:none;
}
/*Gap between fields*/
.frm_form_fields .frm_fields_container {
	grid-gap: 0 5%;
}
/*RGPD field*/
#frm_field_9_container {
	margin-top:5px;
}
.with_frm_style .frm_checkbox input[type="checkbox"] {
	border-radius:4px !important;
	margin-bottom:3px;
}

/**Footer**/
/*Email field size*/
.footer-section #frm_field_3_container {
	grid-column: span 8 / span 6;
}
/*Sign up button container size*/
.footer-section #frm_field_6_container {
	grid-column: span 4 / span 6;
}
/*No margin below consent checkbox*/
#frm_field_9_container {
	margin-bottom:0;
}

/**Join our community**/
/*Gap between fields*/
.form-container .frm_form_fields .frm_fields_container {
	grid-gap: 0 1.5%;
}
/*Name field size*/
.form-container #frm_field_1_container {
	grid-column: span 5 / span 6;
}
/*Email field size*/
.form-container #frm_field_3_container {
	grid-column: span 5 / span 6;
}
/*Sign up button container size*/
.form-container #frm_field_6_container {
	grid-column: span 2 / span 6;
}
/*RGPD field*/
.form-container #frm_field_9_container {
	margin-bottom:1.5rem;
}
/*Sign up button style*/
.form-container .frm_style_formidable-style.with_frm_style .frm_submit button {
	background:none;
	border-color:var(--dark-1);
	color:var(--dark-1);
}
.form-container .frm_style_formidable-style.with_frm_style .frm_submit button:is(:hover, :focus) {
	background-color:var(--dark-1);
	border-color:var(--dark-1);
	color:white;
}



/*******Facets styling*******/

/*All facets*/
.wpgb-facet div.wpgb-select {
	border:none;
	background-color:white;
	border-radius:100px;
	padding:.3rem .9rem;
}

.wpgb-facet button.wpgb-button {
	padding:0 !important;
	padding-bottom:4px !important;
	background:none;
	color:var(--dark-1) !important;
	text-transform:uppercase !important;
	font-size:.9rem !important;
	border-bottom:1px solid var(--dark-1) !important;
	border-radius:0 !important;
}

.wpgb-facet button.wpgb-button:hover {
	color:var(--dark-2) !important;
	border-bottom-color:var(--dark-2) !important;
}

.wpgb-facet.wpgb-loading button.wpgb-button {
	color:#cecece !important;
	border-bottom-color:#cecece !important;
}

.wpgb-facet > fieldset:last-child {
	margin-bottom:10px!important;
}