/*
 * Pierrefitte-sur-Sauldre – composants (en-tête, menus, pied de page).
 * Valeurs issues de la passation Claude Design du 18/11/2026 (README « Design tokens »).
 * Tailles en rem : les boutons A+ / A- agrandissent tout le texte.
 * Spécificité : sélecteurs préfixés « html body » pour passer devant les styles globaux du kit Elementor
 * (couleur des liens, boutons verts), sans modifier le kit.
 */

:root {
	--pf-bordeaux: #631407;
	--pf-bleu: #116c7f;
	--pf-vert: #94bc48;
	--pf-vert-texte: #1f2a0c;
	--pf-vert-fonce: #5e7f24;
	--pf-texte: #3d3d3d;
	--pf-gris: #efefef;
	--pf-bord: #dcdcdc;
	--pf-sep: #e2e2e2;
	--pf-sec: #5f5f5f;
	--pf-champ: #767676;
	--pf-largeur: 1200px;
}

html body .pf-sr{ position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html body .pf-ico{ width: 1.25rem; height: 1.25rem; flex: none; }

html body /* ---------- Barre du haut ---------- */
.pf-topbar, html body .pf-topbar a{ color: #fff; }
html body .pf-topbar .elementor-icon-list-text{ font-size: .875rem; line-height: 1.4; color: #fff; }
html body .pf-topbar .elementor-icon-list-icon svg{ fill: #fff; width: 1rem; height: 1rem; }
html body .pf-topbar a .elementor-icon-list-text{ text-decoration: underline; text-underline-offset: 3px; }

html body .pf-outils{ display: flex; gap: .5rem; }
/* Météo (barre du haut, 1re ligne, juste avant A+ / A-) */
html body .e-con:has(> .pf-meteo-widget), html body .e-con-inner:has(> .pf-meteo-widget){ column-gap: 0; } /* pas d'écart Elementor : l'adresse tient sur une ligne */
html body .pf-meteo-widget{ margin-left: auto; padding-left: 1rem; margin-right: 1.25rem; }
html body .pf-meteo{ display: flex; align-items: center; color: #fff; font-size: .875rem; line-height: 1; white-space: nowrap; }
html body .pf-meteo__jour{ display: inline-flex; align-items: center; gap: .3125rem; padding: 0 .625rem; }
html body .pf-meteo__jour:first-child{ padding-left: 0; }
html body .pf-meteo__jour + .pf-meteo__jour{ border-left: 1px solid rgba(255, 255, 255, .35); }
html body .pf-meteo__ico{ width: 1.375rem; height: 1.375rem; }
html body .pf-meteo__temp{ font-weight: 700; }
@media (max-width: 1239px) { html body .pf-meteo__jour + .pf-meteo__jour{ display: none; } } /* petits écrans d'ordinateur : température du jour seulement */
html body .pf-outils__btn{
	display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; min-width: 44px; padding: 0 .75rem;
	background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px;
	font: 700 .875rem/1 "Open Sans", Arial, sans-serif; cursor: pointer;
}
html body .pf-outils__btn:hover{ background: rgba(0, 0, 0, .18); color: #fff; }
html body .pf-outils__btn .pf-ico{ width: 1rem; height: 1rem; }

html body .pf-topbar-mobile .elementor-button{ background: #fff; color: var(--pf-bleu); font-weight: 700; font-size: .9375rem; min-height: 44px; border-radius: 4px; }
html body .pf-topbar-mobile .elementor-widget-text-editor, html body .pf-topbar-mobile .elementor-widget-text-editor p{ color: #fff; font-size: .8125rem; line-height: 1.35; margin: 0; }

html body /* ---------- Bandeau logo ---------- */
.pf-logo img{ height: 90px; width: auto; }
html body .pf-recherche{ flex: 1 1 auto; max-width: 460px; }
html body .pf-partenaires{ width: auto !important; flex: none !important; }
html body .pf-partenaires img{ height: 45px; width: auto; }
html body .pf-actions-mobile{ margin-left: auto; }
@media (max-width: 1024px) { html body /* en-tête mobile dès la tablette : les 6 rubriques ne tiennent plus */
	.pf-logoband{ border-bottom: 4px solid var(--pf-bordeaux); }
	html body .pf-logo img{ height: 54px; }
}

html body /* Recherche (widget Elementor) */
.pf-recherche .elementor-search-form__container{ min-height: 48px; border: 1px solid var(--pf-champ); border-radius: 4px; overflow: hidden; }
html body .pf-recherche .elementor-search-form__input{ font-size: 1rem; color: var(--pf-texte); }
html body .pf-recherche .elementor-search-form__input::placeholder{ color: var(--pf-sec); }
html body .pf-recherche .elementor-search-form__submit{ background: var(--pf-bordeaux); color: #fff; font: 600 1rem "Open Sans", Arial, sans-serif; min-width: 0; padding: 0 1.125rem; }
html body .pf-recherche .elementor-search-form__submit:hover{ background: var(--pf-bleu); }

html body /* ---------- Menu principal + méga-menu ---------- */
.pf-navbar{ position: relative; z-index: 40; }
html body .pf-nav__list{ display: flex; justify-content: space-between; list-style: none; margin: 0 auto; padding: 0 16px; max-width: var(--pf-largeur); }
html body .pf-nav__item{ position: static; }
html body .pf-nav__link{
	display: inline-flex; align-items: center; gap: .5rem; height: 60px; padding: 0 1rem;
	background: none; border: 0; color: #fff; font: 600 1.0625rem/1 "Open Sans", Arial, sans-serif; text-decoration: none; cursor: pointer;
}
html body .pf-nav__link:hover, html body .pf-nav__link:focus-visible{ background: rgba(0, 0, 0, .22); color: #fff; }
html body .pf-nav__item.is-active > .pf-nav__link{ box-shadow: inset 0 -5px 0 var(--pf-vert); }
html body .pf-nav__toggle[aria-expanded="true"]{ background: #fff; color: var(--pf-bordeaux); }
html body .pf-nav__toggle[aria-expanded="true"] .pf-ico--chev{ transform: rotate(180deg); }
html body .pf-ico--chev{ width: 1rem; height: 1rem; transition: transform .15s; }
html body .pf-nav .pf-ico--ext{ width: .875rem; height: .875rem; }

html body .pf-panel{ position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--pf-bord); box-shadow: 0 18px 36px rgba(0, 0, 0, .16); }
html body .pf-panel[hidden]{ display: none; }
html body .pf-panel__inner{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; max-width: var(--pf-largeur); margin: 0 auto; padding: 32px 16px 40px; }
html body .pf-panel__col{ display: flex; flex-direction: column; gap: 24px; }
html body .pf-panel__col.is-large{ grid-column: span 2; }
html body .pf-panel__col.is-large .pf-panel__links{ columns: 2; column-gap: 40px; }
html body .pf-panel__title{ margin: 0; font: 700 1.125rem/1.3 "Open Sans", Arial, sans-serif; color: var(--pf-bordeaux); }
html body .pf-panel__title a, html body .pf-panel__title > span{ display: inline-flex; align-items: center; min-height: 44px; color: var(--pf-bordeaux); text-decoration: none; }
html body .pf-panel__title::after{ content: ""; display: block; width: 32px; height: 3px; background: var(--pf-vert); margin-top: 4px; }
html body .pf-panel__links{ list-style: none; margin: 8px 0 0; padding: 0; }
html body .pf-panel__links li{ break-inside: avoid; }
html body .pf-panel__links a{ display: flex; align-items: center; gap: .5rem; min-height: 44px; font-size: 1.0625rem; line-height: 1.35; color: var(--pf-texte); text-decoration: none; }
html body .pf-panel__links a:hover, html body .pf-panel__title a:hover{ color: var(--pf-bleu); text-decoration: underline; }
html body .pf-ico--puce{ width: .875rem; height: .875rem; color: var(--pf-bordeaux); }

html body /* ---------- Mobile : boutons, html body recherche, html body menu plein écran ---------- */
.pf-mactions{ display: flex; gap: 8px; }
html body .pf-mactions__btn{
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 60px; padding: 0 10px;
	border-radius: 4px; font: 700 .875rem/1 "Open Sans", Arial, sans-serif; cursor: pointer;
}
html body .pf-mactions__btn--search{ width: 90px; background: #fff; color: var(--pf-bordeaux); border: 1px solid #bdbdbd; }
html body .pf-mactions__btn--menu{ width: 66px; background: var(--pf-bordeaux); color: #fff; border: 0; }
html body .pf-mactions__btn--search span{ color: var(--pf-texte); }

html body .pf-mrecherche{ position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--pf-gris); padding: 12px 16px; }
html body .pf-mrecherche[hidden]{ display: none; }
html body .pf-mrecherche form{ display: flex; }
html body .pf-mrecherche input{ flex: 1; min-height: 48px; border: 1px solid var(--pf-champ); border-radius: 4px 0 0 4px; padding: 0 12px; font-size: 1rem; }
html body .pf-mrecherche button{ width: 52px; border: 0; border-radius: 0 4px 4px 0; background: var(--pf-bordeaux); color: #fff; display: flex; align-items: center; justify-content: center; }

html body .pf-mmenu{ position: fixed; inset: 0; z-index: 1000; background: #fff; overflow-y: auto; }
html body .pf-mmenu[hidden]{ display: none; }
html body .pf-mmenu__head{ display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 4px solid var(--pf-bordeaux); }
html body .pf-mmenu__logo{ height: 54px; width: auto; }
html body .pf-mmenu__close{ display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 4px; background: var(--pf-bordeaux); color: #fff; font: 700 .9375rem "Open Sans", Arial, sans-serif; }
html body .pf-acc{ list-style: none; margin: 0; padding: 0; }
html body .pf-acc[hidden]{ display: none; }
html body .pf-acc li{ border-bottom: 1px solid var(--pf-sep); }
html body .pf-acc__toggle, html body .pf-acc__link{
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 0 16px; text-align: left;
	background: none; border: 0; border-radius: 0; color: var(--pf-bordeaux); font: 700 1.125rem/1.3 "Open Sans", Arial, sans-serif; text-decoration: none; min-height: 56px; cursor: pointer;
}
html body .pf-acc__link--accueil{ justify-content: flex-start; }
html body .pf-acc__toggle[aria-expanded="true"] .pf-ico--chev{ transform: rotate(180deg); }
html body .pf-acc--2{ background: var(--pf-gris); }
html body .pf-acc--2 > li > .pf-acc__toggle, html body .pf-acc--2 > li > .pf-acc__link{ padding-left: 32px; min-height: 52px; font-size: 1.0625rem; font-weight: 600; color: var(--pf-texte); }
html body .pf-acc--3{ background: #fff; }
html body .pf-acc--3 .pf-acc__link{ padding-left: 48px; min-height: 48px; font-size: 1.0625rem; font-weight: 400; color: var(--pf-texte); }

html body /* ---------- Fil d'Ariane, html body sous-menu de rubrique ---------- */
.pf-ariane ol{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
html body .pf-ariane li{ display: inline-flex; align-items: center; gap: 4px; }
html body .pf-ariane a{ color: var(--pf-texte); text-decoration: underline; text-underline-offset: 3px; }
html body .pf-ariane a:hover{ color: var(--pf-bleu); }
html body .pf-ariane [aria-current]{ font-weight: 600; }
html body .pf-ico--sep{ width: .875rem; height: .875rem; color: var(--pf-sec); }

html body .pf-sousmenu{ border: 1px solid var(--pf-bord); border-radius: 4px; overflow: hidden; }
html body .pf-sousmenu__titre{ margin: 0; display: flex; align-items: center; min-height: 56px; padding: 0 20px; background: var(--pf-bordeaux); color: #fff; font: 700 1.1875rem "Open Sans", Arial, sans-serif; }
html body .pf-sousmenu__toggle{ display: none; }
html body .pf-sousmenu__liste{ list-style: none; margin: 0; padding: 0; }
html body .pf-sousmenu__liste li{ display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--pf-sep); padding-right: 16px; }
html body .pf-sousmenu__liste li:first-child{ border-top: 0; }
html body .pf-sousmenu__liste a{ display: flex; align-items: center; gap: 6px; flex: 1; min-height: 52px; padding: 8px 20px; color: var(--pf-texte); text-decoration: none; font-size: 1.0625rem; line-height: 1.35; }
html body .pf-sousmenu__liste a:hover{ color: var(--pf-bleu); text-decoration: underline; }
html body .pf-sousmenu__liste .pf-ico--chev{ color: var(--pf-bleu); }
html body .pf-sousmenu__liste li.is-current{ background: var(--pf-gris); box-shadow: inset 5px 0 0 var(--pf-vert); }
html body .pf-sousmenu__liste li.is-current a{ color: var(--pf-bordeaux); font-weight: 700; }
@media (max-width: 767px) {
	html body .pf-sousmenu{ border-color: var(--pf-champ); }
	html body .pf-sousmenu__titre{ display: none; }
	html body .pf-sousmenu__toggle{ display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; background: #fff; border: 0; color: var(--pf-bordeaux); font: 700 1.0625rem "Open Sans", Arial, sans-serif; }
	html body .pf-sousmenu__toggle[aria-expanded="true"] .pf-ico--chev{ transform: rotate(180deg); }
	html body .pf-sousmenu__liste:not(.is-open){ display: none; }
}

html body /* ---------- Pied de page ---------- */
.pf-footer-partenaires{ border-top: 1px solid var(--pf-sep); }
html body .pf-footer-partenaires img{ height: 50px; width: auto; }
html body .pf-footer-main, html body .pf-footer-main a{ color: #fff; }
html body .pf-footer-gauche{ flex: 0 0 360px !important; width: 360px !important; }
html body .pf-footer-plan{ flex: 1 1 auto !important; }
html body .pf-footer-bas .pf-basdepage{ border-top: 1px solid rgba(255, 255, 255, .28); padding: 14px 0 56px; } /* bas dégagé : l'onglet « Cookies » de Complianz (fixe, en bas à gauche) ne cache pas le copyright */
@media (max-width: 1024px) { /* tablette : coordonnées au-dessus, plan du site sur toute la largeur (sinon 3 colonnes de 80 px qui débordent) */
	html body .pf-footer-main{ --flex-wrap: wrap; }
	html body .pf-footer-main > .e-con-inner{ flex-wrap: wrap !important; } /* Elementor fixe nowrap avec un sélecteur plus précis */
	html body .pf-footer-gauche{ flex: 1 1 100% !important; width: 100% !important; }
}
@media (max-width: 767px) {
	html body .pf-footer-partenaires img{ height: 45px; }
}
html body .pf-plaque-logo img{ background: #fff; padding: 14px 18px; border-radius: 4px; height: 100px; width: auto; }
html body .pf-footer-contacts .elementor-icon-list-item{ align-items: flex-start; }
html body .pf-footer-contacts .elementor-icon-list-text{ color: #fff; font-size: 1rem; line-height: 1.5; }
html body .pf-footer-contacts .elementor-icon-list-icon svg{ fill: #fff; width: 1.125rem; height: 1.125rem; }
html body .pf-territoire{ border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 24px; }
html body .pf-territoire img{ width: 112px; height: auto; }
html body .pf-territoire .elementor-heading-title{ color: #fff; font-size: 1.125rem; }
html body .pf-territoire p{ color: #fff; margin: 0; font-size: 1rem; line-height: 1.5; }

html body .pf-plan{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
html body .pf-plan__col.is-rapides{ order: 99; }
html body .pf-plan__titre{ margin: 0; font: 700 1rem/1.3 "Open Sans", Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
html body .pf-plan__titre::after{ content: ""; display: block; width: 32px; height: 3px; background: var(--pf-vert); margin-top: 8px; }
html body .pf-plan__toggle{ display: none; }
html body .pf-plan__liens{ list-style: none; margin: 8px 0 0; padding: 0; }
html body .pf-plan__liens a{ display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: 1.0625rem; line-height: 1.35; color: #fff; text-decoration: none; }
html body .pf-plan__liens a:hover{ text-decoration: underline; color: #fff; }
html body .pf-plan .pf-ico--ext{ width: .875rem; height: .875rem; }

html body .pf-basdepage{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; font-size: .9375rem; }
html body .pf-basdepage__liens{ display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
html body .pf-basdepage a, html body .pf-basdepage__cookies{ color: #fff; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
html body .pf-basdepage__copyright{ margin: 0; color: #fff; }
html body .pf-basdepage__copyright a{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
	html body .pf-plan{ grid-template-columns: 1fr; gap: 0; }
	html body .pf-plan__col.is-rapides{ order: 0; margin-bottom: 24px; }
	html body .pf-plan__col:not(.is-rapides){ border-top: 1px solid rgba(255, 255, 255, .28); }
	html body .pf-plan__col:not(.is-rapides) .pf-plan__titre{ display: none; }
	html body .pf-plan__col:not(.is-rapides) .pf-plan__toggle{
		display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0; background: none; border: 0; color: #fff;
		font: 700 1rem "Open Sans", Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
	}
	html body .pf-plan__toggle[aria-expanded="true"] .pf-ico--chev{ transform: rotate(180deg); }
	html body .pf-plan__col:not(.is-rapides) .pf-plan__liens{ padding-left: 16px; margin: 0 0 12px; }
	html body .pf-plan__col:not(.is-rapides) .pf-plan__liens:not(.is-open){ display: none; }
	html body .pf-basdepage{ flex-direction: column; align-items: flex-start; }
}

html body /* ---------- Focus clavier ---------- */
.pf-navbar :focus-visible, html body .pf-footer-main :focus-visible, html body .pf-topbar :focus-visible{ outline-color: #fff; }

/* ---------- Impression ---------- */
@media print {
	html body .elementor-location-header, html body .elementor-location-footer, html body .pf-sousmenu, html body .pf-mmenu{ display: none !important; }
	body { font-size: 12pt; color: #000; }
	html body a[href^="http"]::after{ content: " (" attr(href) ")"; font-size: .85em; }
}

/* ---------- Corrections du 20/11 (contrôle visuel) ---------- */
/* Boutons d'accordéon et de bascule : neutralise le survol/focus global du kit (fond bordeaux) */
html body .pf-acc__toggle:hover, html body .pf-acc__toggle:focus, html body .pf-sousmenu__toggle:hover, html body .pf-sousmenu__toggle:focus { background: var(--pf-gris); color: var(--pf-bordeaux); }
html body .pf-acc--2 .pf-acc__toggle:hover, html body .pf-acc--2 .pf-acc__toggle:focus { background: #e4e4e4; color: var(--pf-texte); }
html body .pf-plan__toggle:hover, html body .pf-plan__toggle:focus { background: rgba(0, 0, 0, .18); color: #fff; }
html body .pf-mactions__btn--search:hover, html body .pf-mactions__btn--search:focus { background: var(--pf-gris); color: var(--pf-bordeaux); }
html body .pf-basdepage__cookies:hover, html body .pf-basdepage__cookies:focus { background: none; color: #fff; }
/* Barre du haut mobile : bouton d'appel et horaires sur une ligne, icône visible */
html body .pf-topbar-mobile { flex-wrap: nowrap; }
html body .pf-topbar-mobile .elementor-widget-button { flex: none; width: auto; }
html body .pf-topbar-mobile .elementor-widget-text-editor { flex: 1 1 auto; }
html body .pf-topbar-mobile .elementor-button-icon svg { fill: currentColor; width: 1rem; height: 1rem; }
/* Pied de page : nom de la commune en gras */
html body .pf-territoire .elementor-heading-title { font-weight: 700; }
