/*
Theme Name: LTC Patrimoine
Theme URI:
Author: Vous
Author URI:
Description: Thème en blocs (Full Site Editing), décliné de Démo Blocs : logo à droite et menu en dessous dans l'en-tête, pas de carrousel en page d'accueil (une seule grande image), image en bandeau sur chaque page (hors actualités), pas de colonne de widgets à droite des pages.
Version: 1.1.20
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ltcpatrimoine
*/
html {
	font-size: 93.75%; 
}

:where(.is-layout-flow) > *:first-child {
	margin-block-start: 0;
}

.wp-block-site-logo img {
	height: 60px !important;
	width: auto !important;
	margin-right: 20px;
}

body {
	background-color: #bcbcbc;
	background-image: url('assets/images/fond-site.gif');
	background-repeat: no-repeat;
	background-position: center top;
}

.wp-site-blocks {
	max-width: 940px;
	margin-left: auto;
	margin-right: auto;
	background-color: #ffffff;
}

header {
	padding: 30px 0px 0;
	box-sizing: border-box;
}

header .wp-block-navigation .wp-block-navigation__container {
	padding-top: 14px;
	padding-bottom: 14px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	padding-left: 20px;
}

header .wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: flex-start;
	gap: 10px;
	padding: 14px 20px;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	background: transparent;
}

header .wp-block-navigation__responsive-container-open::before {
	content: "Menu";
	display: flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
}

header .wp-block-navigation__responsive-container-open svg {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

header .wp-block-navigation-item__content,
footer .wp-block-navigation-item__content {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: normal;
}

header .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
footer .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
footer .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent, #ef424f);
}

header .wp-block-navigation-item__content:hover,
footer .wp-block-navigation-item__content:hover,
.branch-nav-list a:hover {
	color: var(--wp--preset--color--accent, #ef424f);
}

header .wp-block-navigation__submenu-container,
footer .wp-block-navigation__submenu-container {
	padding: 8px;
	border: none !important;
}

/* Nav mobile ouverte (le panneau plein écran affiché par le bouton "Menu") :
   fond rouge, texte blanc, sans le filet gris utilisé sur desktop.
   Le rouge posé uniquement sur ".is-menu-open" ne couvrait que la boîte
   interne (arrondie, calée sur la hauteur du contenu), laissant apparaître
   le fond sombre par défaut de WordPress tout autour - d'où le rouge qui ne
   couvrait pas tout l'écran. On colore donc toute la chaîne d'éléments
   emboîtés et on force chacun à occuper 100% de la fenêtre, sans coin
   arrondi ni ombre. */
header .wp-block-navigation__responsive-container.is-menu-open,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	background-color: var(--wp--preset--color--accent, #ef424f);
	width: 100%;
	height: 100%;
	min-height: 100vh;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

header .wp-block-navigation__responsive-container.is-menu-open,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
header .wp-block-navigation__responsive-container.is-menu-open a {
	color: #ffffff;
}

header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	border: none;
}

/* Le rouge utilisé ailleurs pour l'élément actif/survolé serait invisible sur
   ce fond rouge : on garde le blanc ici, en soulignant à la place pour
   distinguer l'élément actif ou survolé. */
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Bouton de fermeture : blanc, à 30px du haut et de la droite. */
header .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 30px;
	right: 30px;
	color: #ffffff;
}

footer,
main.wp-block-group {
	padding: 0px 30px 30px;
	box-sizing: border-box;
}

footer {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

footer .wp-block-paragraph {
	font-weight: 400;
	color: var(--wp--preset--color--accent, #ef424f);
}

.wp-container-core-group-is-layout-73670cdb {
	justify-content: space-between;
}

@media (max-width: 781px) {
	.wp-container-core-group-is-layout-73670cdb {
		justify-content: flex-start;
	}
}

.page-banner-wrap {
	margin: 0;
}

.page-banner {
	margin: 0 0 2rem;
}

.page-banner-wrap > .page-banner {
	max-width: none;
}

.page-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.services-grid {
	margin: 0 0 2rem;
}

.service-card img {
	display: block;
	width: 100%;
	height: auto;
}

.service-card-title {
	margin: 16px 0 6px;
}

.service-card-title a {
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
}

.service-card-title a:hover {
	color: var(--wp--preset--color--accent, #ef424f);
}

.service-card p {
	margin: 0;
}

@media (max-width: 781px) {
	.services-grid {
		grid-template-columns: 1fr !important;
	}
}

.wp-block-post-date {
	display: block;
	font-size: 0.85em;
	color: #64748b;
	margin: 4px 0 8px;
}

/* Séparateur entre chaque actu de la liste (templates/index.html), même gris
   que les filets autour de la nav (#e2e8f0). */
.wp-block-post-template > .wp-block-post {
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid #e2e8f0;
}

.wp-block-post-template > .wp-block-post:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.page-layout {
	display: flex;
	align-items: flex-start;
	gap: 50px;
	width: 100%;
}

.page-layout .branch-nav {
	flex: 0 0 140px;
	width: 140px;
}

.page-layout .page-content {
	flex: 1 1 auto;
	min-width: 0;
}

.page-layout:not(:has(.branch-nav)) .page-content.is-layout-constrained > * {
	max-width: none;
}

@media (max-width: 781px) {
	.page-layout {
		display: block;
	}

	.page-layout .branch-nav {
		display: none;
	}

	
	.page-layout .page-content.is-layout-constrained > * {
		max-width: none;
	}
}

.branch-nav-list ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.branch-nav-list ul ul {
	padding-left: 16px;
	margin-top: 6px;
}

.branch-nav-list li {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid #e2e8f0;
	line-height: normal;
}

.branch-nav-list li:last-child {
	border-bottom: none;
}

.branch-nav-list a {
	text-decoration: none;
	color: inherit;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.branch-nav-list a:hover {
	text-decoration: underline;
}

.branch-nav-list .current_page_item > a {
	color: var(--wp--preset--color--accent, #ef424f);
}

.branch-nav-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
	color: var(--wp--preset--color--accent, #ef424f);
}

.branch-nav-title a {
	color: inherit;
	text-decoration: none;
	font-size: 16px;
}

.page-template-default .page-banner-wrap {
	position: relative;
}

.page-template-default:not(.home) .page-banner-wrap:before {
	display: block;
	content: " ";
	position: absolute;
	top: 0px;
	left: 0px;
	width: 37px;
	height: 276px;
	background-image: url('assets/images/bg-in-left.png');
	background-repeat: no-repeat;
	background-size: cover;
}

.page-template-default .page-layout {
	padding-left: 37px;
}

p.exergue {
	background-image: url('assets/images/bg-exergue.png');
	background-repeat: no-repeat;
	background-position: bottom left;
	background-size: 100%;
	padding: 30px 30px 60px 60px;
	color: #fff;
}