/*
Theme Name: France
Theme URI: https://whodunit.fr/france-wordpress-theme
Author: Jb Audras & Whodunit
Author URI: https://whodunit.fr/
Description: This theme uses the French governement Design System.
Version: 1.0.0
Tested up to: 6.1
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: france
Tags: block-styles, block-patterns, editor-style, full-width-template, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme uses the France Design System, which aims to be used by all the French governement related websites.
This theme, like WordPress, is licensed under the GPL.

It was created by Whodunit, a well-known French WordPress agency.

France is (kinda) based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/**
 * Layout
 */
body {
	overflow-x: hidden;
}
.site-main {
	margin-top: 4rem;
	margin-bottom: 6rem;
}
body.home .site-main {
	margin-top: 0;
}
#page.site > .fr-mb-6v {
	margin-bottom: 0 !important;
}
.clear {
	clear: both;
}
@media screen and (max-width: 1000px) {
	.fr-col-3 {
		flex: auto;
		width: auto;
		max-width: none;
	}
	.fr-header__tools {
		display: none;
	}
	.fr-header__service-tagline {
		display: none;
	}
	.fr-btn--search {
		display: none;
	}
}

/**
 * Header
 */
.fr-header__logo {
	order: 0;
}
.theme-preferences {
	margin: 0.5rem 0;
	font-size: 0.8rem;
}

/**
 * Posts list
 */
.sticky .fr-card {
	border: 3px solid var(--bf500);
}
.fr-card__desc {
	font-size: 1rem;
}
.fr-card__body h2 {
	font-size: 1.5rem;
}
.fr-card__img {
	margin: 1em 0 1em 1em;
}
/**
 * Single post layout
 */
.entry-title {
	margin-bottom: 1em;
	word-wrap: break-word;
}
.entry-meta, .entry-footer {
	display: inline-block;
	padding: .3rem .75rem;
	margin-bottom: 2rem;
	font-size: 0.8rem;
	background: var(--bf100-g750);
}
.entry-footer {
	clear: both;
	margin-top: 2rem;
	margin-bottom: 0;
}

/**
 * Blocks
 */
.blocks-gallery-item:before {
	content: "";
}
.site-main p {
	margin-bottom: 1rem;
}
.site-main img {
	max-width: 100%;
	height: auto;
}
.wp-block-image {
	margin: 0 0 1rem 0;
}
.alignright {
	float: right;
	margin-right: 0;
	margin-left: 2rem;
}
.alignleft {
	float: left;
	margin-left: 0;
	margin-right: 2rem;
}
.alignwide {
	margin-left: -100px;
	margin-right: -100px;
	max-width: 1200px;
}
.alignfull {
	margin-left: calc( -100vw / 2 + 100% / 2 );
	margin-right: calc( -100vw / 2 + 100% / 2 );
	max-width: 100vw;
	width: auto;		
}
.wp-block-group__inner-container {
	padding: 1.5rem;
}
.entry-content > .wp-block-group:first-of-type .wp-block-group__inner-container {
	padding: 0rem;
}
.wp-block-separator.is-style-default {
	margin: 2rem auto;
	width: 50%;
	border: 0 none;
	border-bottom: 1px solid var(--g300);
}
/* Citations */
.fr-highlight, .wp-block-quote {
	font-size: 1rem;
	line-height: 1.5rem;
	padding-left: 1rem;
	border-left: 0.25rem solid var(--bf500);
}
.fr-highlight p, .wp-block-quote p {
	margin-bottom: 0;
}
.wp-block-quote.has-text-align-right {
	padding-left: 0;
	border-left: 0 none;
	padding-right: 1rem;
	border-right: 0.25rem solid var(--bf500);
}
.wp-block-pullquote {
	margin: 2rem 0;
	padding: 2rem 0;
	border-top: 0.25rem solid var(--bf500);
	border-bottom: 0.25rem solid var(--bf500);
}
figcaption {
	font-size: 0.8em;
}
@media (min-width: 48em) {
	.fr-highlight, .wp-block-quote, .wp-block-pullquote {
		padding-left: 2rem;
		margin-left: 2rem;
	}
}
/* Buttons */
.entry-content a.wp-block-button__link,
input[type="submit"] {
	border-radius: 0;
	border: 0 none;
	--text-spacing: 0;
	--title-spacing: 0;
	--underline-img: none;
	--hover-tint: #fff;
	--idle: transparent;
	--hover: #1212ff;
	--active: #1212ff;
	align-items: center;
	background-color: #000091;
	color: #fff;
	display: inline-flex;
	flex-direction: row;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5rem;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	margin: .5rem 0 1rem;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
}
.entry-content a.wp-block-button__link:hover,
.entry-content a.wp-block-button__link:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
	background-color: #1212ff;
	color: #fff;
}
.wp-block-button a.has-background {
	box-shadow: 0;
	transition: box-shadow 0.5s;
}
.wp-block-button a.has-background:hover,
.wp-block-button a.has-background:focus {
	box-shadow: 0px 0px 0px 2px #fff;
}


/**
 * Widgets
 */
.widget-area {
	margin-bottom: 3rem;
}
.widget-title {
	font-size: 1.2rem;
}
.widget__container {
	align-items: flex-start;
}
.widget__body {
	align-items: flex-start;
}
.widget__body ul {
	margin: 0 0 1.5em 0;
}

/**
 * Misc
 */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text.skip-link:focus {
	background-color: #eee;
	clip: auto !important;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
.entry-content a, .entry-content a:link {
	color: #0762c8;
	box-shadow: 0 1px 0 0 #0762c8;
}
.entry-content a:hover, .entry-content a:focus,
.widget-area a:hover, .widget-area a:focus {
	color: #0762c8;
	box-shadow: 0 2px 0 0 #0762c8;
}
.wp-block-button a {
	box-shadow: none !important;
}
.wp-block-button a:hover, .wp-block-button a:focus {
	outline: 3px solid #0762c8;
}
/* Accordion */
.fr-accordions-group {
	margin: 2.5em 0 1em;
}
.fr-collapse {
	max-height: none;
}
/* Fil d'ariane - breacrumbs YOAST */
#breadcrumbs {
	font-size: 0.8em;
	margin-bottom: 2em;
}
#breadcrumbs li {
	display: inline-block;
	list-style-type: none;
}
#breadcrumbs li:before {
	display: none;
	content: '';
}
#breadcrumbs a {
	box-shadow: none;
}
#breadcrumbs a:hover, #breadcrumbs a:focus, #breadcrumbs a:active {
	text-decoration: underline;
}
#breadcrumbs li:after {
	content: " ⟩ ";
}
#breadcrumbs li:last-child:after {
	content: "";
}

/*
 * Alert
 */
.fr-alert--info {
	box-shadow: inset 0 0 0 1px #0063cb,inset 2.5rem 0 0 0 #0063cb;
	--title-spacing: 0 0 0.25rem;
	--text-spacing: 0 0 0.25rem;
	padding: 1rem 2.25rem 0.75rem 3.5rem;
	position: relative;
}
.fr-alert--error:before, .fr-alert--info:before, .fr-alert--success:before, .fr-alert--warning:before {
	content: "";
}
.fr-alert:before {
	-webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTE5LjUgMi41aC0xNWMtMS4xIDAtMiAuOS0yIDJ2MTVjMCAxLjEuOSAyIDIgMmgxNWMxLjEgMCAyLS45IDItMnYtMTVjMC0xLjEtLjktMi0yLTJ6TTEzIDE3aC0ydi02aDJ2NnptMC04aC0yVjdoMnYyeiIvPjwvc3ZnPg==);
	mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PHBhdGggZD0iTTE5LjUgMi41aC0xNWMtMS4xIDAtMiAuOS0yIDJ2MTVjMCAxLjEuOSAyIDIgMmgxNWMxLjEgMCAyLS45IDItMnYtMTVjMC0xLjEtLjktMi0yLTJ6TTEzIDE3aC0ydi02aDJ2NnptMC04aC0yVjdoMnYyeiIvPjwvc3ZnPg==);
	--icon-size: 1.5rem;
	background-color: #fff;
	color: var(--text-inverted-grey);
	display: inline-block;
	flex: 0 0 auto;
	height: var(--icon-size);
	left: 0;
	margin: 1rem 0.5rem;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	position: absolute;
	top: 0;
	vertical-align: calc(0.375em - var(--icon-size)*0.5);
	width: var(--icon-size);
}
.fr-alert > .wp-block-group__inner-container {
	padding: 0;
}

/**
 * Pagination
 */
.nav-links {
	margin: 4rem 0 1rem 0;
	padding: 1rem 0 0 0;
	border-top: 1px solid var(--g400);
	border-bottom: 1px solid var(--g400);
	display: flex;
	justify-content: space-between;
	flex-direction: row-reverse;
}

/**
 * Comments
 */
.comments-area {
	margin-top: 5rem;
}
.comment-list {
	counter-reset: france-counter;
}
.comment-list > li {
	padding: 1rem 1rem 2rem;
	counter-increment: france-counter;
	position: relative;
}
.comment-list > li:before {
	content: counter( france-counter );
	position: absolute;
	right: 65px;
	top: 1rem;
	color: var(--g400);
	font-size: 4rem;
	font-weight: 300;
}
.comment-list .trackback .comment-body, .comment-list .pingback .comment-body {
	width: 80%;
}
.comment-list > li li {
	padding-left: 2rem;
	border-left: 1px solid var(--g400);
}
.comment-list > li li:before {
	content: "";
}
.comment-list > .odd {
	background: var(--g100);
}
.comment-list .comment-meta {
	padding-bottom: 1rem;
}
.comment-list .avatar {
	position: absolute;
	top: 0;
	right: 0;
}
.comment-list .reply {
	text-align: right;
}

/**
 * Gutenberg colors and font-sizes
 */
/* Colors */
.has-blue-france-background-color {
	background-color: #000091;
	border-color: #000091;
}
.has-blue-france-color {
	color: #000091;
}
.has-white-background-color {
	background-color: #ffffff;
	border-color: #ffffff;
}
.has-white-color {
	color: #ffffff;
}
.has-red-marianne-background-color {
	background-color: #E1000F;
	border-color: #E1000F;
}
.has-red-marianne-color {
	color: #E1000F;
}
.has-blue-france-100-background-color {
	background-color: #F2F2F9;
	border-color: #F2F2F9;
}
.has-blue-france-100-color {
	color: #F2F2F9;
}
.has-blue-france-300-background-color {
	background-color: #9A9AFF;
	border-color: #9A9AFF;
}
.has-blue-france-300-color {
	color: #9A9AFF;
}
.has-blue-france-500-background-color {
	background-color: #000091;
	border-color: #000091;
}
.has-blue-france-500-color {
	color: #000091;
}
.has-blue-france-700-background-color {
	background-color: #00006D;
	border-color: #00006D;
}
.has-blue-france-700-color {
	color: #00006D;
}
.has-grey-100-background-color {
	background-color: #F8F8F8;
	border-color: #F8F8F8;
}
.has-grey-100-color {
	color: #F8F8F8;
}
.has-grey-300-background-color {
	background-color: #E7E7E7;
	border-color: #E7E7E7;
}
.has-grey-300-color {
	color: #E7E7E7;
}
.has-grey-500-background-color {
	background-color: #9C9C9C;
	border-color: #9C9C9C;
}
.has-grey-500-color {
	color: #9C9C9C;
}
.has-grey-700-background-color {
	background-color: #383838;
	border-color: #383838;
}
.has-grey-700-color {
	color: #383838;
}
.has-grey-800-background-color {
	background-color: #1E1E1E;
	border-color: #1E1E1E;
}
.has-grey-800-color {
	color: #1E1E1E;
}
.has-beige-background-color {
	background-color: #F9F8F6;
	border-color: #F9F8F6;
}
.has-beige-color {
	color: #F9F8F6;
}
.has-green-light-background-color {
	background-color: #91AE4F;
	border-color: #91AE4F;
}
.has-green-light-color {
	color: #91AE4F;
}
.has-green-warm-background-color {
	background-color: #169B62 !important;
	border-color: #169B62;
}
.has-green-warm-color {
	color: #169B62;
}
.has-green-dark-background-color {
	background-color: #466964;
	border-color: #466964;
}
.has-green-dark-color {
	color: #466964;
}
.has-green-soft-background-color {
	background-color: #00AC8C;
	border-color: #00AC8C;
}
.has-green-soft-color {
	color: #00AC8C;
}
.has-yellow-dark-background-color {
	background-color: #FDCF41;
	border-color: #FDCF41;
}
.has-yellow-dark-color {
	color: #FDCF41;
}
.has-orange-dark-background-color {
	background-color: #E18863;
	border-color: #E18863;
}
.has-orange-dark-color {
	color: #E18863;
}
.has-orange-soft-background-color {
	background-color: #FF6F4C;
	border-color: #FF6F4C;
}
.has-orange-soft-color {
	color: #FF6F4C;
}
.has-purple-background-color {
	background-color: #7D4E5B;
	border-color: #7D4E5B;
}
.has-purple-color {
	color: #7D4E5B;
}
.has-brown-background-color {
	background-color: #A26859;
	border-color: #A26859;
}
.has-brown-color {
	color: #A26859;
}
/* Fonts */
.has-huge-font-size {
	font-size: 3em;
	line-height: 1.5em;
}
.has-large-font-size {
	font-size: 2em;
	line-height: 1.2em;
}
.has-normal-font-size {
	font-size: 1em;
	line-height: 1em;
}
.has-small-font-size {
	font-size: 0.8em;
	line-height: 1.2;
}

/* Dark mode */
:root[data-fr-theme=dark i] .has-background {
	background: rgba(65,65,65,0.5);
}
#fr-theme-modal .fr-radio-rich__img {
	box-shadow: inset 1px 0 0 0 var(--border-default-grey);
	display: flex;
	filter: brightness(var(--brightness));
	flex-direction: row;
	height: 5rem;
	padding-left: 0.25rem;
	pointer-events: none;
	position: absolute;
	right: 0.25rem;
	top: 0.25rem;
	width: 5.25rem;
}
#fr-theme-modal .fr-radio-group {
	position: relative;
}
:root[data-fr-theme=dark i] textarea {
	background: rgb(56, 56, 56);
}