/*
Theme Name: Telemac Biotech
Theme URI: https://biotechnocentre.fr/
Author: Telemac
Author URI: https://biotechnocentre.fr/
Description: Thème autonome de biotechnocentre.fr : accueil institutionnel (prochain rendez-vous, rubriques, actualités, lettres d'informations), article et page lisibles mobile d'abord, WooCommerce pris en charge pour les inscriptions, SEO délégué à Yoast, aucun script tiers, aucune dépendance jQuery.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telemac-biotech
*/

/* ==================================================================
   1. Jetons
   ================================================================== */
:root {
	--bt-blue: #1b4f9c;
	--bt-blue-dark: #143d7a;
	--bt-deep: #0d2a57;
	--bt-green: #17702d;
	--bt-green-dark: #125a24;
	--bt-green-bright: #6fd68c;
	--bt-ink: #14213d;
	--bt-text: #243049;
	--bt-muted: #5b6478;
	--bt-bg: #f4f7fb;
	--bt-bg-alt: #e9f0f9;
	--bt-line: #dbe3ef;
	--bt-white: #fff;
	--bt-radius: 14px;
	--bt-radius-sm: 8px;
	--bt-shadow: 0 1px 2px rgba(13, 42, 87, .06), 0 8px 24px -12px rgba(13, 42, 87, .25);
	--bt-font-head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bt-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bt-wrap: 1180px;
	--bt-gutter: 18px;
}
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("assets/fonts/outfit-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================================================================
   2. Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--bt-font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--bt-text);
	background: var(--bt-white);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--bt-font-head); color: var(--bt-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
a { color: var(--bt-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bt-blue-dark); }
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--bt-green); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--bt-deep); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 8px; width: auto; height: auto; clip: auto; margin: 0; }
.bt-wrap { width: min(100% - 2 * var(--bt-gutter), var(--bt-wrap)); margin-inline: auto; }
.bt-wrap--narrow { max-width: 820px; }
.bt-ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Boutons */
.bt-btn { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; background: var(--bt-green); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .2s, transform .15s; }
.bt-btn:hover { background: var(--bt-green-dark); color: #fff; transform: translateY(-1px); }
.bt-btn--blue { background: var(--bt-blue); }
.bt-btn--blue:hover { background: var(--bt-blue-dark); }
.bt-btn--outline { background: transparent; color: var(--bt-blue); border-color: currentColor; }
.bt-btn--outline:hover { background: var(--bt-blue); color: #fff; }
.bt-btn--light { background: #fff; color: var(--bt-deep); }
.bt-btn--light:hover { background: var(--bt-bg-alt); color: var(--bt-deep); }
.bt-btn--sm { padding: .5em .95em; font-size: .92rem; }
.bt-kicker { display: inline-flex; align-items: center; gap: .5em; font-family: var(--bt-font-head); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bt-green); margin: 0 0 .6em; }
.bt-kicker--light { color: var(--bt-green-bright); }
.bt-chip { display: inline-block; padding: .25em .75em; border-radius: 999px; background: var(--bt-bg-alt); color: var(--bt-blue-dark); font-size: .8rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.bt-chip:hover { background: var(--bt-blue); color: #fff; }
.bt-chip--green { background: #e4f5e9; color: var(--bt-green-dark); }
.bt-meta { display: flex; flex-wrap: wrap; gap: .4em .6em; color: var(--bt-muted); font-size: .9rem; }
.bt-meta time { font-variant-numeric: tabular-nums; }

/* ==================================================================
   3. En-tête : rang logo + actions, puis barre de menu (desktop)
   ================================================================== */
.bt-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--bt-line); }
.bt-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 10px 0 8px; }
.bt-logo { flex: 0 0 auto; }
.bt-logo a { display: inline-flex; align-items: center; }
.bt-logo img { width: min(170px, 42vw); height: auto; }
.bt-header__actions { display: flex; align-items: center; gap: 8px; }
.bt-header__cta { display: none; }
.bt-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--bt-line); background: #fff; color: var(--bt-ink); cursor: pointer; }
.bt-iconbtn:hover { background: var(--bt-bg-alt); }
.bt-iconbtn .bt-ico { width: 22px; height: 22px; }
.bt-nav { display: none; }
.bt-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.bt-nav__list li { position: relative; }
.bt-nav__list a { display: block; padding: .6em .85em; border-radius: 8px; color: var(--bt-ink); font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.bt-nav__list a:hover, .bt-nav__list .current-menu-item > a, .bt-nav__list .current-menu-ancestor > a, .bt-nav__list .current_page_parent > a { background: var(--bt-bg-alt); color: var(--bt-blue-dark); }
.bt-nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); }
.bt-nav__list .sub-menu { list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--bt-line); border-radius: 12px; box-shadow: var(--bt-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 5; }
.bt-nav__list li:hover > .sub-menu, .bt-nav__list li:focus-within > .sub-menu, .bt-nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bt-nav__list .sub-menu a { white-space: normal; font-weight: 500; }
.bt-search { border-top: 1px solid var(--bt-line); padding: 12px 0; background: #fff; }
.bt-search[hidden] { display: none; }
.bt-searchform { display: flex; gap: 8px; max-width: 640px; margin-inline: auto; }
.bt-searchform input[type="search"] { flex: 1; min-width: 0; padding: .7em 1em; border: 1px solid var(--bt-line); border-radius: 10px; font-size: 1rem; }
/* Menu mobile : panneau déroulant */
.bt-nav-open .bt-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--bt-line); box-shadow: var(--bt-shadow); padding: 10px var(--bt-gutter) 18px; max-height: calc(100dvh - 68px); overflow: auto; }
.bt-nav-open .bt-nav__list { flex-direction: column; gap: 0; }
.bt-nav-open .bt-nav__list a { padding: .75em .6em; font-size: 1.05rem; white-space: normal; }
.bt-nav-open .bt-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; border-left: 2px solid var(--bt-line); margin: 0 0 6px 12px; }
.bt-nav-open .bt-nav__list .sub-menu a { font-size: .98rem; }
@media (min-width: 1024px) {
	.bt-nav { display: block; border-top: 1px solid var(--bt-line); }
	.bt-nav__list { justify-content: center; flex-wrap: wrap; }
	.bt-nav__list a { font-size: .86rem; padding: .6em .55em; }
	.bt-menu-toggle { display: none; }
	.bt-header__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
	.bt-nav__list { gap: 4px; }
	.bt-nav__list a { font-size: .94rem; padding: .6em .85em; }
}

/* ==================================================================
   4. Accueil
   ================================================================== */
.bt-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bt-deep) 0%, var(--bt-blue) 70%, #2563b8 100%); color: #fff; padding: clamp(40px, 6vw, 80px) 0; }
.bt-hero__decor { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.bt-hero__net { animation: bt-drift 28s ease-in-out infinite alternate; }
.bt-hero__node { transform-box: fill-box; transform-origin: center; animation: bt-pulse 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.7s); }
.bt-hero__edge { stroke-dasharray: 14 420; stroke-dashoffset: 434; animation: bt-flow 7s linear infinite; animation-delay: calc(var(--i, 0) * -1.1s); }
.bt-hero__atom { color: var(--bt-green-bright); }
.bt-hero__orbit { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .7; }
.bt-hero__spin { animation: bt-spin var(--t, 9s) linear infinite; }
.bt-hero__spin--rev { animation-direction: reverse; }
.bt-hero__e { fill: currentColor; }
.bt-hero__core { fill: #fff; }
@keyframes bt-pulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.6); opacity: 1; } }
@keyframes bt-flow { to { stroke-dashoffset: 0; } }
@keyframes bt-spin { to { transform: rotate(360deg); } }
@keyframes bt-drift { from { transform: translate(0, 0); } to { transform: translate(-30px, 12px); } }
@media (prefers-reduced-motion: reduce) { .bt-hero__edge { stroke-dasharray: none; } }
.bt-hero__in { position: relative; display: grid; gap: 32px; align-items: center; }
.bt-hero .bt-kicker { font-size: .74rem; letter-spacing: .06em; }
.bt-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-bottom: .4em; }
.bt-hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #dbe6f7; max-width: 60ch; }
.bt-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.bt-hero__actions .bt-btn--outline { color: #fff; }
.bt-hero__actions .bt-btn--outline:hover { background: #fff; color: var(--bt-deep); }
.bt-hero__side { display: grid; gap: 14px; align-content: start; }
.bt-hero__letter { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--bt-radius); background: var(--bt-green); color: #fff; box-shadow: var(--bt-shadow); }
.bt-hero__letter-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.bt-hero__letter-ico .bt-ico { width: 28px; height: 28px; }
.bt-hero__letter .bt-kicker { color: #d6f5de; margin-bottom: .2em; }
.bt-hero__letter h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .3em; line-height: 1.25; }
.bt-hero__letter h2 a { color: inherit; text-decoration: none; }
.bt-hero__letter h2 a:hover { text-decoration: underline; }
.bt-hero__letter p { color: #e7f8ec; font-size: .9rem; margin: 0 0 .8em; }
.bt-hero__letter-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.bt-hero__letter-all { color: #fff; font-weight: 600; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.bt-hero__letter-all:hover { color: #d6f5de; }
@media (min-width: 900px) { .bt-hero__in { grid-template-columns: 1.15fr .85fr; gap: 48px; } }

/* Carte « prochain rendez-vous » */
.bt-event { display: grid; grid-template-columns: 120px 1fr; gap: 18px; background: #fff; color: var(--bt-text); border-radius: var(--bt-radius); padding: 18px; box-shadow: var(--bt-shadow); text-decoration: none; }
.bt-event__media { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--bt-bg-alt); }
.bt-event__media img { width: 100%; height: 100%; object-fit: cover; }
.bt-event__title { font-size: 1.2rem; margin: 0 0 .35em; }
.bt-event__title a { color: var(--bt-ink); text-decoration: none; }
.bt-event__title a:hover { color: var(--bt-blue); }
.bt-event__date { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--bt-blue-dark); margin-bottom: .6em; }
.bt-event__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 420px) { .bt-event { grid-template-columns: 1fr; } .bt-event__media { aspect-ratio: 4 / 3; } .bt-event__media img { object-fit: contain; } }

.bt-section { padding: clamp(40px, 6vw, 72px) 0; }
.bt-section--alt { background: var(--bt-bg); }
.bt-section--deep { background: var(--bt-deep); color: #dbe6f7; }
.bt-section--deep h2 { color: #fff; }
.bt-sec { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.bt-sec h2 { margin: 0; }
.bt-sec__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.bt-grid { display: grid; gap: 22px; }
.bt-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bt-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.bt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

/* Tuiles rubriques */
.bt-tile { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); text-decoration: none; color: var(--bt-text); transition: transform .15s, box-shadow .2s, border-color .2s; }
.bt-tile:hover { transform: translateY(-2px); box-shadow: var(--bt-shadow); border-color: transparent; color: var(--bt-text); }
.bt-tile__ico { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--bt-bg-alt); color: var(--bt-blue); }
.bt-tile__ico .bt-ico { width: 24px; height: 24px; }
.bt-tile h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.bt-tile p { margin: 0; color: var(--bt-muted); font-size: .92rem; }

/* Cartes d'articles */
.bt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); overflow: hidden; transition: transform .15s, box-shadow .2s; }
.bt-card:hover { transform: translateY(-2px); box-shadow: var(--bt-shadow); }
.bt-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bt-bg-alt); overflow: hidden; }
.bt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bt-card__media--contain img { object-fit: contain; padding: 10px; }
.bt-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bt-card__title { font-size: 1.12rem; margin: 0; }
.bt-card__title a { color: var(--bt-ink); text-decoration: none; }
.bt-card__title a:hover { color: var(--bt-blue); }
.bt-card__excerpt { margin: 0; color: var(--bt-muted); font-size: .95rem; }
.bt-card .bt-meta { margin-top: auto; padding-top: 4px; }
.bt-img-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bt-blue); background: var(--bt-bg-alt); }
.bt-img-fallback .bt-ico { width: 38px; height: 38px; opacity: .6; }

/* Lettres d'informations */
.bt-letters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.bt-letter { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius-sm); text-decoration: none; color: var(--bt-ink); font-weight: 600; }
.bt-letter:hover { border-color: var(--bt-blue); color: var(--bt-blue); }
.bt-letter__ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fdecec; color: #c0392b; }
.bt-letter small { display: block; font-weight: 400; color: var(--bt-muted); font-size: .85rem; }

/* À propos + chiffres */
.bt-about { display: grid; gap: 32px; align-items: start; }
.bt-about__text { font-size: 1.05rem; }
.bt-about__text p:last-child { margin-bottom: 0; }
.bt-about__photo { margin: 0 0 16px; border-radius: var(--bt-radius-sm); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); }
.bt-about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 565; object-fit: cover; }
.bt-about__photo figcaption { padding: 8px 12px; font-size: .82rem; color: #c7d6ee; }
.bt-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bt-figure { padding: 18px; border-radius: var(--bt-radius-sm); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.bt-figure strong { display: block; font-family: var(--bt-font-head); font-size: 2rem; color: var(--bt-green-bright); line-height: 1; margin-bottom: .25em; }
.bt-figure span { font-size: .9rem; }
.bt-about__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (min-width: 900px) { .bt-about { grid-template-columns: 1.2fr .8fr; gap: 56px; } }

/* Soutiens */
.bt-sponsors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 36px; }
.bt-sponsors img { height: 64px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.bt-sponsors img:hover { filter: none; opacity: 1; }

/* ==================================================================
   5. Article, page, archives
   ================================================================== */
.bt-main { min-height: 50vh; }
.bt-crumb { font-size: .88rem; color: var(--bt-muted); margin: 18px 0 10px; }
.bt-crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.bt-crumb li + li::before { content: "›"; margin-right: .3em; opacity: .6; }
.bt-crumb a { color: inherit; text-decoration: none; }
.bt-crumb a:hover { color: var(--bt-blue); text-decoration: underline; }
.bt-single, .bt-page { padding-bottom: clamp(40px, 6vw, 72px); }
.bt-single__head { max-width: 820px; margin: 14px auto 26px; }
.bt-single__head .bt-chip { margin-bottom: 14px; }
.bt-single__title { margin-bottom: .4em; }
.bt-single__figure { max-width: 820px; margin: 0 auto 30px; border-radius: var(--bt-radius); overflow: hidden; background: var(--bt-bg); }
.bt-single__figure img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; display: block; }
.bt-single__figure figcaption { padding: 10px 14px; font-size: .88rem; color: var(--bt-muted); }
.entry-content { max-width: 820px; margin-inline: auto; font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 10px; height: auto; }
.entry-content img.aligncenter, .entry-content .aligncenter { display: block; margin: 1.2em auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 48%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 48%; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.4em 0; padding: 1em 1.4em; border-left: 4px solid var(--bt-green); background: var(--bt-bg); border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .6em .8em; border: 1px solid var(--bt-line); text-align: left; }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: .88rem; color: var(--bt-muted); text-align: center; padding: .4em 0; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 1.4em 0; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; border: 0; }
.entry-content .gallery-caption { font-size: .8rem; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; display: block; max-width: 100%; margin: 1em auto; } }
/* Liens PDF : boutons */
.entry-content a.bt-pdf { display: inline-flex; align-items: center; gap: .55em; padding: .7em 1.1em; margin: .3em .3em .3em 0; border-radius: 10px; background: var(--bt-bg-alt); color: var(--bt-blue-dark); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.entry-content a.bt-pdf:hover { border-color: var(--bt-blue); background: #fff; }
.entry-content a.bt-pdf .bt-ico { color: #c0392b; }
.entry-content a.bt-pdf img { display: none; }
.entry-content a.bt-pdf--img { display: block; padding: 0; margin: 1.2em auto; background: none; border: 0; }
.entry-content a.bt-pdf--img img { display: block; margin: 0 auto; }
.entry-content a.bt-pdf--img .bt-ico { display: none; }
.bt-single__foot { max-width: 820px; margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--bt-line); }
.bt-share { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bt-share a, .bt-share button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bt-line); background: #fff; color: var(--bt-ink); cursor: pointer; }
.bt-share a:hover, .bt-share button:hover { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue); }
.bt-prevnext { max-width: 820px; margin: 30px auto 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.bt-prevnext a { display: block; padding: 14px 16px; border: 1px solid var(--bt-line); border-radius: var(--bt-radius-sm); text-decoration: none; color: var(--bt-ink); }
.bt-prevnext a:hover { border-color: var(--bt-blue); }
.bt-prevnext small { display: block; color: var(--bt-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3em; }
.bt-prevnext .bt-prevnext__next { text-align: right; }
@media (max-width: 560px) { .bt-prevnext { grid-template-columns: 1fr; } .bt-prevnext .bt-prevnext__next { text-align: left; } }
.bt-related { margin-top: clamp(40px, 6vw, 64px); }

/* Pages */
.bt-page__head { max-width: 820px; margin: 14px auto 26px; }
.bt-page--wide .entry-content { max-width: none; }
/* Soutiens : logos en grille */
.bt-page-soutiens .entry-content { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; }
.bt-page-soutiens .entry-content img { float: none; margin: 0; max-width: 220px; height: auto; max-height: 110px; width: auto; object-fit: contain; }
/* Répertoire : liste dense */
.bt-page-repertoire .entry-content ul { list-style: none; padding: 0; }
.bt-page-repertoire .entry-content ul + ul { margin: -.6em 0 1.2em; padding: .6em 1em; background: var(--bt-bg); border-radius: 8px; font-size: .95rem; }
.bt-page-repertoire .entry-content ul + ul li { margin: 0; }
.bt-page-repertoire .entry-content > ul:first-of-type { margin-top: 1em; }

/* Archives */
.bt-archive-head { background: var(--bt-bg); border-bottom: 1px solid var(--bt-line); padding: 10px 0 30px; }
.bt-archive-head h1 { margin: 10px 0 .3em; }
.bt-archive-head__desc { max-width: 70ch; color: var(--bt-muted); }
.bt-subcats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-archive { padding: 32px 0 clamp(40px, 6vw, 72px); }
.bt-pager ul { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bt-pager a, .bt-pager span { display: inline-block; min-width: 42px; padding: .5em .8em; text-align: center; border: 1px solid var(--bt-line); border-radius: 10px; text-decoration: none; color: var(--bt-ink); }
.bt-pager .current { background: var(--bt-blue); color: #fff; border-color: var(--bt-blue); }
.bt-pager a:hover { border-color: var(--bt-blue); }
.bt-empty { padding: 40px 0; color: var(--bt-muted); }
/* Liste lettres (archive catégorie lettres) */
.bt-list { display: grid; gap: 12px; }

/* 404 / recherche */
.bt-404 { text-align: center; padding: clamp(40px, 8vw, 90px) 0; }
.bt-404 h1 { font-size: clamp(2rem, 6vw, 3.5rem); }

/* Commentaires */
.bt-comments { max-width: 820px; margin: 40px auto 0; }
.bt-comments ol { list-style: none; padding: 0; }
.bt-comments .comment-body { padding: 14px 16px; border: 1px solid var(--bt-line); border-radius: 10px; margin-bottom: 12px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65em .9em; border: 1px solid var(--bt-line); border-radius: 8px; }
.comment-form .submit { composes: bt-btn; }

/* ==================================================================
   6. WooCommerce (inscriptions)
   ================================================================== */
.bt-woo { padding: 20px 0 clamp(40px, 6vw, 72px); }
.woocommerce .bt-woo h1 { margin-bottom: .6em; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #payment #place_order, .wc-block-components-button { background: var(--bt-green) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important; padding: .75em 1.3em !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #payment #place_order:hover { background: var(--bt-green-dark) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--bt-font-head); font-size: 1.1rem; color: var(--bt-ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--bt-blue-dark); font-weight: 700; font-size: 1.2rem; }
.woocommerce ul.products li.product a img { border-radius: 10px; }
.woocommerce div.product .product_title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.woocommerce .woocommerce-breadcrumb { font-size: .88rem; color: var(--bt-muted); margin-bottom: 1.4em; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: .65em .9em; border: 1px solid var(--bt-line); border-radius: 8px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--bt-blue) !important; border-radius: 10px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--bt-blue) !important; }
.woocommerce .quantity .qty { padding: .5em; border: 1px solid var(--bt-line); border-radius: 8px; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 1.5em !important; }
.woocommerce-store-notice { background: var(--bt-deep); }

/* ==================================================================
   7. Pied de page
   ================================================================== */
.bt-footer { background: var(--bt-deep); color: #c7d4ea; padding: clamp(36px, 5vw, 60px) 0 24px; margin-top: 0; }
.bt-footer a { color: #fff; text-decoration: none; }
.bt-footer a:hover { color: var(--bt-green-bright); }
.bt-footer__grid { display: grid; gap: 32px; }
.bt-footer__brand img { width: 170px; height: auto; background: #fff; padding: 10px 14px; border-radius: 10px; }
.bt-footer__brand p { margin: 14px 0 0; font-size: .95rem; max-width: 42ch; }
.bt-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9em; }
.bt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.bt-footer .sub-menu { display: none; }
.bt-footer__contact p { margin: 0 0 .5em; }
.bt-footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: .88rem; }
.bt-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 760px) { .bt-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }

/* ---- Page contact + formulaire ---- */
.bt-contact { display: grid; gap: 28px; max-width: 980px; margin: 8px auto 0; }
@media (min-width: 900px) { .bt-contact { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 40px; align-items: start; } }
.bt-contact__title { font-size: 1.25rem; margin: 0 0 14px; }
.bt-contact__aside { padding: 22px 24px; border-radius: var(--bt-radius); background: var(--bt-bg-alt); }
.bt-contact__line { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; }
.bt-contact__line .bt-ico { flex: 0 0 auto; width: 20px; height: 20px; color: var(--bt-green); margin-top: 2px; }
.bt-contact__line a { font-weight: 600; word-break: break-all; }
.bt-contact__note { font-size: .9rem; color: var(--bt-muted); margin: 14px 0 0; }
.bt-form { display: grid; gap: 14px; }
.bt-form__row { display: grid; gap: 14px; }
@media (min-width: 640px) { .bt-form__row { grid-template-columns: 1fr 1fr; } }
.bt-form__field { margin: 0; }
.bt-form__field label { display: block; font-weight: 600; margin-bottom: .35em; }
.bt-form__field label span { color: var(--bt-green); }
.bt-form__field input, .bt-form__field textarea { width: 100%; padding: .7em .95em; border: 1px solid var(--bt-line); border-radius: var(--bt-radius-sm); background: #fff; font-size: 1rem; }
.bt-form__field input:focus, .bt-form__field textarea:focus { outline: 2px solid var(--bt-blue); outline-offset: 1px; border-color: var(--bt-blue); }
.bt-form__field textarea { resize: vertical; min-height: 160px; }
.bt-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bt-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 4px 0 0; }
.bt-form__hint { font-size: .85rem; color: var(--bt-muted); }
.bt-notice { padding: 12px 16px; border-radius: var(--bt-radius-sm); margin: 0; font-weight: 500; }
.bt-notice--ok { background: #e3f6e8; color: #145a26; border: 1px solid #9fdcb0; }
.bt-notice--err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3b4b4; }
