/* ==========================================================================
   EHPJT Marly — styles du thème
   Couleurs : voir theme.json (anthracite #1B191E, or #A88B65, sable #997E60)
   ========================================================================== */

:root {
	--ehpjt-ink: var(--wp--preset--color--ink, #1B191E);
	--ehpjt-surface: var(--wp--preset--color--surface, #26232A);
	--ehpjt-line: var(--wp--preset--color--line, #3A3540);
	--ehpjt-gold: var(--wp--preset--color--gold, #A88B65);
	--ehpjt-sand: var(--wp--preset--color--sand, #997E60);
	--ehpjt-light: var(--wp--preset--color--light, #F2EEE8);
	--ehpjt-muted: var(--wp--preset--color--muted, #CFC8BE);
	--ehpjt-radius: 10px;
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { overflow-x: clip; }
img { height: auto; }

/* ---------- Titres ---------- */
.is-style-ehpjt-script,
h1.is-style-ehpjt-script,
h2.is-style-ehpjt-script {
	font-family: var(--wp--preset--font-family--script) !important;
	font-weight: 400 !important;
	text-transform: none !important;
	font-size: var(--wp--preset--font-size--script);
	line-height: 1.1;
}
.ehpjt-accent { color: var(--ehpjt-gold); }
.ehpjt-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--ehpjt-gold);
}
.ehpjt-lead { font-size: 1.15rem; color: var(--ehpjt-muted); }
.ehpjt-muted { color: var(--ehpjt-muted); }

/* ---------- En-tête ---------- */
.ehpjt-header {
	border-bottom: 1px solid #2E2A33;
	position: relative;
	z-index: 50;
	background: var(--ehpjt-ink);
}
.ehpjt-header .wp-block-site-logo img { max-height: 54px; width: auto; }
.ehpjt-header .wp-block-navigation a { text-decoration: none; padding: 10px 6px; }
.ehpjt-header .wp-block-navigation .current-menu-item > a,
.ehpjt-header .wp-block-navigation a[aria-current="page"] { color: var(--ehpjt-gold); }
.ehpjt-header .wp-block-navigation__submenu-container {
	background: var(--ehpjt-surface) !important;
	border: 1px solid var(--ehpjt-line) !important;
	border-radius: 8px;
	padding: 6px 0;
}
.ehpjt-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ehpjt-ink) !important;
	color: var(--ehpjt-light) !important;
	padding: 24px;
}

/* ---------- Boutons ---------- */
.wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-ehpjt-ghost .wp-block-button__link {
	background: transparent;
	color: var(--ehpjt-light);
	border: 2px solid var(--ehpjt-gold);
}
.wp-block-button.is-style-ehpjt-ghost .wp-block-button__link:hover {
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
}

/* ---------- Cartes ---------- */
.is-style-ehpjt-card,
.is-style-ehpjt-card-gold {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.is-style-ehpjt-card-gold { border-top: 4px solid var(--ehpjt-gold); }
.is-style-ehpjt-outline {
	border: 1px solid var(--ehpjt-gold);
	border-radius: var(--ehpjt-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.is-style-ehpjt-card > :first-child,
.is-style-ehpjt-card-gold > :first-child,
.is-style-ehpjt-outline > :first-child { margin-top: 0; }
.ehpjt-card-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	text-transform: uppercase;
	color: var(--ehpjt-gold);
	margin: 0;
}
.ehpjt-big-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	margin: 0;
}

/* ---------- Images ---------- */
.is-style-ehpjt-rounded img { border-radius: var(--ehpjt-radius); }
.wp-block-image.is-style-ehpjt-oval img {
	border-radius: 50% / 50%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	width: 170px;
	filter: grayscale(1);
}
.wp-block-image.is-style-ehpjt-oval { display: flex; justify-content: center; }
.ehpjt-fullbleed img { width: 100%; display: block; }
.ehpjt-photo-band img { width: 100%; height: clamp(320px, 45vw, 620px); object-fit: cover; display: block; }

/* ---------- Plaque nom / étiquettes ---------- */
p.is-style-ehpjt-plate {
	display: inline-block;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.45rem 1.1rem;
	margin: 0 auto;
}
p.is-style-ehpjt-tag,
.ehpjt-badge,
.ehpjt-terms a {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink) !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin: 0 6px 0 0;
}
.ehpjt-terms { margin: 0; }
.ehpjt-terms .wp-block-post-terms__separator { display: none; }

/* ---------- Personnes (comité, joueurs, coachs) ---------- */
.ehpjt-person { text-align: center; gap: 0.75rem !important; }
.ehpjt-person p { margin: 0; }
.ehpjt-person .ehpjt-role { color: var(--ehpjt-muted); font-size: 0.95rem; }
.ehpjt-player {
	border: 2px solid #8C7556;
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	background: var(--ehpjt-surface);
	gap: 0 !important;
}
.ehpjt-player .wp-block-image { margin: 0; }
.ehpjt-player .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.ehpjt-player p {
	margin: 0;
	padding: 0.7rem 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.05rem;
}

/* ---------- Écussons des équipes ---------- */
.ehpjt-badges { justify-content: center; gap: 1.5rem 3.5rem !important; }
.ehpjt-badges .wp-block-image { margin: 0; text-align: center; }
.ehpjt-badges .wp-block-image img { height: 140px; width: auto; transition: transform .15s ease; }
.ehpjt-badges .wp-block-image a:hover img { transform: translateY(-4px); }
.ehpjt-badges .wp-element-caption {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.1rem;
	text-transform: uppercase;
	color: var(--ehpjt-light);
	margin-top: 0.6rem;
}
.ehpjt-badges--small .wp-block-image img { height: 72px; }
.ehpjt-badges--small .wp-element-caption { font-size: 0.85rem; }

/* ---------- Actualités / cartes d'articles ---------- */
.ehpjt-news-featured {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
}
.ehpjt-news-featured .wp-block-post-featured-image { margin: 0; height: 100%; }
.ehpjt-news-featured .wp-block-post-featured-image img { height: 100%; min-height: 320px; object-fit: cover; }
.ehpjt-news-featured .wp-block-column:last-child { padding: clamp(1.5rem, 3vw, 2.5rem); align-self: center; }
.ehpjt-news-grid .wp-block-post,
.ehpjt-album-grid .wp-block-post {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ehpjt-news-grid .wp-block-post-featured-image,
.ehpjt-album-grid .wp-block-post-featured-image { margin: 0; }
.ehpjt-news-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.ehpjt-album-grid .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.ehpjt-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.ehpjt-card-body > * { margin-top: 0.5rem !important; }
.ehpjt-card-body > :first-child { margin-top: 0 !important; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--ehpjt-gold); }
.wp-block-post-date { color: var(--ehpjt-muted); font-size: 0.9rem; }
.wp-block-post-excerpt__excerpt { color: var(--ehpjt-muted); }
.wp-block-post-excerpt__more-link { font-weight: 700; color: var(--ehpjt-gold); text-decoration: none; }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Filtres de la page Photos ---------- */
.ehpjt-filters { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.ehpjt-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ehpjt-filters__label { font-size: 0.9rem; font-weight: 600; color: var(--ehpjt-muted); min-width: 64px; }
.ehpjt-chip {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid #4A4450;
	color: var(--ehpjt-light) !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}
.ehpjt-chip:hover { border-color: var(--ehpjt-gold); }
.ehpjt-chip.is-active { background: var(--ehpjt-gold); border-color: var(--ehpjt-gold); color: var(--ehpjt-ink) !important; font-weight: 700; }

/* ---------- Galerie d'un album ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 6px; }

/* ---------- Questions fréquentes ---------- */
.wp-block-details {
	border-bottom: 1px solid var(--ehpjt-line);
	padding: 1rem 0.25rem;
	margin: 0 !important;
}
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.wp-block-details[open] summary { color: var(--ehpjt-gold); }
.wp-block-details > p { color: var(--ehpjt-muted); }

/* ---------- Événements (Manifestations) ---------- */
.ehpjt-event { gap: 1.5rem !important; align-items: flex-start !important; }
.ehpjt-date {
	flex: none;
	width: 84px;
	min-height: 92px;
	border: 1px solid var(--ehpjt-gold);
	border-radius: 8px;
	background: var(--ehpjt-ink);
	text-align: center;
	gap: 0 !important;
	justify-content: center;
	padding: 0.5rem 0;
}
.ehpjt-date p { margin: 0; }
.ehpjt-date .ehpjt-date__day { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.ehpjt-date .ehpjt-date__month { color: var(--ehpjt-gold); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.ehpjt-event--past { opacity: 0.55; }

/* ---------- Sponsors ---------- */
.ehpjt-sponsors-strip { background: #fff; color: var(--ehpjt-ink); }
.ehpjt-sponsors-strip .wp-block-image { margin: 0; display: flex; align-items: center; justify-content: center; }
.ehpjt-sponsors-strip .wp-block-image img { max-height: 64px; width: auto; object-fit: contain; }
.ehpjt-sponsor-grid .wp-block-image {
	background: #fff;
	border-radius: 12px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	aspect-ratio: 16 / 9;
}
.ehpjt-sponsor-grid .wp-block-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ehpjt-sponsor-grid--platine .wp-block-image { max-width: 440px; margin: 0 auto; }

/* ---------- Pied de page ---------- */
.ehpjt-footer { background: var(--ehpjt-sand); color: var(--ehpjt-ink); }
.ehpjt-footer a { color: var(--ehpjt-ink); }
.ehpjt-footer a:hover { color: #fff; }
.ehpjt-footer h2, .ehpjt-footer h3 { color: var(--ehpjt-ink); font-size: 1.4rem; margin: 0 0 0.5rem; }
.ehpjt-footer .wp-block-social-links .wp-social-link { background: var(--ehpjt-ink) !important; color: var(--ehpjt-light) !important; }
.ehpjt-footer__bottom { border-top: 1px solid #7E6750; font-size: 0.85rem; }

/* ---------- Formulaires (Contact Form 7) ---------- */
.wpcf7 form { display: flex; flex-direction: column; gap: 1.25rem; }
.wpcf7 fieldset {
	margin: 0;
	border: none;
	border-radius: var(--ehpjt-radius);
	background: var(--ehpjt-surface);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.wpcf7 legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	text-transform: uppercase;
}
.wpcf7 legend span { color: var(--ehpjt-gold); }
.wpcf7 label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.wpcf7 .ehpjt-help { display: block; font-weight: 400; font-size: 0.85rem; color: #B9B2A8; }
.wpcf7 .ehpjt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.wpcf7 .ehpjt-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.6rem 0.9rem;
	border-radius: 6px;
	border: 1px solid #4A4450;
	background: var(--ehpjt-ink);
	color: var(--ehpjt-light);
	font: inherit;
	font-weight: 400;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--ehpjt-gold); outline-offset: 1px; border-color: var(--ehpjt-gold); }
.wpcf7 .wpcf7-checkbox, .wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-radio .wpcf7-list-item label {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border-radius: 6px;
	border: 1px solid #4A4450;
	background: var(--ehpjt-ink);
	font-weight: 500;
	cursor: pointer;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label { flex-direction: row; align-items: flex-start; gap: 0.7rem; font-weight: 400; color: var(--ehpjt-muted); }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { accent-color: var(--ehpjt-gold); width: 18px; height: 18px; margin: 0; flex: none; }
.wpcf7 input[type="submit"] {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 2rem;
	border: none;
	border-radius: 6px;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--ehpjt-light); }
.wpcf7 .wpcf7-not-valid-tip { color: #FF8A80; font-size: 0.85rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 6px; padding: 0.8rem 1rem; }
.ehpjt-note { font-size: 0.85rem; color: #B9B2A8; }

/* ---------- WooCommerce (boutique) ---------- */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	padding-bottom: 1rem;
}
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img { background: #fff; object-fit: contain; aspect-ratio: 1; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	color: var(--ehpjt-light);
	padding: 0 1rem;
}
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--ehpjt-gold) !important; font-weight: 700; padding: 0 1rem; }
.woocommerce span.onsale { background: #B3261E; border-radius: 4px; min-height: 0; line-height: 1.6; padding: 0.15rem 0.6rem; }
.woocommerce .button, .wc-block-components-button {
	background: var(--ehpjt-gold) !important;
	color: var(--ehpjt-ink) !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
}
.woocommerce-store-notice, p.demo_store { background: var(--ehpjt-gold); color: var(--ehpjt-ink); }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.ehpjt-badges { gap: 1rem 1.5rem !important; }
	.ehpjt-badges .wp-block-image img { height: 96px; }
	.wpcf7 .ehpjt-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ehpjt-event { flex-direction: column; }
}

/* ---------- Mise en page générale ---------- */
.ehpjt-header-inner { padding-block: 14px; }
.ehpjt-header-nav { gap: 0.75rem 1.25rem; }
.ehpjt-main { padding-bottom: clamp(3rem, 6vw, 6rem); }
.ehpjt-page-title { margin-top: clamp(2.5rem, 5vw, 4rem) !important; margin-bottom: 1.5rem !important; }
.ehpjt-main section.wp-block-group,
main section.wp-block-group { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.ehpjt-banner { margin: 0 !important; }
.ehpjt-welcome { text-align: center; max-width: 760px; margin-inline: auto !important; }
.ehpjt-home-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.ehpjt-photo-band { margin-top: clamp(2.5rem, 5vw, 4rem) !important; }
.ehpjt-section-head { align-items: baseline; margin-bottom: 1.5rem; }
.ehpjt-section-head h2 { margin: 0; }
.ehpjt-section-head p a { font-weight: 600; text-decoration: none; }
.ehpjt-news-featured { margin-bottom: 1.5rem; gap: 0 !important; }
.ehpjt-subnav { justify-content: center; margin-top: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid #2E2A33; }
.ehpjt-subnav p { margin: 0; }
.ehpjt-subnav .ehpjt-chip { border: none; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; font-size: 1.05rem; }
.ehpjt-team-title { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 0.25rem; }
.ehpjt-stat { text-align: center; }
.ehpjt-people { row-gap: 3rem !important; }
.ehpjt-roster { gap: 1.25rem !important; }

/* Bouton foncé (pied de page doré) */
.wp-block-button.is-style-ehpjt-dark .wp-block-button__link { background: var(--ehpjt-ink); color: var(--ehpjt-light); }
.wp-block-button.is-style-ehpjt-dark .wp-block-button__link:hover { background: #fff; color: var(--ehpjt-ink); }

/* Bande sponsors */
.ehpjt-sponsors-strip { padding-block: 1.75rem; margin-top: clamp(3rem, 6vw, 5rem) !important; }
.ehpjt-sponsors-title { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.ehpjt-sponsors-title a { color: #5A5560; text-decoration: none; }
.ehpjt-logos.wp-block-gallery { align-items: center; }
.ehpjt-logos.wp-block-gallery figure.wp-block-image { justify-content: center; }
.ehpjt-logos.wp-block-gallery figure.wp-block-image img { max-height: 64px; width: auto !important; object-fit: contain; margin: 0 auto; }

/* Pied de page */
.ehpjt-footer { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 1.25rem; }
.ehpjt-footer-cols { gap: 2rem; }
.ehpjt-footer p { font-size: 0.95rem; }
.ehpjt-footer__bottom { padding-top: 1rem; margin-top: 1.5rem; }

/* ---------- Téléphones (la majorité des visiteurs) ---------- */
@media (max-width: 600px) {
	:root { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	.is-style-ehpjt-script, h1.is-style-ehpjt-script, h2.is-style-ehpjt-script { font-size: clamp(2.4rem, 11vw, 3.4rem); overflow-wrap: break-word; }
	h2, .wp-block-heading { overflow-wrap: break-word; hyphens: auto; }
	.ehpjt-header-inner { padding-block: 10px; }
	.ehpjt-header .wp-block-site-logo img { max-height: 44px; }
	.ehpjt-header-nav { gap: 0.5rem; }
	.ehpjt-header .wp-block-button__link { padding: 0.6rem 0.9rem; font-size: 0.9rem; }
	.ehpjt-photo-band img { height: 240px; }
	.ehpjt-news-featured .wp-block-post-featured-image img { min-height: 200px; aspect-ratio: 16 / 10; }
	.ehpjt-badges { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
	.ehpjt-badges--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem !important; }
	.ehpjt-badges--small .wp-block-image img { height: 56px; }
	.ehpjt-badges--small .wp-element-caption { font-size: 0.7rem; }
	.ehpjt-people { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 2rem !important; }
	.wp-block-image.is-style-ehpjt-oval img { width: 120px; }
	p.is-style-ehpjt-plate { font-size: 0.9rem; padding: 0.35rem 0.7rem; }
	.ehpjt-roster { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem !important; }
	.ehpjt-player p { font-size: 0.9rem; padding: 0.5rem 0.6rem; }
	.ehpjt-filters__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.ehpjt-chip { white-space: nowrap; }
	.ehpjt-logos.wp-block-gallery figure.wp-block-image { width: calc(33.33% - var(--wp--style--gallery-gap-default, 16px)) !important; }
	.ehpjt-logos.wp-block-gallery figure.wp-block-image img { max-height: 44px; }
	.wpcf7 fieldset { padding: 1rem; }
	.wpcf7 input[type="submit"] { width: 100%; }
	.is-style-ehpjt-card, .is-style-ehpjt-card-gold, .is-style-ehpjt-outline { padding: 1.1rem; }
	iframe { max-width: 100%; }
}

/* Galerie des joueurs / coachs (pages d'équipe) */
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image {
	border: 2px solid #8C7556;
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	background: var(--ehpjt-surface);
}
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image figcaption {
	background: var(--ehpjt-surface);
	position: static;
	color: var(--ehpjt-light);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1rem;
	padding: 0.5rem;
	max-height: none;
	text-shadow: none;
	text-align: center;
}
@media (max-width: 600px) {
	.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image { width: calc(50% - var(--wp--style--gallery-gap-default, 16px) / 2) !important; }
}
/* Le petit mode d'emploi n'apparaît que dans l'éditeur */
body:not(.block-editor-page):not(.editor-styles-wrapper) .ehpjt-editor-hint { display: none; }

/* === Ajustements faits sur le site (16.11.2026) === */
.ehpjt-banner{margin-top:0!important;margin-bottom:0!important}
.ehpjt-header .wp-block-site-logo img{height:58px!important;width:auto!important;aspect-ratio:3/4}
.ehpjt-welcome-img img{max-width:min(640px,90vw);height:auto}
.ehpjt-welcome-img{margin-top:clamp(2rem,5vw,3.5rem)!important}
.ehpjt-claim-img img{max-width:min(760px,92vw);height:auto}
.ehpjt-claim-img{margin-top:2.5rem!important}
.ehpjt-header .wp-block-navigation .wp-block-navigation-item__content{color:#F2EEE8!important}
.ehpjt-header .wp-block-navigation .wp-block-navigation-item__content:hover,.ehpjt-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content,.ehpjt-header .wp-block-navigation .current-menu-ancestor>.wp-block-navigation-item__content{color:#A88B65!important}
.ehpjt-header .wp-block-navigation .wp-block-navigation__submenu-container{background:#26232A!important;border:1px solid #3A3540!important;border-radius:8px;padding:6px 0;min-width:220px}
.ehpjt-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content{padding:10px 18px!important;font-weight:500}
.ehpjt-header .wp-block-navigation .wp-block-navigation__submenu-icon{color:#A88B65}
.ehpjt-header .wp-block-navigation__responsive-container.is-menu-open{background:#1B191E!important}
.ehpjt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:1.1rem;padding:8px 0!important}
.wpcf7 .cf7-row{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
.wpcf7 .cf7-full{flex:1 1 100%}
.wpcf7 .cf7-half{flex:1 1 calc(50% - .5rem);min-width:220px}
.wpcf7 .cf7-section{background:#26232A;border-radius:10px;padding:1.25rem;margin-bottom:1.25rem}
.wpcf7 .cf7-row label,.wpcf7 .cf7-section>label{display:block;margin-bottom:.4rem;font-weight:600}
.wpcf7 h3,.wpcf7 h5{color:#A88B65;margin:0 0 .75rem}
.wpcf7 hr{border:0;border-top:1px solid #3A3540;margin:1.25rem 0}
.wpcf7 .cf7-submit-zone{margin-top:1rem}
.wpcf7 .cf7-required-notice{font-size:.85rem;color:#B9B2A8}
.wpcf7 table{width:100%;border-collapse:collapse}.wpcf7 td{padding:.4rem;vertical-align:top}
.wpcf7 .wpcf7-list-item label{display:inline-flex!important;margin:0}
.ehpjt-header .wp-block-navigation{gap:1.1rem}
.ehpjt-sponsor-grid.wp-block-gallery{justify-content:center}
.ehpjt-sponsor-grid.wp-block-gallery figure.wp-block-image{flex-grow:0!important;width:calc(25% - 12px)!important;aspect-ratio:16/10}
.ehpjt-sponsor-grid--platine.wp-block-gallery figure.wp-block-image{width:440px!important;max-width:100%}
@media (max-width:600px){.ehpjt-sponsor-grid.wp-block-gallery figure.wp-block-image{width:calc(50% - 8px)!important}}
.ehpjt-roster-gallery.wp-block-gallery{justify-content:flex-start}
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image{flex-grow:0!important;width:calc(25% - 14px)!important}
@media (max-width:600px){.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image{width:calc(50% - var(--wp--style--gallery-gap-default,16px)/2)!important}}
.wp-block-post-content>.alignfull{margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;max-width:100vw!important;width:100vw}
.wp-block-post-content>.alignfull img{width:100%;display:block}
.ehpjt-roster-gallery.wp-block-gallery,.ehpjt-sponsor-grid.wp-block-gallery:not(.ehpjt-sponsor-grid--platine){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important}
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image,.ehpjt-sponsor-grid.wp-block-gallery:not(.ehpjt-sponsor-grid--platine) figure.wp-block-image{width:auto!important;margin:0!important}
@media (max-width:600px){.ehpjt-roster-gallery.wp-block-gallery,.ehpjt-sponsor-grid.wp-block-gallery:not(.ehpjt-sponsor-grid--platine){grid-template-columns:repeat(2,minmax(0,1fr))}}
.ehpjt-marquee-band.ehpjt-sponsors-strip{background:#26232A!important;border-top:1px solid #3A3540;border-bottom:1px solid #3A3540;padding-block:1.4rem!important;overflow:hidden}
.ehpjt-marquee-band .ehpjt-sponsors-title a{color:#A88B65!important}
.ehpjt-marquee.wp-block-gallery{display:flex!important;flex-wrap:nowrap!important;width:max-content!important;gap:56px!important;align-items:center;animation:ehpjt-marquee 70s linear infinite}
.ehpjt-marquee-band:hover .ehpjt-marquee{animation-play-state:paused}
.ehpjt-marquee.wp-block-gallery figure.wp-block-image{width:auto!important;flex:0 0 auto!important;margin:0!important}
.ehpjt-marquee.wp-block-gallery figure.wp-block-image img{height:42px!important;max-height:42px!important;width:auto!important;filter:brightness(0) invert(1);opacity:.7;transition:opacity .2s,filter .2s}
.ehpjt-marquee.wp-block-gallery figure.wp-block-image:hover img{filter:none;opacity:1}
@keyframes ehpjt-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ehpjt-marquee.wp-block-gallery{animation:none;flex-wrap:wrap!important;width:auto!important;justify-content:center}}
.ehpjt-marquee.wp-block-gallery{gap:20px!important}
.ehpjt-marquee.wp-block-gallery figure.wp-block-image{background:#fff;border-radius:10px;padding:10px 20px;height:64px;box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;min-width:140px}
.ehpjt-marquee.wp-block-gallery figure.wp-block-image img{filter:none!important;opacity:1!important;height:44px!important;max-height:44px!important;max-width:160px!important;object-fit:contain}
.ehpjt-people--cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;row-gap:20px!important}
.ehpjt-people--cards .ehpjt-person{border:2px solid #8C7556;border-radius:10px;overflow:hidden;background:#26232A;gap:0!important;justify-content:flex-start!important;padding-bottom:1rem}
.ehpjt-people--cards .ehpjt-person .wp-block-image{margin:0;width:100%}
.ehpjt-people--cards .ehpjt-person .wp-block-image img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%;display:block}
.ehpjt-people--cards .ehpjt-person p.is-style-ehpjt-plate{display:block;width:100%;background:transparent;color:#F2EEE8;border-top:3px solid #A88B65;padding:.7rem .5rem .3rem;font-size:1.05rem;margin:0}
.ehpjt-people--cards .ehpjt-person .ehpjt-role{padding:0 .75rem;margin-top:.25rem!important}
@media (max-width:600px){.ehpjt-people--cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body .ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image,body .ehpjt-sponsor-grid.wp-block-gallery:not(.ehpjt-sponsor-grid--platine) figure.wp-block-image{width:auto!important;max-width:none!important;flex:none!important}
.ehpjt-header .wp-block-navigation__responsive-container-open{padding:6px}
.ehpjt-header .wp-block-navigation__responsive-container-open svg{width:34px;height:34px;fill:#F2EEE8}
.ehpjt-header .wp-block-navigation__responsive-container-close svg{width:32px;height:32px;fill:#F2EEE8}
.ehpjt-header .is-menu-open .wp-block-navigation__responsive-container-content{align-items:flex-start!important;padding-top:3rem!important}
.ehpjt-header .is-menu-open .wp-block-navigation__container{align-items:flex-start!important;gap:1.1rem!important;width:100%}
.ehpjt-header .is-menu-open .wp-block-navigation-item{align-items:flex-start!important;width:100%}
.ehpjt-header .is-menu-open .wp-block-navigation__container>.wp-block-navigation-item>.wp-block-navigation-item__content{font-family:Oswald,sans-serif;text-transform:uppercase;font-size:1.45rem!important;font-weight:600;color:#A88B65!important;padding:0!important}
.ehpjt-header .is-menu-open .wp-block-navigation__submenu-container{background:transparent!important;border:0!important;border-left:2px solid #3A3540!important;border-radius:0!important;padding:.25rem 0 0 1rem!important;margin-top:.4rem!important;gap:.15rem!important;min-width:0!important;width:100%}
.ehpjt-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{font-size:1.05rem!important;color:#F2EEE8!important;padding:.35rem 0!important}
.ehpjt-header .is-menu-open .wp-block-navigation-item__content:focus{outline:none}
.ehpjt-people--cards .ehpjt-person>.wp-block-image,.ehpjt-people--cards .ehpjt-person .wp-lightbox-container{align-self:stretch!important;width:100%!important;display:block!important}
.ehpjt-people--cards .ehpjt-person img{width:100%!important;max-width:100%!important}
@media (max-width:600px){.ehpjt-people--cards{gap:12px!important;row-gap:12px!important}
.ehpjt-people--cards .ehpjt-person p.is-style-ehpjt-plate{font-size:.85rem;padding:.55rem .4rem .2rem;letter-spacing:0}
.ehpjt-people--cards .ehpjt-person .ehpjt-role{font-size:.78rem;line-height:1.4;padding:0 .4rem;overflow-wrap:anywhere}
.ehpjt-people--cards .ehpjt-person{padding-bottom:.6rem}}
.ehpjt-roster-gallery .lightbox-trigger,.ehpjt-people--cards .lightbox-trigger{display:none!important}
.ehpjt-people--cards .ehpjt-role a{word-break:break-all}
.ehpjt-header .is-menu-open .wp-block-navigation-item.has-child>.wp-block-navigation__submenu-container{display:none!important}
.ehpjt-header .is-menu-open .wp-block-navigation-item.has-child.ehpjt-open>.wp-block-navigation__submenu-container{display:flex!important}
.ehpjt-header .is-menu-open .wp-block-navigation-item.has-child>.wp-block-navigation-item__content::after{content:"";display:inline-block;width:9px;height:9px;margin-left:12px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-4px);transition:transform .2s}
.ehpjt-header .is-menu-open .wp-block-navigation-item.has-child.ehpjt-open>.wp-block-navigation-item__content::after{transform:rotate(-135deg) translateY(-2px)}
.ehpjt-header .is-menu-open .wp-block-navigation__submenu-icon{display:none!important}
/* Comité : style épuré */
.ehpjt-people--cards .ehpjt-person{border:0!important;background:transparent!important;border-radius:0!important;padding-bottom:0!important}
.ehpjt-people--cards .ehpjt-person .wp-block-image img{border-radius:10px}
.ehpjt-people--cards .ehpjt-person p.is-style-ehpjt-plate{border-top:0!important;padding:.75rem 0 .1rem!important;color:#F2EEE8!important;background:transparent!important}
.ehpjt-people--cards .ehpjt-person .ehpjt-role{color:#B9B2A8;padding:0!important}
.ehpjt-people--cards{row-gap:2rem!important}
.home .ehpjt-news-grid .wp-block-post-template{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))!important;gap:28px!important}
.home .ehpjt-news-grid .wp-block-post-featured-image img{aspect-ratio:16/10}
.home .ehpjt-news-grid .ehpjt-card-body{padding:1.6rem 1.8rem 1.9rem}
.home .ehpjt-news-grid .wp-block-post-title{font-size:clamp(1.5rem,2.4vw,2rem)!important}
.home .ehpjt-news-grid .wp-block-post-excerpt{font-size:1.05rem}
.ehpjt-teams--list{border-top:1px solid #2E2A33;border-bottom:1px solid #2E2A33;padding-block:2.25rem}
.ehpjt-teams--list .ehpjt-eyebrow{margin:0 0 1rem;font-size:.95rem}
.ehpjt-team-links{gap:.5rem 0!important}
.ehpjt-team-links p{margin:0;display:flex;align-items:center}
.ehpjt-team-links p+p::before{content:"·";color:#A88B65;font-size:1.6rem;margin:0 1.4rem}
.ehpjt-team-link{font-family:Oswald,sans-serif;font-weight:600;font-size:clamp(1.4rem,3vw,2rem);text-transform:uppercase;color:#F2EEE8!important;text-decoration:none;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}
.ehpjt-team-link:hover{color:#A88B65!important;border-bottom-color:#A88B65}
@media (max-width:600px){.ehpjt-team-links p+p::before{margin:0 .7rem}}
@media (min-width:782px){.wp-site-blocks>.wp-block-template-part:has(.ehpjt-header){position:sticky;top:0;z-index:100}
body.admin-bar .wp-site-blocks>.wp-block-template-part:has(.ehpjt-header){top:32px}
.ehpjt-header{box-shadow:0 6px 20px rgba(0,0,0,.35)}}
.ehpjt-main .wp-block-columns{align-items:stretch!important}
.ehpjt-main .wp-block-column>.wp-block-group:only-child{height:100%;box-sizing:border-box}
.ehpjt-main .is-layout-grid>.wp-block-group{height:100%;box-sizing:border-box}
.ehpjt-main iframe{max-width:100%}
.ehpjt-home{padding-bottom:0!important}
.ehpjt-home .wp-block-post-content>.ehpjt-banner{margin-top:0!important}
.ehpjt-alaune>.ehpjt-eyebrow{margin-bottom:1.5rem}
.ehpjt-feature{gap:0!important;background:#26232A;border-radius:12px;overflow:hidden;margin-bottom:28px!important;align-items:stretch!important}
.ehpjt-feature>.wp-block-column{display:flex;flex-direction:column;justify-content:center}
.ehpjt-feature>.wp-block-column:has(.ehpjt-feature__img){flex-basis:56%!important}
.ehpjt-feature .ehpjt-feature__img{margin:0;height:100%}
.ehpjt-feature .ehpjt-feature__img img{width:100%;height:100%;min-height:380px;object-fit:cover;display:block}
.ehpjt-feature>.wp-block-column:not(:has(.ehpjt-feature__img)){padding:clamp(1.75rem,4vw,3.25rem)}
.ehpjt-feature .ehpjt-feature__title{font-size:clamp(2rem,4vw,3.2rem)!important;margin:.75rem 0 1rem}
.ehpjt-feature p.is-style-ehpjt-tag{align-self:flex-start}
.ehpjt-stats-band{background:#A88B65;color:#1B191E;padding-block:clamp(2.5rem,5vw,3.5rem);margin-top:clamp(2.5rem,5vw,4rem)!important}
.ehpjt-stats{gap:1.5rem!important}
.ehpjt-stat-item p{margin:0}
.ehpjt-stat-item__n{font-family:Oswald,sans-serif;font-weight:700;font-size:clamp(2.4rem,5vw,3.6rem);line-height:1;text-transform:uppercase}
.ehpjt-stat-item__l{font-weight:600;margin-top:.4rem!important;font-size:.95rem}
@media (max-width:781px){.ehpjt-feature--reverse{flex-direction:column-reverse}.ehpjt-feature .ehpjt-feature__img img{min-height:240px;max-height:320px}.ehpjt-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (min-width:782px){.ehpjt-feature>.wp-block-column{flex:1 1 0!important}
.ehpjt-feature>.wp-block-column:has(.ehpjt-feature__img){flex:1.25 1 0!important}}
.ehpjt-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media (max-width:781px){.ehpjt-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.ehpjt-photos-intro{max-width:760px;margin:0 auto 2rem!important}
.ehpjt-photos-intro a{display:table;margin:1.1rem auto 0;padding:.8rem 1.6rem;border-radius:6px;background:rgb(168, 139, 101);color:rgb(27, 25, 30)!important;font-family:Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;font-weight:700;text-transform:none;letter-spacing:normal;text-decoration:none!important;white-space:nowrap;box-shadow:0 6px 18px rgba(0,0,0,.25);transition:transform .2s,filter .2s}.ehpjt-photos-intro a::before{content:"📷  "}.ehpjt-photos-intro a:hover{transform:translateY(-2px);filter:brightness(1.08)}
.single-album .wp-block-gallery.has-nested-images{gap:14px!important}
.single-album .wp-block-gallery.has-nested-images figure.wp-block-image{border-radius:10px;overflow:hidden}
.single-album .wp-block-gallery.has-nested-images figure.wp-block-image img{border-radius:10px;aspect-ratio:4/3;object-fit:cover;transition:transform .25s}
.single-album .wp-block-gallery.has-nested-images figure.wp-block-image:hover img{transform:scale(1.03)}
.single-album .lightbox-trigger{display:none!important}
.ehpjt-album-grid .wp-block-post{transition:transform .2s}
.ehpjt-album-grid .wp-block-post:hover{transform:translateY(-3px)}
.ehpjt-contact-photo{margin-top:1.5rem!important}.ehpjt-contact-photo img{border-radius:10px;aspect-ratio:16/10;object-position:center 35%;object-fit:cover;width:100%}
.ehpjt-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ehpjt-legal h2{font-size:1.5rem;margin-top:2.2rem}.ehpjt-legal ul{padding-left:1.2rem}.ehpjt-legal li{margin-bottom:.4rem}.ehpjt-footer__bottom a{color:inherit;text-decoration:underline}
/*nav-gold*/.ehpjt-header .wp-block-navigation__container>li>.wp-block-navigation-item__content,.ehpjt-header .wp-block-navigation__container>li>.wp-block-navigation-submenu__toggle,header .wp-block-navigation__container>li>.wp-block-navigation-item__content,header .wp-block-navigation__container>li>.wp-block-navigation-submenu__toggle{color:rgb(168,139,101)!important}header .wp-block-navigation__container>li>.wp-block-navigation-item__content:hover,header .wp-block-navigation__container>li:hover>.wp-block-navigation-submenu__toggle{color:rgb(242,238,232)!important}
.ehpjt-essai-how{margin-bottom:2.5rem!important}.ehpjt-essai-how .wp-block-columns{align-items:stretch!important}.ehpjt-essai-how .wp-block-column>.wp-block-group{height:100%}
