/* These styles are used in the backend editor AND in the Theme (frontend) */

/* Most themes nowadays provide an extra stylesheet of classes which WordPress itself then */
/* applies to the backend editor TinyMCE. However, custom CSS - set in Plugins, in the WP  */
/* Customizer or in Theme options, will normally not be reflected to TinyMCE. So better to */
/* put such styles all here, where they will apply to TinyMCE *and* the frontend.          */

/* The goal is not only to make the visual editor display look as much like the frontend as    */
/* possible, but also to make sure that all important CSS classes are available for convenient */
/* selection in TinyMCEs "Formats" dropdown - so do not forget to configure the TinyMCE styles */
/* dropdown with elements to match those here.                                                 */

/* If you do not need this file then upload an empty one (zero bytes) which will not be loaded at all. */

kbd {
  border-radius: 3px;
  font-family: Consolas, "Lucida Console", monospace;
  display: inline-block;
  line-height: normal;
  font-size: small;
  vertical-align: baseline;
  background: #eee;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  letter-spacing: 1px;
  border: 1px solid black;
  box-shadow: 1px 1px 1px #777;
  /* font-variant: small-caps; */
  padding: 3px 4px;
  margin: 1px 2px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
kbd:hover, kbd:hover * {
  color: black;
  /* box-shadow: 1px 1px 1px #333; */
}
kbd:active, kbd:active * {
  color: black;
  box-shadow: 1px 1px 0px #ddd inset;
}
kbd kbd:hover {
  box-shadow: 0px 0px 0px black;
}

kbd:active kbd {
  box-shadow: 0px 0px 0px black;
  background: none;
}


// Basic Classes

[data-elementor-device-mode="mobile"] .nobreak {
    display: inline-block;
}
.pad1b {
	padding-bottom: 1em;
}
.pad1t {
	padding-top: 1em;
}
.mar1b {
	margin-bottom: 1em;
}
.mar1t {
	margin-top: 1em;
}


.alignleft, .alignright {
    max-width: 50%;
    width: auto;
}

.alignleft {
    margin: 0 2.3rem 2.3rem 0;
}

.alignright {
    margin: 2.3rem 0 0 2.3rem;
}

.wp-block-buttons {
    margin-bottom: 2em;
}

.wp-block-gallery.has-nested-images {
    padding-top: 2em;
    clear: both;
}

mark.has-inline-color {
    background-color: inherit;
}

/* Correction accordeons */

.wp-block-accordion {
	.wp-block-accordion-item {
    padding-bottom: 2rem;
	}
	.wp-block-accordion-heading {
	background-color: var(--wp--preset--color--cf_primary);
	color: var(--wp--preset--color--white) ;
	padding-bottom: 0;
	margin-bottom: 0;
	font-size: 2rem;
	border-radius: 5px 5px 0 0 ;
		& button {
		padding-right: var(--wp--preset--spacing--20);
    		padding-left: var(--wp--preset--spacing--20);
		border-radius: 5px 5px 0 0 ;
			&.wp-block-accordion-heading__toggle {
    			box-shadow: none;
				&:active, &:hover, &:focus {
				background-color: var(--wp--preset--color--cf_tertiary);
				box-shadow: none;
				color: white;
				}
			}
		}
	}
	& .wp-block-accordion-panel {
    border-inline: 1px solid grey;
	border-block-end: 1px solid grey;
	border-radius: 0 0 5px 5px;
	padding: 0.6rem;
    margin-top: 0;    
	}
}

.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6).wp-block.has-background,
.editor-styles-wrapper .block-editor-block-list__block :is(h1, h2, h3, h4, h5, h6) {
    padding: 0;
    margin: 0;
}
.editor-styles-wrapper [data-block] {
    margin-top: 0px;
    margin-bottom: 0px;
}


#cmplz-manage-consent .cmplz-manage-consent {bottom: 0!important;}

/* Supprime le max-width de la page politique cookies */
#cmplz-document {
	max-width: inherit;
}

.cmplz-status-accepted, .cmplz-status-denied {
    margin: 1em 0;
}
button.cmplz-deny.cmplz-revoke-custom {
    margin-top: 1em;
}


/* Mobile adapt
-------------------------------------------------------------- */
@media screen and (max-width: 768px) {
	#inner-content a {line-break: anywhere;}
}


