/* BioTiGR : retouches légères de l'accueil (2026-11-05). Limité à body.home sauf l'en-tête. */

/* ---------- En-tête ---------- */
.elementor-element-33ee81b9 img {
  height: 64px !important;
  width: auto !important;
  max-width: 100%;
  filter: none !important;
}
@media (max-width: 767px) {
  .elementor-element-b39c580 { padding: 0 16px !important; }
  .elementor-element-b39c580 > .elementor-container { flex-wrap: nowrap; align-items: center; }
  .elementor-element-10662dfe, .elementor-element-71d9a264 { width: 50% !important; }
  .elementor-element-71d9a264 > .elementor-widget-wrap { justify-content: flex-end; }
  .elementor-element-33ee81b9 img { height: 48px !important; }
  .elementor-element-4fcf44c { display: none; }
  .elementor-element-c63d68b .elementor-menu-toggle { margin-left: auto; }
}

/* ---------- Bandeau d'accueil ---------- */
body.home .elementor-element-7a4d486 > .elementor-element-populated {
  border-radius: 12px 12px 0 0;
  padding: 22px 32px 26px !important;
}
body.home .elementor-element-7a4d486 > .elementor-element-populated > .elementor-background-overlay {
  opacity: .78 !important;
  border-radius: 12px 12px 0 0;
}
body.home .elementor-element-660e35c .elementor-heading-title {
  font-size: clamp(17px, 2vw, 26px) !important;
  line-height: 1.35 !important;
  color: #fff !important;
  opacity: .95;
}
body.home .biotigr-nowrap { white-space: nowrap; }
@media (max-width: 767px) {
  body.home .elementor-element-7a4d486 > .elementor-element-populated { padding: 16px 16px 20px !important; }
  body.home .elementor-element-1f91178 .elementor-heading-title { font-size: 28px !important; }
}

/* ---------- Lab News ---------- */
body.home [data-id="ea76af6"] .elementor-element-772a914 > .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  align-items: stretch;
  height: 100%;
}
body.home [data-id="ea76af6"] .elementor-element-a9ec70c,
body.home [data-id="ea76af6"] .elementor-element-a9ec70c > .elementor-container { height: 100%; }
body.home [data-id="ea76af6"] .elementor-element-279002a img {
  height: 250px; width: 100%; object-fit: cover;
}
body.home [data-id="ea76af6"] .elementor-element-4d8b91b { margin-top: 22px; }
body.home [data-id="ea76af6"] .elementor-element-5c9667a,
body.home [data-id="ea76af6"] .elementor-element-f63867b,
body.home [data-id="ea76af6"] .elementor-element-0966759,
body.home [data-id="ea76af6"] .elementor-element-f2cb952 { margin-top: auto; }
body.home [data-id="ea76af6"] article { transition: transform .2s ease, box-shadow .2s ease; }
body.home [data-id="ea76af6"] article:hover { transform: translateY(-3px); }

/* ---------- Chiffres clés ---------- */
body.home .elementor-element-bfd35e8 .elementor-counter-number-wrapper { color: #fff !important; }
body.home .elementor-element-bfd35e8 .elementor-counter-title {
  color: #fff !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .12em;
}
body.home .elementor-element-bfd35e8 .elementor-counter-number-wrapper,
body.home .elementor-element-bfd35e8 .elementor-counter-title { text-shadow: 0 1px 8px rgba(40, 20, 70, .35); }

/* ---------- Tuiles Research groups ---------- */
body.home [data-id="33406ea"] .elementor-flip-box { border-radius: 10px; overflow: hidden; }
body.home [data-id="33406ea"] .elementor-flip-box__front { transition: transform .5s ease; }
body.home [data-id="33406ea"] .elementor-flip-box:hover .elementor-flip-box__front { transform: scale(1.04); }
body.home [data-id="33406ea"] .elementor-flip-box__front .elementor-flip-box__layer__overlay {
  background: linear-gradient(180deg, rgba(30, 15, 50, .15) 0%, rgba(30, 15, 50, .62) 100%) !important;
}
body.home [data-id="33406ea"] .elementor-flip-box__front .elementor-flip-box__layer__title {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
body.home [data-id="33406ea"] .elementor-flip-box__front .elementor-icon,
body.home [data-id="33406ea"] .elementor-flip-box__front .elementor-icon i { color: #fff !important; }

/* ---------- Selected publications : 8 premières ---------- */
body.home [data-id="73f526a"] .dce-view-row > div.dce-view-single-wrapper:nth-of-type(n+9) { display: none; }
body.home [data-id="73f526a"] .dce-tokens,
body.home [data-id="73f526a"] .dce-tokens p { text-align: left !important; }

/* ---------- Team members : carte sans photo ---------- */
body.home [data-id="01382b9"] .swiper-slide:not(:has(img)) .elementor-element-18429f3 { min-height: 370px; }
body.home [data-id="01382b9"] .swiper-slide:not(:has(img)) .elementor-element-fe7d6fa > .elementor-widget-wrap {
  min-height: 370px;
  align-content: flex-end;
  background: #ece6f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b7a6cc'%3E%3Ccircle cx='12' cy='8' r='4.2'/%3E%3Cpath d='M3.5 21c.8-4.6 4.2-7 8.5-7s7.7 2.4 8.5 7z'/%3E%3C/svg%3E") center 38% / 45% no-repeat;
}
body.home [data-id="01382b9"] .dce-view-slideshow,
body.home [data-id="01382b9"] .swiper,
body.home [data-id="01382b9"] .swiper-container { margin-top: 0 !important; padding-top: 0 !important; }
body.home .elementor-element-3878d62 > .elementor-element-populated { padding-top: 24px !important; }

/* ---------- Menu mobile : panneau pleine largeur sous l'en-tête ---------- */
@media (max-width: 767px) {
  .elementor-element-b39c580 { position: relative; }
  .elementor-element-b39c580 .elementor-container,
  .elementor-element-b39c580 .elementor-column,
  .elementor-element-b39c580 .elementor-widget-wrap,
  .elementor-element-c63d68b,
  .elementor-element-c63d68b > .elementor-widget-container { position: static !important; }
  .elementor-element-c63d68b nav.elementor-nav-menu--dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    margin-top: 0 !important;
    background: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .15);
    z-index: 1001;
  }
  .elementor-element-c63d68b nav.elementor-nav-menu--dropdown a { justify-content: center; padding: 14px 16px !important; }
  .elementor-element-c63d68b .elementor-menu-toggle { background: transparent; }
}

/* ========== Pages de groupe de recherche [biotigr_team] ========== */
.bt-wrap {
  --bt-accent: #763eb7;
  --bt-base: #9b83b7;
  --bt-soft: #f2edf8;
  --bt-text: #241f2b;
  --bt-muted: #625a6c;
  --bt-line: #e7e0ef;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  color: var(--bt-text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.bt-back { display: inline-block; color: var(--bt-accent) !important; font-size: 14px; text-decoration: none; margin-bottom: 20px; }
.bt-back:hover { text-decoration: underline; }
.bt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #ece4f6, #f9f6fc);
  border-radius: 16px;
  padding: 36px;
}
.bt-wrap .bt-kicker { margin: 0 0 6px !important; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--bt-accent); font-weight: 500; }
.bt-wrap .bt-title {
  font-family: Montserrat, sans-serif !important;
  font-size: clamp(28px, 3.6vw, 42px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  margin: 0 0 10px !important;
  color: var(--bt-text) !important;
  text-transform: none !important;
}
.bt-wrap .bt-lead { margin: 0 0 18px !important; font-size: 16px; color: var(--bt-muted); }
.bt-wrap .bt-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.bt-stats span { background: #fff; border: 1px solid var(--bt-line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: var(--bt-muted); }
.bt-stats b { color: var(--bt-accent); font-weight: 600; }
.bt-hero-img { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(60, 30, 90, .14); aspect-ratio: 4 / 3; }
.bt-hero-img .bt-img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; }
.bt-section { margin-top: 44px; }
.bt-wrap .bt-h2 {
  font-family: Montserrat, sans-serif !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  color: var(--bt-text) !important;
  margin: 0 0 18px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bt-soft);
  text-transform: none !important;
}
.bt-wrap .bt-h3 { font-size: 18.5px !important; font-weight: 500 !important; color: var(--bt-text) !important; margin: 2px 0 8px !important; line-height: 1.35 !important; }
.bt-desc { font-size: 16.5px; line-height: 1.75; color: #3d3646; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.bt-desc p { margin: 0 0 14px !important; }
.bt-desc strong { font-weight: 500; color: var(--bt-text); }
.bt-topic { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--bt-line); }
.bt-topic:first-of-type { border-top: 0; padding-top: 4px; }
.bt-topic-num { font-family: Montserrat, sans-serif; font-size: 22px; font-weight: 300; color: var(--bt-base); line-height: 1.2; }
.bt-people { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bt-person { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bt-line); border-radius: 12px; padding: 9px 12px; color: var(--bt-text) !important; text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.bt-person:hover { border-color: var(--bt-base); box-shadow: 0 6px 16px rgba(60, 30, 90, .10); }
.bt-person.is-leader { background: var(--bt-soft); border-color: #d9cdea; }
.bt-person.is-alumni { opacity: .75; }
.bt-wrap .bt-avatar { width: 50px !important; height: 50px !important; border-radius: 50%; object-fit: cover; flex: 0 0 50px; }
.bt-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--bt-soft); color: var(--bt-accent); font-weight: 500; }
.bt-person-text { display: flex; flex-direction: column; line-height: 1.3; }
.bt-name { font-weight: 500; }
.bt-role { font-size: 13px; color: var(--bt-muted); }
.bt-person.is-leader .bt-role { color: var(--bt-accent); font-weight: 500; }
.bt-pubs { list-style: none; margin: 0 !important; padding: 0 !important; }
.bt-pub { padding: 14px 12px; border-bottom: 1px solid var(--bt-line); border-radius: 8px; }
.bt-pub:hover { background: #faf8fc; }
.bt-wrap .bt-pub-title { font-size: 16px !important; font-weight: 500 !important; line-height: 1.4 !important; margin: 0 0 4px !important; color: var(--bt-text) !important; text-transform: none !important; }
.bt-pub-title a { color: inherit !important; text-decoration: none; }
.bt-pub-title a:hover { color: var(--bt-accent) !important; text-decoration: underline; }
.bt-wrap .bt-pub-authors { margin: 0 0 2px !important; font-size: 14px; line-height: 1.5; color: var(--bt-muted); }
.bt-pub-authors strong { color: var(--bt-text); font-weight: 600; }
.bt-wrap .bt-pub-meta { margin: 0 !important; font-size: 14px; color: var(--bt-muted); }
.bt-pub-meta em { color: var(--bt-text); }
.bt-wrap .bt-pub-actions { display: flex; gap: 6px; margin: 8px 0 0 !important; }
.bt-wrap .bt-btn { display: inline-block; font-size: 12.5px; line-height: 1; padding: 6px 10px; border: 1px solid var(--bt-line); border-radius: 999px; color: var(--bt-accent) !important; text-decoration: none !important; background: #fff; }
.bt-wrap .bt-btn:hover { background: var(--bt-soft); border-color: var(--bt-base); }
.bt-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bt-other { display: flex; align-items: center; gap: 14px; padding: 10px; background: #fff; border: 1px solid var(--bt-line); border-radius: 12px; color: var(--bt-text) !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.bt-other:hover { box-shadow: 0 8px 20px rgba(60, 30, 90, .12); transform: translateY(-2px); }
.bt-other img { width: 72px !important; height: 72px !important; object-fit: cover; border-radius: 8px; flex: 0 0 72px; }
.bt-other span { font-size: 14.5px; font-weight: 500; }
@media (min-width: 1000px) {
  .bt-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .bt-split .bt-team .bt-people { grid-template-columns: 1fr; }
  .bt-split .bt-team { position: sticky; top: 110px; }
}
@media (max-width: 800px) {
  .bt-hero { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .bt-desc { text-align: left; }
}
/* Le modèle n'affiche plus que le shortcode : pas de marge parasite */
body.single-team .elementor-element-bt0team { padding: 0 !important; }

/* ========== Page People : liste des alumni en grille ========== */
.elementor-element-7486a28 .dce-view-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  max-width: 1140px;
  margin: 0 auto !important;
  padding: 0 16px;
}
.elementor-element-7486a28 .dce-view-single-wrapper { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.elementor-element-7486a28 .dce-view-single-wrapper > .elementor-column-wrap,
.elementor-element-7486a28 .dce-block { padding: 0 !important; margin: 0 !important; }
.elementor-element-7486a28 .dce-block {
  display: flex;
  align-items: center;
  height: 100%;
  background: #fff;
  border: 1px solid #e7e0ef;
  border-left: 3px solid #9b83b7;
  border-radius: 8px;
  padding: 9px 12px !important;
}
.elementor-element-7486a28 .dce-block h4 {
  margin: 0 !important;
  font-family: Roboto, system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #3d3646 !important;
  line-height: 1.3 !important;
}
.elementor-element-7486a28 .dce-block p { display: none; }
@media (max-width: 560px) {
  .elementor-element-7486a28 .dce-view-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .elementor-element-7486a28 .dce-block h4 { font-size: 14px !important; }
}
.elementor-element-7486a28 .dce-view-single-wrapper > .elementor-column-wrap,
.elementor-element-7486a28 .dce-view-single-wrapper .dce-block { width: 100% !important; box-sizing: border-box; }
.elementor-element-7486a28 .dce-view-single-wrapper > .elementor-column-wrap { border: 0 !important; }

/* ========== Actualités [biotigr_news] (style tourelab, couleurs BioTiGR) ========== */
.bn-wrap { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; text-align: left; }
.bn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bn-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(60, 30, 90, .09); transition: transform .2s, box-shadow .2s; }
.bn-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(60, 30, 90, .16); }
.bn-media { aspect-ratio: 16 / 10; background: #f2edf8; overflow: hidden; }
.bn-media .bn-img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .4s; }
.bn-card:hover .bn-img { transform: scale(1.03); }
.bn-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; color: #241f2b; }
.bn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bn-date, .bn-type { font-size: 12px; font-weight: 500; letter-spacing: .03em; border-radius: 999px; padding: 2px 10px; line-height: 1.6; }
.bn-date { background: #f2edf8; color: #763eb7; }
.bn-type { background: #f1f1f1; color: #555; }
.bn-type-event { background: #fdf0e3; color: #a2581a; }
.bn-type-grant { background: #e8f5e9; color: #2e7d32; }
.bn-type-job { background: #e6f4fb; color: #1f6f99; }
.bn-wrap .bn-title { font-family: Roboto, system-ui, sans-serif !important; font-size: 18px !important; font-weight: 500 !important; line-height: 1.35 !important; margin: 0 0 8px !important; color: #241f2b !important; text-transform: none !important; text-align: left !important; }
.bn-desc, .bn-full { font-size: 14.5px; line-height: 1.6; color: #4d4556; }
.bn-desc p, .bn-full p { margin: 0 0 8px !important; }
.bn-wrap .bn-more { align-self: flex-start; border: 0; background: none; padding: 0; margin-top: 4px; color: #763eb7; font-size: 14px; cursor: pointer; text-decoration: underline; }
.bn-links { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; }
.bn-links a { color: #763eb7 !important; font-size: 14px; font-weight: 500; text-decoration: none; }
.bn-links a:hover { text-decoration: underline; }
.bn-all-wrap { text-align: center; margin-top: 28px; }
.bn-wrap .bn-all { display: inline-block; border: 1px solid #763eb7; background: #fff; color: #763eb7 !important; border-radius: 999px; padding: 8px 24px; font-size: 15px; cursor: pointer; text-decoration: none !important; transition: all .15s; }
.bn-wrap .bn-all:hover { background: #763eb7; color: #fff !important; }
.bn-wrap [hidden] { display: none !important; }
.bn-wrap.is-all button.bn-all { display: none; }
.bn-wrap .bn-list-title { font-size: 20px !important; font-weight: 400 !important; color: #241f2b !important; margin: 36px 0 12px !important; text-transform: none !important; }
.bn-list { display: flex; flex-direction: column; }
.bn-row { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 10px; padding: 12px; margin: 0 0 12px; box-shadow: 0 1px 6px rgba(60, 30, 90, .07); }
.bn-wrap .bn-row.bn-extra { display: none; }
.bn-row .bn-media { flex: 0 0 140px; aspect-ratio: 4 / 3; border-radius: 6px; }
.bn-row .bn-body { padding: 0; }
.bn-wrap .bn-row .bn-title { font-size: 16px !important; margin-bottom: 4px !important; }
.bn-row:not(.is-open) .bn-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) { .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bn-grid { grid-template-columns: 1fr; } .bn-row .bn-media { flex-basis: 96px; } }
.bn-card:not(.is-open) .bn-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bn-card .bn-desc p:last-child { margin-bottom: 0 !important; }
.bn-type-publication { background: #f2edf8; color: #5a3d86; }
.bn-desc em { color: #241f2b; }
