/* dc26-enerdrape — entry point PostCSS
   Styles spécifiques à Enerdrape. Couleurs, tailles et espacements :
   uniquement via var(--wp--preset--*) (définis dans theme.json). */

/* ===================================
  HEADER STICKY - STATE-BASED
  =================================== */

header.wp-block-template-part.is-style-sticky-header {
	position: sticky;
	top: 0;
	z-index: 1000;
}

.admin-bar header.wp-block-template-part.is-style-sticky-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.page-template-page-no-title header.wp-block-template-part.is-style-sticky-header,
.search-results header.wp-block-template-part.is-style-sticky-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
}

.admin-bar.page-template-page-no-title header.wp-block-template-part.is-style-sticky-header,
.admin-bar.search-results header.wp-block-template-part.is-style-sticky-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.page-template-page-no-title .wp-site-blocks > :first-child {
	margin-block-start: 0;
}

.page-template-page-no-title .wp-site-blocks > .wp-block-post-content {
	margin-block-start: 0;
}

.is-style-sticky-header > header.wp-block-group,
.is-style-sticky-header > .wp-block-group {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 1rem;
	background-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
	transition:
		background-color 200ms ease,
		box-shadow 200ms ease,
		backdrop-filter 200ms ease;
}

/* Inner group fills the flex container without WP width constraints */

.is-style-sticky-header > .wp-block-group > .wp-block-group {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100% !important;
	margin: 0 !important;
}

.is-style-sticky-header .wp-block-site-logo {
	flex: 0 0 auto;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 200ms ease, transform 200ms ease;
}

.is-style-sticky-header .wp-block-navigation {
	min-width: 0;
	display: flex;
	justify-content: flex-end;
}

.wp-block-navigation .wp-block-navigation-item__content {
	font-size: inherit;
}

.is-style-sticky-header.is-top > header.wp-block-group,
.is-style-sticky-header.is-top > .wp-block-group {
	background-color: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

/* Le header transparent est pensé pour chevaucher le hero (comme du temps du
   position:fixed). En position:sticky il reste dans le flux — on retire donc
   la hauteur du header avec une marge négative pour recréer le chevauchement,
   uniquement là où un hero est attendu juste en dessous (home). */

.home .is-style-sticky-header,
.front-page .is-style-sticky-header {
	margin-bottom: calc(-1 * var(--site-header-height, 0px));
}

/* Hide logo only on homepage while header is at top */

.home .is-style-sticky-header.is-top .wp-block-site-logo,
.front-page .is-style-sticky-header.is-top .wp-block-site-logo {
	opacity: 0;
	transform: translateY(0);
	pointer-events: auto;
}

.is-style-sticky-header.is-scrolled .wp-block-site-logo {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.is-style-sticky-header.is-scrolled > header.wp-block-group,
.is-style-sticky-header.is-scrolled > .wp-block-group {
	background-color: color-mix(in srgb, var(--wp--preset--color--white) 40%, transparent);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--wp--preset--color--black) 12%, transparent);
	backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
	.is-style-sticky-header > header.wp-block-group,
	.is-style-sticky-header > .wp-block-group,
	.is-style-sticky-header .wp-block-site-logo {
		transition: none;
	}
}

/* ===================================
  BLOC dc26/scroll-image dans un header sticky
  Crossfade et hauteur après scroll, pilotés par .is-scrolled sur le header.
  =================================== */

.is-style-sticky-header.is-scrolled .dc26-scroll-image__default {
	opacity: 0;
}

.is-style-sticky-header.is-scrolled .dc26-scroll-image__on-scroll {
	opacity: 1;
}

.is-style-sticky-header.is-scrolled .dc26-scroll-image__default,
.is-style-sticky-header.is-scrolled .dc26-scroll-image__on-scroll {
	height: var(--si-max-height-scrolled, var(--si-max-height, 40px)) !important;
}

@media (max-width: 768px) {
	.is-style-sticky-header.is-scrolled .dc26-scroll-image__default,
	.is-style-sticky-header.is-scrolled .dc26-scroll-image__on-scroll {
		height: min(50px, var(--si-max-height-scrolled, 50px)) !important;
	}
}

/* Décalage sous la barre d'administration */

.logged-in .header-sticky {
	top: 32px !important;
}

:root {
    --facet-font-size: 14px;
    --facet-color-primary: var(--wp--preset--color--primary, #0b7c87);
    --facet-color-text: var(--wp--preset--color--gray-dark, #1c1c1c);
    --facet-color-muted: var(--wp--preset--color--gray-medium, #8e8e8e);
    --facet-color-bg: var(--wp--preset--color--white, #ffffff);
    --facet-radius-pill: 9999px;
    --facet-radius-sm: 0.125rem;
    --facet-checkbox-size: 20px;
}

.facetwp-facet {
    margin-bottom: 0.5rem;
    font-size: var(--facet-font-size);
}

.facetwp-facet :where(label, select, input, .facetwp-radio) {
    font-size: var(--facet-font-size);
}

.facetwp-facet select {
    position: relative;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

/* Normalize FacetWP native dropdown look across browsers */

.facetwp-type-dropdown .facetwp-dropdown,
.facetwp-facet-tri .facetwp-dropdown,
.facetwp-facet-date_conference .facetwp-dropdown {
    display: block;
    width: 100%;
    min-width: 12rem;
    border: 0;
    background: transparent;
    color: var(--facet-color-primary);
    font-size: var(--facet-font-size);
    line-height: 1.4;
    font-family: var(--wp--preset--font-family--body, system-ui, -apple-system, sans-serif);
    box-shadow: none;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
}

.facetwp-type-dropdown .facetwp-dropdown:focus,
.facetwp-facet-tri .facetwp-dropdown:focus,
.facetwp-facet-date_conference .facetwp-dropdown:focus {
    outline: none;
}

.facetwp-type-search .facetwp-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 16px 10px 16px;
    background: var(--facet-color-bg);
    border-radius: var(--facet-radius-pill);
    box-sizing: border-box;
}

.facetwp-type-search .facetwp-input-wrap i {
    position: absolute;
    right: 12px;
    height: 100%;
    z-index: 10;
    top: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    width: 20px;
    justify-content: center;
    background: none;
}

.facetwp-type-search .facetwp-input-wrap input {
    position: relative;
    order: 1;
    padding: 0;
    padding-left: 0.75rem;
    padding-right: 2.5rem;
    border: 0;
    border-radius: var(--facet-radius-pill);
    background: transparent;
    color: var(--facet-color-primary);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--body, system-ui, -apple-system, sans-serif);
    box-shadow: none;
    outline: none;
}

.facetwp-type-search .facetwp-input-wrap input::-moz-placeholder {
    color: var(--facet-color-primary);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--body, system-ui, -apple-system, sans-serif);
    opacity: 0.8;
}

.facetwp-type-search .facetwp-input-wrap input::placeholder {
    color: var(--facet-color-primary);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--body, system-ui, -apple-system, sans-serif);
    opacity: 0.8;
}

.facetwp-type-search .facetwp-input-wrap .facetwp-icon {
    background-image: none;
    width: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    opacity: 1;
    padding-right: 0;
}

.facetwp-type-search .facetwp-input-wrap .facetwp-icon::before {
    content: none;
    display: none;
}

.facetwp-type-search .facetwp-input-wrap .facetwp-icon::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-color: var(--facet-color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center / 18px 18px;
    transform: scaleX(-1);
}

.facetwp-type-dropdown,
.facetwp-facet-tri {
    padding: 12px;
    border-radius: var(--facet-radius-sm);
    padding-right: 0.75rem;
    background-color: var(--facet-color-bg);
    position: relative;
}

/* Date facet rendered as native date input:
   style it like theme dropdowns for visual consistency */

.facetwp-type-date,
.facetwp-facet-date_conference {
    padding: 12px;
    border-radius: var(--facet-radius-sm);
    padding-right: 0.75rem;
    background-color: var(--facet-color-bg);
    position: relative;
}

.facetwp-type-date input,
.facetwp-facet-date_conference input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--facet-color-primary);
    font-size: var(--facet-font-size);
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
    font-family: var(--wp--preset--font-family--body, system-ui, -apple-system, sans-serif);
}

.facetwp-type-date input::-webkit-calendar-picker-indicator,
.facetwp-facet-date_conference input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.facetwp-type-date::after,
.facetwp-facet-date_conference::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    z-index: 10;
    background-color: var(--facet-color-bg);
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    width: 20px;
    background-color: var(--facet-color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

.facetwp-type-date input::-webkit-datetime-edit,
.facetwp-facet-date_conference input::-webkit-datetime-edit,
.facetwp-type-date input::-webkit-datetime-edit-fields-wrapper,
.facetwp-facet-date_conference input::-webkit-datetime-edit-fields-wrapper,
.facetwp-type-date input::-webkit-datetime-edit-text,
.facetwp-facet-date_conference input::-webkit-datetime-edit-text,
.facetwp-type-date input::-webkit-datetime-edit-year-field,
.facetwp-facet-date_conference input::-webkit-datetime-edit-year-field,
.facetwp-type-date input::-webkit-datetime-edit-month-field,
.facetwp-facet-date_conference input::-webkit-datetime-edit-month-field,
.facetwp-type-date input::-webkit-datetime-edit-day-field,
.facetwp-facet-date_conference input::-webkit-datetime-edit-day-field {
    color: var(--facet-color-primary);
    padding: 0;
    margin: 0;
    line-height: 1.4;
    font-family: inherit;
}

.facetwp-type-dropdown::after,
.facetwp-facet-tri::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    z-index: 10;
    background-color: var(--facet-color-bg);
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    width: 20px;
    background-color: var(--facet-color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

.facetwp-radio .facetwp-counter {
    display: none;
}

.facetwp-display-value {
    display: inline-block;
    margin-bottom: 0;
    margin-top: 2px;
}

.facetwp-facet .facetwp-checkbox {
    background: none !important;
    background-image: none !important;
    margin-bottom: 12px;
    padding-left: calc(var(--facet-checkbox-size) + 10px);
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}

.facetwp-facet .facetwp-checkbox::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: var(--facet-checkbox-size);
    height: var(--facet-checkbox-size);
    border-radius: 3px;
    border: 1px solid var(--facet-color-muted);
    background: var(--facet-color-bg);
    box-sizing: border-box;
}

.facetwp-facet .facetwp-checkbox.checked::before {
    background: var(--facet-color-primary);
    border-color: var(--facet-color-primary);
}

.facetwp-facet .facetwp-checkbox.checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.35em;
    width: 6px;
    height: 10px;
    border: solid var(--facet-color-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.facetwp-facet .facetwp-checkbox.checked {
    background-image: none !important;
}

.facetwp-facet-categories_news_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--facet-color-bg);
    border-radius: var(--facet-radius-pill);
}

.facetwp-facet-categories_news_pills .facetwp-radio {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 2.2rem;
    border: 0;
    border-radius: var(--facet-radius-pill);
    color: var(--facet-color-primary);
    background: var(--facet-color-bg);
    margin-bottom: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.facetwp-facet-categories_news_pills .facetwp-radio:hover {
    background: var(--facet-color-bg);
}

.facetwp-facet-categories_news_pills .facetwp-radio.checked {
    background: var(--facet-color-primary);
    color: var(--facet-color-bg);
    border-color: var(--facet-color-primary);
}

.facetwp-facet-partner_type .facetwp-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background-position: left top 5px;
    padding-left: 1.5rem;
    padding-bottom: 0.75rem;
}

.facetwp-load-more {
    border-radius: var(--facet-radius-pill);
    background-color: var(--facet-color-primary);
    color: var(--facet-color-bg);
    padding: 0.75rem;
    font-size: 0.875rem;
}

.dc26-filters__partner .facetwp-facet-search {
    width: 15rem;
}

.dc-cluster-class {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--facet-color-primary);
    border: 2px solid var(--facet-color-bg);
    color: var(--facet-color-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--facet-radius-pill);
    font-family: var(--wp--preset--font-family--display, system-ui, sans-serif);
    font-weight: 700;
    font-size: 0.875rem;
}

.facetwp-map-filtering {
    display: none;
}

.fs-wrap .fs-arrow {
    border: 0;
    background: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fs-wrap .fs-arrow::before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--facet-color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

.facetwp-facet  .fs-wrap {
   
    width: 100%;
    line-height: 1.5;
}

.facetwp-facet  .fs-label-wrap {
  
    border-radius: 4px;
}

.facetwp-facet button.facetwp-reset,
.facetwp-reset[role="button"],
[class*="facet-reset"] {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0;
    color: var(--wp--preset--color--gray-text, #808080);
}

.facetwp-facet button.facetwp-reset::before,
.facetwp-facet .facetwp-reset[role="button"]::before,
.facetwp-facet [class*="facet-reset"]::before,
[class*="facet-reset"]::before {
    content: "×";
    font-size: 1rem;
    line-height: 1;
}

/* En-tête, navigation, tiroir mobile */

.home .is-style-sticky-header.is-top .dc26-enerdrape-header .wp-block-site-logo {
	/* Header transparent sur le hero : le logo reste visible (le module header-sticky le masque par défaut sur l'accueil) */
	opacity: 1;
}

/* Logo fluide : 220 px dès ~550 px de large, plus petit en dessous (l'attribut width du bloc reste la valeur desktop) */

.dc26-enerdrape-header .wp-block-site-logo .custom-logo {
	width: clamp(140px, 40vw, 220px);
	height: auto;
}

.dc26-nav-main {
	font-weight: 500;
}

.dc26-nav-main .wp-block-navigation-item__content {
	text-decoration: none;
}

.dc26-nav-main .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.dc26-nav-main .current-menu-item > .wp-block-navigation-item__content,
.dc26-nav-main .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--tertiary);
}

/* Sélecteur de langue WPML */

.dc26-nav-main .wpml-ls-item,
.dc26-nav-main .wp-block-wpml-navigation-language-switcher .wp-block-navigation-item__content {
	text-transform: uppercase;
}

/* Desktop / mobile : le menu desktop disparaît sous 1024 px (le burger de la base prend le relais) */

.dc26-enerdrape-header .dc26-nav-desktop {
	display: none;
}

@media (min-width: 1024px) {
	.dc26-enerdrape-header .dc26-nav-desktop {
		display: flex;
	}
}

/* Tiroir mobile (blocs dc26/nav-drawer + dc26/nav de la base) : titres en police display, dégradé sur chaque mot */

.dc26-nav-drawer .dc26-nav-drawer__content {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--margin);
	padding-top: calc(var(--wp--preset--spacing--triple-margin) + var(--wp-admin--admin-bar--height, 0px));
	padding-right: var(--wp--preset--spacing--margin);
	padding-bottom: var(--wp--preset--spacing--margin);
	padding-left: var(--wp--preset--spacing--margin);
	text-align: left;
}

.dc26-nav-drawer .dc26-nav--vertical .dc26-nav__list {
	align-items: flex-start;
}

.dc26-nav-drawer .dc26-nav__link {
	width: -moz-fit-content;
	width: fit-content;
	text-align: left;
	font-family: var(--wp--preset--font-family--display);
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary) 60%, var(--wp--preset--color--tertiary));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dc26-nav-drawer .dc26-nav__link[aria-current="page"] {
	background: none;
	-webkit-text-fill-color: var(--wp--preset--color--tertiary);
}

/* Séparateur d'accent : petit trait dégradé centré */

.wp-block-separator.is-style-dc26-enerdrape-accent {
	width: var(--wp--preset--spacing--margin);
	max-width: var(--wp--preset--spacing--margin);
	height: 4px;
	border: 0;
	background: var(--wp--preset--gradient--enerdrape-button);
}

.dc26-enerdrape-cta .wp-block-separator.is-style-dc26-enerdrape-accent {
	background: var(--wp--preset--color--white);
}

/* Pied de page */

.dc26-enerdrape-footer {
	gap: var(--wp--preset--spacing--fourth-margin);
}

.dc26-enerdrape-footer .wp-block-navigation-item__content {
	text-decoration: none;
}

.dc26-enerdrape-cta .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 9999px;
	text-transform: uppercase;
	transition: transform 0.3s ease;
}

.dc26-enerdrape-cta .wp-block-button__link:hover {
	transform: translateY(-4px);
}

/* Desktop : textes à gauche dans leur colonne ; mobile (colonnes empilées, seuil de WordPress) : tout est centré, comme la prod */

@media (max-width: 781px) {
	.dc26-enerdrape-footer .wp-block-site-logo {
		margin-inline: auto;
		text-align: center;
	}

	.dc26-enerdrape-footer p,
	.dc26-enerdrape-footer .wp-block-navigation {
		text-align: center;
		justify-content: center;
	}

	.dc26-enerdrape-footer .wp-block-social-links {
		justify-content: center;
	}
}

/* Formulaire Infomaniak (bloc HTML du groupe newsletter) : le CSS fourni suppose box-sizing: border-box */

.dc26-enerdrape-newsletter .inf-form input {
	box-sizing: border-box;
	max-width: 100%;
}

.dc26-enerdrape-newsletter .inf-name-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--half-margin);
}

.dc26-enerdrape-newsletter .inf-name-row > .inf-input {
	flex: 1 1 12rem;
}

.dc26-enerdrape-newsletter .inf-rgpd {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--paragraph-small);
}

.dc26-enerdrape-newsletter .inf-submit {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--half-margin);
}

.dc26-newsletter__submit {
	padding: 0.75em 2em;
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 9999px;
	background: transparent;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--paragraph-small);
	font-weight: 500;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Bandeau de page (bloc Cover natif) */

.dc26-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.dc26-banner {
	padding-right: var(--wp--preset--spacing--margin);
	padding-left: var(--wp--preset--spacing--margin);
}

.dc26-banner__title {
	max-width: 16ch; /* 14ch coupait « UNDERGROUND » en plein mot avec l'espacement des lettres */
	margin-left: -0.05em;
	text-transform: uppercase;
}

.dc26-banner__subtitle {
	max-width: 40ch;
	margin-top: 1em;
	letter-spacing: -0.025em;
}

.dc26-banner .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--white);
	border-radius: 9999px;
	font-size: var(--wp--preset--font-size--paragraph-small);
	font-weight: 500;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	transition: transform 0.3s ease;
}

.dc26-banner .wp-block-button__link:hover {
	transform: translateY(-4px);
}

.dc26-banner__cta {
	margin-right: var(--wp--preset--spacing--double-margin);
}

.dc26-banner__cta .wp-block-separator {
	margin-left: 0;
}

.dc26-banner--hero .wp-block-cover__inner-container {
	text-align: left;
}

/* Contact : iframe Odoo (repris de l'ancien CSS personnalisé du thème) */

#odoo-contact-us-iframe {
	width: 100%;
	height: 860px;
	border: 0;
}

@media (max-width: 800px) {
	#odoo-contact-us-iframe {
		height: 1000px;
	}
}

/* Cartes d'actualités (Query Loop natif) */

.dc26-news-grid .wp-block-post-template {
	gap: var(--wp--preset--spacing--margin);
}

.is-style-dc26-news-card .dc26-news-card__image {
	margin: 0;
}

.is-style-dc26-news-card .dc26-news-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	-o-object-fit: cover;
	   object-fit: cover;
}

.is-style-dc26-news-card .dc26-news-card__image.is-placeholder {
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--gradient--enerdrape);
}

.is-image-logo .dc26-news-card__image img {
	padding: var(--wp--preset--spacing--margin);
	-o-object-fit: contain;
	   object-fit: contain;
}

.is-style-dc26-news-card-body {
	display: flex;
	flex-direction: column;
}

/* Catégorie : pastille discrète (fond bleu très pâle, texte primaire) */

.is-style-dc26-news-card-body .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--fourth-margin);
}

.is-style-dc26-news-card-body .wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

.is-style-dc26-news-card-body .wp-block-post-terms a {
	position: relative; /* au-dessus du lien étendu de la carte */
	z-index: 1;
	padding: 0.1em 0.65em;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 8%, var(--wp--preset--color--white));
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--body);
	font-size: calc(var(--wp--preset--font-size--paragraph-small) * 0.85); /* un cran sous paragraph-small */
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.is-style-dc26-news-card-body .wp-block-post-terms a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 16%, var(--wp--preset--color--white));
}

.is-style-dc26-news-card-body > .wp-block-group {
	gap: 0.25em;
	font-weight: 500;
}

.is-style-dc26-news-card-body > .wp-block-group p {
	margin: 0;
}

.is-style-dc26-news-card-body > .wp-block-group p:not(:empty)::after {
	content: " –";
}

/* Hover de la carte : légère descente et ombre réduite (désactivé si le visiteur réduit les animations) */

@media (prefers-reduced-motion: reduce) {
	.is-style-dc26-news-card,
	.is-style-dc26-news-card:hover {
		transform: none;
		transition: none;
	}
}

/* Titre de carte : même style que les cartes « Autres projets » (police titre, gras, majuscules) */

.is-style-dc26-news-card-body .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.is-style-dc26-news-card-body .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

/* Toute la carte est cliquable (lien du titre étendu) */

.is-style-dc26-news-card-body .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Pagination : pastille blanche ombrée, chiffres sobres, page courante en gras */

.dc26-news .wp-block-query-pagination {
	width: -moz-fit-content;
	width: fit-content;
	margin: var(--wp--preset--spacing--double-margin) auto 0;
	padding: var(--wp--preset--spacing--fourth-margin) var(--wp--preset--spacing--margin);
	gap: var(--wp--preset--spacing--half-margin);
	border-radius: 9999px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 4px 12px var(--wp--preset--color--black-10);
	color: var(--wp--preset--color--gray-dark);
	font-size: var(--wp--preset--font-size--paragraph);
}

.dc26-news .wp-block-query-pagination a {
	color: inherit;
	text-decoration: none;
}

.dc26-news .wp-block-query-pagination a:hover {
	color: var(--wp--preset--color--primary);
}

.dc26-news .wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--half-margin);
}

.dc26-news .wp-block-query-pagination .page-numbers.current {
	font-weight: 700;
}

.dc26-news .wp-block-query-pagination-previous::before {
	content: "« ";
}

.dc26-news .wp-block-query-pagination-next::after {
	content: " »";
}

/* Page d'un article (revue de presse) : image sur 3 colonnes, contenu sur 9 */

.dc26-news-single__columns {
	gap: var(--wp--preset--spacing--double-margin);
}

.dc26-news-single__image {
	margin: 0;
}

.dc26-news-single__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Logo d'un média : entier, dans un cadre fin */

.dc26-news-single__image.is-logo img {
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	padding: var(--wp--preset--spacing--margin);
	border: 1px solid var(--wp--preset--color--black-10);
	-o-object-fit: contain;
	   object-fit: contain;
}

.dc26-news-single .wp-block-post-content {
	max-width: 40em;
	text-wrap: pretty;
}

.dc26-news-single .wp-block-post-content > * + * {
	margin-block-start: var(--wp--preset--spacing--half-margin);
}

.dc26-news-single .wp-block-buttons {
	margin-top: var(--wp--preset--spacing--margin);
}

/* Bandeau de la page d'un article : texte calé sur la grille de 1252 px (comme l'image et le contenu) */

.wp-block-cover.dc26-single-banner > .wp-block-cover__inner-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1252px + 2 * var(--wp--preset--spacing--margin));
	margin-inline: auto !important; /* la mise en page « contenu en bas à gauche » du Cover impose sinon une marge nulle */
}

/* Bandeau de la page d'un article : dégradé Enerdrape, texte blanc */

.dc26-single-banner a {
	color: var(--wp--preset--color--white);
}

/* Catégorie du bandeau : pastille translucide */

.dc26-single-banner .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--fourth-margin);
}

.dc26-single-banner .wp-block-post-terms .wp-block-post-terms__separator {
	display: none;
}

.dc26-single-banner .wp-block-post-terms a {
	padding: 0.1em 0.65em;
	border-radius: 9999px;
	background: var(--wp--preset--color--white-translucid);
	font-size: calc(var(--wp--preset--font-size--paragraph-small) * 0.85);
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.dc26-single-banner .wp-block-post-terms a:hover {
	background: color-mix(in srgb, var(--wp--preset--color--white) 33%, transparent);
}

.dc26-single__title {
	text-wrap: balance;
	margin-top: var(--wp--preset--spacing--half-margin);
}

@media (max-width: 781px) {
	.dc26-news-single__columns {
		gap: var(--wp--preset--spacing--margin);
	}

	.dc26-news-single__image.is-logo img {
		max-width: 16rem;
	}
}

/* Autres articles : même structure que « Autres projets » (trait d'accent, titre centré, grille, bouton de retour sur un filet) */

.dc26-news-related-section {
	margin-top: var(--wp--preset--spacing--double-margin);
}

.dc26-news-related-section > .wp-block-separator {
	margin-inline: auto;
}

.dc26-news-related__title {
	max-width: 55ch;
	margin: var(--wp--preset--spacing--margin) auto 0;
	line-height: 1.25;
	text-wrap: balance;
}

.dc26-news-related-section .dc26-news-related {
	margin-top: calc(2 * var(--wp--preset--font-size--paragraph));
}

.dc26-news-related__more {
	position: relative;
	margin-top: var(--wp--preset--spacing--margin);
}

.dc26-news-related__more::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 100vw;
	height: 1px;
	transform: translateX(-50%);
	background: var(--wp--preset--color--gray-85);
}

/* Le filet passe derrière le bouton : fond blanc pour qu'il ne le traverse pas */

.dc26-news-related__more .wp-block-button__link {
	background: var(--wp--preset--color--white);
}

.dc26-news-related__more .wp-block-button__link:hover {
	background: var(--wp--preset--color--gray-90);
}

/* Sections de page en blocs natifs */

.dc26-section-title {
	max-width: 55ch;
	margin-inline: auto;
	line-height: 1.25;
	text-wrap: balance;
}

.dc26-content-section--large .dc26-section-title {
	margin-inline: 0;
	max-width: 30ch;
}

.dc26-content-section,
.dc26-partners,
.dc26-news--section {
	padding-block: var(--wp--preset--spacing--fourth-margin);
}

.dc26-content-section > * + *,
.dc26-partners > * + *,
.dc26-news--section > * + * {
	margin-block-start: 2em;
}

.has-gradient-text {
	background: var(--wp--preset--gradient--enerdrape-button);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Filet gris avec trait d'accent à gauche */

.wp-block-separator.is-style-dc26-enerdrape-rule {
	position: relative;
	width: 100%;
	max-width: none;
	height: 0;
	overflow: visible;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--gray-85);
	background: none;
}

.wp-block-separator.is-style-dc26-enerdrape-rule::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: var(--wp--preset--spacing--margin);
	height: 4px;
	background: var(--wp--preset--gradient--enerdrape-button);
}

/* Texte en colonnes (champ « deux colonnes » des anciens blocs) */

@media (min-width: 768px) {
	.dc26-text--2col {
		-moz-column-count: 2;
		     column-count: 2;
		-moz-column-gap: var(--wp--preset--spacing--margin);
		     column-gap: var(--wp--preset--spacing--margin);
	}
}

/* Texte principal : boîte de 60 caractères, texte centré (comme la prod) */

.dc26-content-section > .dc26-text:not(.dc26-text--2col) {
	max-width: 60ch;
	margin-inline: auto;
	text-align: center;
}

/* Section « large » : la boîte est centrée dans les 9/12 de gauche */

.dc26-content-section--large > .dc26-text:not(.dc26-text--2col) {
	margin-inline: max(0px, calc((75% - 60ch) / 2)) auto;
}

.dc26-text > * + * {
	margin-block-start: 1em;
}

.dc26-sub-section {
	margin-block-start: var(--wp--preset--spacing--double-margin);
}

.dc26-sub-section__cols {
	gap: var(--wp--preset--spacing--double-margin);
}

/* Bouton à contour dégradé */

.wp-block-button.is-style-dc26-enerdrape-gradient .wp-block-button__link {
	border: 2px solid transparent;
	border-radius: 9999px;
	background: linear-gradient(var(--wp--preset--color--white), var(--wp--preset--color--white)) padding-box, var(--wp--preset--gradient--enerdrape-button) border-box;
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--paragraph-small);
	font-weight: 500;
	text-transform: uppercase;
	transition: transform 0.3s ease;
}

.wp-block-button.is-style-dc26-enerdrape-gradient .wp-block-button__link:hover {
	transform: translateY(-4px);
}

/* FAQ : traits d'accent, titres et « + » (le reste est dans styles/blocks) */

.is-style-dc26-faq-item::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: var(--wp--preset--spacing--margin);
	height: 4px;
	background: var(--wp--preset--gradient--enerdrape-button);
}

.is-style-dc26-faq-item summary {
	position: relative;
	padding-left: var(--wp--preset--spacing--margin);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--paragraph);
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	text-wrap: balance;
	list-style: none;
	cursor: pointer;
}

.is-style-dc26-faq-item summary::-webkit-details-marker {
	display: none;
}

.is-style-dc26-faq-item summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: calc(-1 * var(--wp--preset--spacing--margin));
	transform: translateY(-50%);
	background: var(--wp--preset--gradient--enerdrape-button);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	font-size: var(--wp--preset--font-size--paragraph-lead);
	transition: transform 0.3s ease;
}

.is-style-dc26-faq-item[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.is-style-dc26-faq-item > :not(summary) {
	max-width: 60ch;
	margin-left: var(--wp--preset--spacing--margin);
	margin-top: var(--wp--preset--spacing--half-margin);
}

/* Comparatif : la flèche pivote en mobile */

@media (max-width: 767px) {
	.is-style-dc26-compare-arrow {
		transform: rotate(90deg);
	}
}

/* Comparatif : images de fond (non résolues dans les variations de style) */

.is-style-dc26-compare {
	background: url("../assets/img/grid.svg") center / 1720px repeat;
}

.is-style-dc26-compare-arrow {
	background: url("../assets/img/compare-arrow.svg") center / contain no-repeat;
}

/* Message affiché dans l'éditeur quand un bloc dc26/* n'a pas encore de contenu */

.dc26-block-placeholder {
	padding: var(--wp--preset--spacing--half-margin);
	border: 1px dashed var(--wp--preset--color--gray-80);
	color: var(--wp--preset--color--gray-60);
}

/* Archives (projets, actualités) : champ de recherche FacetWP, arrondi comme les boutons, contour fin gris comme les séparateurs */

.facetwp-facet-projects_search,
.facetwp-facet-news_search {
	max-width: 28rem;
	margin: var(--wp--preset--spacing--margin) auto 0;
}

.facetwp-facet-projects_search.facetwp-type-search .facetwp-input-wrap,
.facetwp-facet-news_search.facetwp-type-search .facetwp-input-wrap {
	border: 1px solid var(--wp--preset--color--gray-85);
	border-radius: 9999px;
	padding: 0.5rem 1rem;
}

.facetwp-facet-projects_search.facetwp-type-search .facetwp-input-wrap input,
.facetwp-facet-news_search.facetwp-type-search .facetwp-input-wrap input {
	width: 100%;
	font-size: var(--wp--preset--font-size--paragraph-small);
}

/* Page des actualités : filtre par catégorie et recherche sur une ligne */

.dc26-news-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--margin);
}

.dc26-news-filters .facetwp-facet {
	margin: 0;
}

.dc26-news-filters .facetwp-facet-news_search {
	flex: 1 1 18rem;
}

/* Bouton « Réinitialiser » des filtres */

.dc26-projects-archive__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--margin);
}

.dc26-facets-reset {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: var(--wp--preset--font-size--paragraph-small);
	text-decoration: underline;
	cursor: pointer;
}

.dc26-facets-reset:hover {
	color: var(--wp--preset--color--primary);
}

.dc26-facets-reset[hidden] {
	display: none;
}

/* Accessibilité : focus visible sur les champs FacetWP (la feuille du module les supprime) */

.facetwp-type-search .facetwp-input-wrap:focus-within {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.facetwp-facet .facetwp-dropdown:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* H1 plus petit sous 768px (comportement de l'ancien thème) */

@media (max-width: 767px) {
	h1 {
		font-size: var(--wp--preset--font-size--h-1-mobile);
	}
}
