/*
Theme Name:     Digisante-child
Theme URI:
Description:    Digisante child theme.
Author:         Digisanté
Author URI:     https://www.digisante.fr
Template:       digisante
Version:        0.1.0
*/

/*
WEBFONTS EN LOCAL : UTILISER CET OUTIL https://gwfh.mranftl.com/fonts
1/ Récupérer les graisses nécessaires puis télécharger l'archive avec Woff et Woff2 uniquement pour le subset Latin1
2/ Rajouter du font-display:swap pour chaque déclaration @font-face et modifier le chemin vers /fonts/
3/ Récupérer la fonte de fallback optimale ici : https://deploy-preview-15--upbeat-shirley-608546.netlify.app/perfect-ish-font-fallback/?font=Montserrat
4/ Modifier la déclaration générale avec une font-stack complète et un !important.
5/ Mettre en place le préchargement de la fonte utilisée en Regular et Bold via WP Rocket (dans sa version Woff2)
*/


@font-face {
    font-family: "PlayfairDisplay-fallback";
    size-adjust: 111.21%;
    ascent-override: 95%;
    src: local("Times New Roman");
}

/* playfair-display-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src:	local(''),
       	url('./fonts/playfair-display-v37-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       	url('./fonts/playfair-display-v37-latin-regular.woff') format('woff'); /* Legacy iOS */
}
/* playfair-display-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src:    local(''),
       url('./fonts/playfair-display-v37-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v37-latin-italic.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
}
/* playfair-display-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src:    local(''),
       url('./fonts/playfair-display-v37-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v37-latin-700.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
}
/* playfair-display-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  src:    local(''),
       url('./fonts/playfair-display-v37-latin-700italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v37-latin-700italic.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
}
/* playfair-display-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  src:    local(''),
       url('./fonts/playfair-display-v37-latin-900.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v37-latin-900.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
}
/* playfair-display-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 900;
  src:    local(''),
       url('./fonts/playfair-display-v37-latin-900italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v37-latin-900italic.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
}

body, input, textrea, .gfield_label {
    font-family: Arial, sans-serif !important;
}

h1 {
    font-family: Playfair Display, "PlayfairDisplay-fallback", Times New Roman, serif !important;
    font-weight: 900 !important;
	font-style: italic !important;
}

h2 {
    font-family: Playfair Display, "PlayfairDisplay-fallback", Times New Roman, serif !important;
    font-weight: 900 !important;
	font-style: normal !important;
}

h3, h4, .section_annuaire th {
    font-family: Playfair Display, "PlayfairDisplay-fallback", Times New Roman, serif !important;
    font-weight: 700 !important;
	font-style: normal !important;
}

.introduction, .section_annuaire th {
	font-size: 1.2rem !important;
}


 
/* Menu */
#site-navigation .menu-item-amf44 > a {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31' height='31' viewBox='0 0 31 31'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_122' data-name='Rectangle 122' width='31' height='31' transform='translate(612)' fill='%23e32219'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Groupe_de_masques_2' data-name='Groupe de masques 2' transform='translate(-612)' clip-path='url(%23clip-path)'%3E%3Cg id='Composant_2_74' data-name='Composant 2 – 74' transform='translate(618.668 8.221)'%3E%3Cpath id='Tracé_934' data-name='Tracé 934' d='M95.536,39.04S97.395,24.207,113.2,25.186c0,0-2.483,17.528-17.664,13.854' transform='translate(-95.536 -25.139)' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}

#site-navigation .menu-item-juridique > a {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31' height='31' viewBox='0 0 31 31'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_122' data-name='Rectangle 122' width='31' height='31' transform='translate(612)' fill='%23e32219'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Groupe_de_masques_2' data-name='Groupe de masques 2' transform='translate(-612)' clip-path='url(%23clip-path)'%3E%3Cpath id='gavel-light' d='M13.463.253a.713.713,0,0,1,0,.986l-.541.554,7.221,7.394.541-.554a.673.673,0,0,1,.963,0,.713.713,0,0,1,0,.986l-1.023,1.048-4.092,4.19L15.509,15.9a.673.673,0,0,1-.963,0,.713.713,0,0,1,0-.986l.541-.554L7.867,6.97l-.541.554a.673.673,0,0,1-.963,0,.713.713,0,0,1,0-.986L7.385,5.491,11.477,1.3,12.5.253a.673.673,0,0,1,.963,0ZM8.83,5.984l7.221,7.394,3.129-3.2L11.959,2.78ZM6.162,14.015,1.388,18.9,3.434,21,8.208,16.11ZM5.2,13.028a1.344,1.344,0,0,1,1.931,0l.541.554,2.123-2.174.963.986L8.634,14.569l.541.554a1.423,1.423,0,0,1,0,1.977L4.4,21.989a1.344,1.344,0,0,1-1.931,0l-2.046-2.1a1.423,1.423,0,0,1,0-1.977L5.2,13.028Z' transform='translate(616.903 4.2)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

#site-navigation .menu-item-formation > a {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31' height='31' viewBox='0 0 31 31'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_122' data-name='Rectangle 122' width='31' height='31' transform='translate(612)' fill='%23e32219'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Groupe_de_masques_2' data-name='Groupe de masques 2' transform='translate(-612)' clip-path='url(%23clip-path)'%3E%3Cpath id='book-light' d='M2.473,0A2.475,2.475,0,0,0,0,2.473V17.311H0a2.475,2.475,0,0,0,2.473,2.473h14.22a.618.618,0,1,0,0-1.236h-.618V15.97a1.86,1.86,0,0,0,1.236-1.75V1.855A1.855,1.855,0,0,0,15.456,0ZM14.838,16.074v2.473H2.473a1.236,1.236,0,0,1,0-2.473ZM2.473,14.838a2.436,2.436,0,0,0-1.236.332V2.473A1.235,1.235,0,0,1,2.473,1.236H3.709v13.6Zm2.473,0V1.236h10.51a.62.62,0,0,1,.618.618V14.22a.62.62,0,0,1-.618.618ZM6.8,5.564a.62.62,0,0,0,.618.618H13.6a.618.618,0,1,0,0-1.236H7.419A.62.62,0,0,0,6.8,5.564Zm0,3.709a.62.62,0,0,0,.618.618H13.6a.618.618,0,1,0,0-1.236H7.419A.62.62,0,0,0,6.8,9.274Z' transform='translate(618.844 5.532)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

#site-navigation .menu-item-actualites > a {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31' height='31' viewBox='0 0 31 31'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_122' data-name='Rectangle 122' width='31' height='31' transform='translate(612)' fill='%23e32219'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Groupe_de_masques_2' data-name='Groupe de masques 2' transform='translate(-612)' clip-path='url(%23clip-path)'%3E%3Cpath id='newspaper-light' d='M6.556,33.311a1.31,1.31,0,0,0-1.311,1.311V47.735a2.583,2.583,0,0,1-.352,1.311H17.7a1.967,1.967,0,0,0,1.967-1.967V34.622a1.31,1.31,0,0,0-1.311-1.311ZM2.622,50.357A2.625,2.625,0,0,1,0,47.735V37.245a2.625,2.625,0,0,1,2.622-2.622v1.311a1.31,1.31,0,0,0-1.311,1.311v10.49a1.311,1.311,0,1,0,2.622,0V34.622A2.625,2.625,0,0,1,6.556,32h11.8a2.625,2.625,0,0,1,2.622,2.622V47.079A3.277,3.277,0,0,1,17.7,50.357ZM15.735,35.278a.658.658,0,0,1,.656-.656H17.7a.656.656,0,1,1,0,1.311H16.39A.658.658,0,0,1,15.735,35.278Zm0,2.622a.658.658,0,0,1,.656-.656H17.7a.656.656,0,1,1,0,1.311H16.39A.658.658,0,0,1,15.735,37.9Zm0,2.622a.658.658,0,0,1,.656-.656H17.7a.656.656,0,0,1,0,1.311H16.39A.658.658,0,0,1,15.735,40.523ZM6.556,43.145a.658.658,0,0,1,.656-.656H17.7a.656.656,0,0,1,0,1.311H7.212A.658.658,0,0,1,6.556,43.145Zm0,2.622a.658.658,0,0,1,.656-.656H17.7a.656.656,0,0,1,0,1.311H7.212A.658.658,0,0,1,6.556,45.768Zm1.311-5.9h5.245V35.934H7.867ZM6.556,35.606a.981.981,0,0,1,.983-.983h5.9a.981.981,0,0,1,.983.983V40.2a.981.981,0,0,1-.983.983h-5.9a.981.981,0,0,1-.983-.983Z' transform='translate(617.01 -25.678)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

#site-navigation .menu-item-documentation > a {
	padding-left: 35px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='31' height='31' viewBox='0 0 31 31'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_122' data-name='Rectangle 122' width='31' height='31' transform='translate(612)' fill='%23e32219'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Groupe_de_masques_2' data-name='Groupe de masques 2' transform='translate(-612)' clip-path='url(%23clip-path)'%3E%3Cpath id='file-contract-light' d='M13.98,20.97H2.8a1.4,1.4,0,0,1-1.4-1.4V2.8A1.4,1.4,0,0,1,2.8,1.4H8.388V6.291a2.1,2.1,0,0,0,2.1,2.1h4.893V19.572A1.4,1.4,0,0,1,13.98,20.97Zm-3.5-13.98a.7.7,0,0,1-.7-.7V1.42a.667.667,0,0,1,.323.183l5.063,5.063a.687.687,0,0,1,.183.323ZM2.8,0A2.8,2.8,0,0,0,0,2.8V19.572a2.8,2.8,0,0,0,2.8,2.8H13.98a2.8,2.8,0,0,0,2.8-2.8V7.16a2.1,2.1,0,0,0-.616-1.481L11.1.616A2.1,2.1,0,0,0,9.62,0Zm.7,2.8a.7.7,0,0,0,0,1.4h2.8a.7.7,0,1,0,0-1.4Zm0,2.8a.7.7,0,1,0,0,1.4h2.8a.7.7,0,0,0,0-1.4ZM5.863,16.68l.428-1.433.73,2.429a.7.7,0,0,0,.546.489.691.691,0,0,0,.682-.271l.769-1.022a.24.24,0,0,1,.406.035l.441.878a.7.7,0,0,0,.625.384h2.8a.7.7,0,0,0,0-1.4H10.922l-.245-.494a1.659,1.659,0,0,0-1.472-.9,1.637,1.637,0,0,0-1.245.572l-.55-1.839a1.168,1.168,0,0,0-2.237,0l-.651,2.163a.7.7,0,0,1-.668.5H3.5a.7.7,0,0,0,0,1.4h.358A2.1,2.1,0,0,0,5.863,16.68Z' transform='translate(619.112 4)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
}

/* Header desktop */
.site-header .liste-pictos-desktop a {
    width: 37px;
    height: 37px;	
}
.site-header .liste-pictos-desktop a > svg {
    width: 20px;
    height: 20px;	
}
@media(min-width: 1200px) {
	.site-header .liste-pictos-desktop li:first-child a {
		margin-right: 50px;
	}
	.site-header .liste-pictos-desktop li:last-child a {
		margin-left: 50px !important;
	}
}
.site-header .liste-pictos-desktop li:last-child a, .site-header .liste-pictos-desktop li:last-child a > svg {
	width: auto !important;
	height: auto !important;
}

/* Header mobile */
.site-header .liste-pictos-mobile div, .site-header .liste-pictos-mobile a, .site-header .liste-pictos-mobile button {
    width: 26px;
    height: 26px;	
}
.site-header .liste-pictos-mobile div > svg, .site-header .liste-pictos-mobile a > svg, .site-header .liste-pictos-mobile button > svg {
    width: 14px;
    height: 14px;	
}
@media(min-width: 576px) {
	.site-header .liste-pictos-mobile div, .site-header .liste-pictos-mobile a, .site-header .liste-pictos-mobile button {
		width: 37px;
		height: 37px;	
	}
	.site-header .liste-pictos-mobile div > svg, .site-header .liste-pictos-mobile a > svg, .site-header .liste-pictos-mobile button > svg {
		width: 20px;
		height: 20px;	
	}
}

/* Footer */
footer .liste-pictos a {
    width: 37px;
    height: 37px;	
}
footer .liste-pictos a > svg {
	fill: currentColor;
    width: 20px;
    height: 20px;	
}
footer .section-footer-bottom p {
	margin: 0!important;
}

/* Formulaire pages protégées par mot de passe */
.container-protected input[type=password] {
	padding: 8px!important;
	margin-left: 0.5rem;
	margin-right: 0.5rem;
}
.container-protected input[type=submit] {
	padding: 0.5rem 1rem!important;
	border-radius: 50rem !important;
	background-color: #0055A0 !important; 
	border: 0;
	color: #ffffff;
}

/* Annuaire */
.section_annuaire td {
	border: 0;
}
.section_annuaire th:first-child {
	padding-left: 20px;
}
.section_annuaire th:last-child {
	padding-right: 20px;
}
.section_annuaire td:first-child {
	padding-left: 20px;
	border-radius: 50px 0 0 50px;
}
.section_annuaire td:last-child {
	padding-right: 20px;
	border-radius: 0 50px 50px 0;
}