/* =========================================================
   BASE
========================================================= */
body {
  padding-top: 90px;
  scroll-padding-top: 90px;
  background-color: #f7f3e8 !important;
  cursor: url("https://static.igem.wiki/teams/5653/ulavalteamlogo/mouse.webp") 12 12, auto;
}

a, a:hover, a:active, a:focus,
button, button:hover, button:active, button:focus,
img, img:hover {
  cursor: url("https://static.igem.wiki/teams/5653/ulavalteamlogo/mouse-2.webp") 12 12, auto !important;
}

.card, .content-wrapper .hp-cards {
  cursor: url("https://static.igem.wiki/teams/5653/ulavalteamlogo/mouse.webp") 5 0, auto !important;
}


/* =========================================================
   CALLOUTS
========================================================= */
.bd-callout {
  padding:1.25rem;
  margin-top:1.25rem;
  margin-bottom:1.25rem;
  border:1px solid #e9ecef;
  border-left-width:.25rem;
  border-radius:.25rem
}

.bd-callout h4 {
  margin-bottom: 1.25rem
}

.bd-callout p:last-child {
  margin-bottom:0
}

.bd-callout code {
  border-radius:.25rem
}

.bd-callout+.bd-callout {
  margin-top:-.25rem
}

.bd-callout-info {
  border-left-color:#5bc0de
}

.bd-callout-warning {
  border-left-color:#f0ad4e
}

.bd-callout-danger {
  border-left-color:#d9534f
}


/* =========================================================
   THEME COLORS
========================================================= */
:root{
  --nav-red: #7a0d3c;
  --nav-red-hover: #b24643;
  --dd-red: #8e3159;
  --dd-hover: #ab5b7e;
  --text-on-red: #fff;
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1030;
  background: var(--nav-red);
  color: var(--text-on-red);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: transform .35s ease, opacity .35s ease, background-color .2s ease, padding .2s ease;
  will-change: transform, opacity;
  overflow: visible;
}

.navbar.nav-hide {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.navbar.nav-show {
  transform: translateY(0);
  opacity: 1;
}

.navbar-brand img {
  height: 70px;
  transition: height .2s ease, opacity .35s ease, transform .35s ease;
}
.navbar.nav-hide .navbar-brand img {
  opacity: 0;
  transform: translateY(-10px) scale(.95);
}

.navbar.scrolled {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.navbar .nav-link{
  position: relative;
  color: var(--text-on-red);
  padding-right: 1rem;
  padding-bottom: .4rem;
  outline: none;
  transition: color .15s ease, filter .15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--text-on-red);
  filter: brightness(1.15);
}

.nav-link.dropdown-toggle::after {
  display: inline-block;
  margin-left: .5em;
  vertical-align: middle;
  content: "";
  border-top: .35em solid var(--text-on-red);
  border-right: .35em solid transparent;
  border-left: .35em solid transparent;
  transition: transform .2s ease;
}

.nav-item.dropdown.show .nav-link.dropdown-toggle::after {
  transform: rotate(180deg);
}

.navbar .nav-link:focus-visible,
.nav-item.dropdown .dropdown-menu a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}



/* =========================================================
   DROPDOWNS
========================================================= */
.nav-item.dropdown { position: relative; }

.nav-item.dropdown .dropdown-menu {
  background: var(--dd-red);
  color: var(--text-on-red);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 4px 8px rgba(0,0,0,.2);

  transform: translateY(6px);
  visibility: hidden;
  display: none;
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease, visibility .22s;
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
  color: var(--text-on-red);
  padding: 10px 14px;
  transition: background-color .15s ease, filter .15s ease;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:hover,
.nav-item.dropdown .dropdown-menu .dropdown-item:focus {
  background-color: var(--dd-hover);
}

@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    margin-top: 0;
  }
}

.nav-item.dropdown::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 10px;
}

@media (min-width: 992px){
  .nav-item.dropdown{ position: relative; }
  .nav-item.dropdown::after{
    content:"";
    position:absolute;
    left:0; right:0;
    top:100%;
    height:10px;          /* zone tampon “hover” */
    /* pas de background -> invisible */
  }
}


.nav-item.dropdown.show > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.nav-item.dropdown:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (max-width: 991.98px) {
  .navbar .nav-item.dropdown .dropdown-menu {
    position: static;
    margin-top: 0;
    box-shadow: none;
    border: 0;
  }
}

.nav-item .dropdown-menu .dropdown-divider { border-top-color: rgba(255,255,255,.15); }
.nav-item .dropdown-menu .dropdown-header  { color: rgba(255,255,255,.85); }


/* =========================================================
   CAROUSEL
========================================================= */
.carousel-caption {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 15px;
  bottom: 20px;
}
.carousel-caption h5 {
  color: #000; font-size:
  1.2rem;
  margin-bottom: 8px;
}
.carousel-caption p  {
  color: #000;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* =========================================================
   CONTAINERS & SPACING
========================================================= */
.container .content-wrapper {
  background-color: #fff !important;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);

  overflow: visible;
}

.page-human-practices ~ .content-wrapper,
.page-human-practices .content-wrapper,
.page-human-practices.container .content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body > .container.content-container {
  margin-top: 90px;
}

.page-human-practices {
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}


/* =========================================================
   RESPONSIVE NAV LAYOUT
========================================================= */
@media (min-width: 992px) {
  .navbar-nav { display: flex; flex-direction: row; }
  .navbar-nav .nav-item { margin-left: 1rem; }
}

/* =========================================================
   STYLES FOR THE CARDS FLIP
========================================================= */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 1.5rem;
}
.team-card {
  perspective: 1000px;
  width: 300px;
  min-height: 420px;
  cursor: pointer;
  flex: 0 1 auto;
}
.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 12px;
}
.team-card:hover .team-card-inner {
  transform: rotateY(180deg);
}
.team-card-front, .team-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
}

.team-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-card-front {
  background-color: #fff;
}

.team-card-back {
  background-color: #8e3159;
  color: #fff;
  transform: rotateY(180deg);
  padding: 1rem; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  overflow-y: auto;
  font-size: 0.9rem;
  text-align: justify;
}
.team-card-back h3 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-size: 1.05rem;
  text-align: left;
}
.team-card-back p{
  margin: 0.35rem 0;
  line-height: 1.45;
  text-align: justify;      
  text-justify: inter-word; 
  hyphens: auto;           
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 768px) {
  .team-card {
    width: 90vw;        
    max-width: 420px;   
  }
  .team-card:hover .team-card-inner {
    transform: none;
  }

  .team-card.flipped .team-card-inner {
    transform: rotateY(180deg);
  }
}

.team-toolbar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap; margin: .75rem 0 1rem 0;
}

.team-toolbar .btn-filter {
  border: 1px solid #7a0d3c ;
  background: #fff;
  color: #7a0d3c ;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
}

.team-toolbar .btn-filter.active, .team-toolbar .btn-filter:hover {
  background: #7a0d3c ;
  color: #fff;
}

.team-section {
  margin-top: 2rem;
}

.team-section h3 {
  margin: 0 0 .5rem 0;
}

.team-section .section-note {
  color:#666;
  font-size:.95rem;
  margin-bottom:.75rem; }

.team-card[data-role]{ display:block; }
.team-card.is-hidden{ display:none !important; }


/* =========================================================
   FOOTER
========================================================= */

footer {
  background: linear-gradient(180deg, #111, #222);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: -50vw;
  left: 50%;
}

footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
  color: #7a0d3c;
  transform: scale(1.05);
}

footer img.social-icon {
  transition: transform 0.4s ease, filter 0.3s ease;
}

footer img.social-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px #7a0d3c (149, 55, 53, 0.7));
}

footer hr {
  border: none;
  height: 2px;
  width: 80%;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, #7a0d3c, transparent);
  animation: glowing 3s linear infinite;
}

@keyframes glowing {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

footer .container {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-footer {
  position: relative;
  padding: 0;
  background: transparent;
  overflow: visible;
  z-index: 1;
}

.site-footer .footer-bg {
  background-color: #7a0d3c ;
  width: 100vw;
  left: 0;
  position: relative;
  margin: 0;
}

.site-footer .container { 
  color: #fff;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.no-outline:focus { outline: none; box-shadow: none; }

.sponsor-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: transparent;
  margin: 1.5rem 0 0.5rem;
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: scrollSponsors 25s linear infinite;
}

.sponsor-track a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.sponsor-track img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

@keyframes scrollSponsors {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation: none; }
}

/* =========================================================
   TIMELINE (Notebook)
========================================================= */
:root{
  --tl-bg: #fff;
  --tl-text: #222;
  --tl-muted: #666;
  --tl-line: #e6d7d6;
  --tl-accent: #953735;
  --tl-progress-px: 0px;
}

.timeline-wrap{
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.timeline-hero h1{
  margin: 0 0 .35rem 0;
}

.timeline-hero p{
  margin: 0;
  color: var(--tl-muted);
  text-align: justify;
}

.timeline{
  position: relative;
  list-style: none;
  margin: 1.25rem 0 0 0;
  --gutter: 2.25rem;
  --line-x: 1.1rem;
  --dot: 16px;
  padding-left: var(--gutter);
  z-index: 0;
}

.timeline::before{
  content:"";
  position:absolute;
  left: var(--line-x);
  top:0; bottom:0;
  width:2px;
  background: linear-gradient(#fff, var(--tl-line), #fff);
  z-index: 0;
}

.timeline::after{
  content:"";
  position:absolute;
  left: var(--line-x);
  top:0;
  width:2px;
  height: var(--tl-progress-px);
  background: var(--tl-accent);
  box-shadow: 0 0 0 3px rgba(149,55,53,.12);
  transition: height .12s ease-out;
  z-index: 0;
}

.tl-month{
  margin: 1.6rem 0 .6rem;
  color: var(--tl-accent);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .95rem;
}

.tl-item{
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  margin: .9rem 0;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.tl-item.is-visible{
  opacity: 1;
  transform: none;
}

.timeline .tl-item {
  position: relative;
}

.timeline .tl-item::before{
  content:"";
  position:absolute;
  left: calc(var(--line-x) - var(--gutter) - (var(--dot) / 2));
  top: 1.05rem;
  width: var(--dot);
  height: var(--dot);
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
  box-shadow: 0 0 6px rgba(218,165,32,0.6);
  transition: all .3s ease;
  z-index:1;
}

.timeline .tl-item.is-visible::before{
  background: radial-gradient(circle at 30% 30%, #fff8dc, #daa520);
  box-shadow: 0 0 12px rgba(255,215,0,0.8);
}
.tl-item.is-visible::before{
  background: radial-gradient(circle at 30% 30%, #fff8dc, #daa520);
  box-shadow: 0 0 12px rgba(255,215,0,0.8);
}

.tl-item::after {
  content: none !important;
  display: none !important;
}

.tl-date{
  color: var(--tl-muted);
  font-weight: 600;
  padding-top: .35rem;
}

.tl-card{
  background: var(--tl-bg);
  color: var(--tl-text);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}

.tl-card:hover{
  transform: translateY(-2px);
  border-color: #d9b2b0;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.tl-card h4{
  margin: 0 0 .4rem 0;
  font-size: 1.05rem;
  color: #611f1d;
}

.tl-card p{
  margin: 0;
}

@media (max-width:768px){
  .timeline{
    --gutter: 1.6rem;
    --line-x: .95rem;
  }
  .tl-item{
    grid-template-columns: 1fr;
    padding-left: .6rem;
  }
  .tl-date{
    order: -1;
    font-size: .95rem;
  }
}

@media (prefers-reduced-motion: reduce){
  .tl-item{
    transition: none;
  }
  .timeline::after{
    transition: none;
  }
}

.container-narrow{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-hero{
  position:relative;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-eyebrow{
  font-size:.9rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#5e312f;
  margin:0 0 .35rem 0;
}
.page-title {
  margin: 0 auto .6rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #5e312f;
  animation: fadeUp 1s ease-out forwards;
  position: relative; 
}

.title-underline {
  height: 6px;
  width: 140px;
  margin-top: 0.5em auto 0;
  background: linear-gradient(90deg, #953735, #ffd700);
  border-radius: 999px;
  position: relative;
}

.layout-with-aside{
  display:grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 2rem;
  margin-top: 1.25rem;
}

.sticky-aside{
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aside-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.aside-card.glass{
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}

.aside-title{
  font-weight:700;
  margin-bottom:.35rem;
  display:flex;
  align-items:center;
  gap:.5rem;
}

.icon-bio,.icon-lab{
  width:18px;
  height:18px;
  display:inline-block;
  border-radius:4px;
  background:#953735;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.4);
}

.mini-spotlight img{
  width:100%;
  height:auto;
  border-radius:10px;
}

.rich-article p{
  margin: .9rem 0;
}
.dropcap:first-letter{
  float:left;
  font-size:3.2rem;
  font-weight:800;
  line-height:.85;
  padding:.1rem .35rem 0 0;
  color:#953735;
}

.page-hero .page-eyebrow { 
  color: #6a2f2d !important; 
}

.page-hero .page-title { 
  color: #4a1f1e !important; 
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.figure-frame{
  --bd: rgba(0,0,0,.08);
  border:1px solid var(--bd);
  border-radius:14px;
  padding:10px;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.95));
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.figure-frame img{
  width:100%;
  height:auto;
  border-radius:10px; display:block;
}

.figure-frame figcaption{
  font-size:.95rem;
  color:#444;
  margin-top:.5rem;
  text-align:center;
}

.figure-frame.center{
  margin: 1rem auto;
}

.figure-frame.max-500{
  max-width:500px;
}

.pretty-refs .refs-list{
  list-style: none;
  padding-left: 0;
  counter-reset: ref;
}
.pretty-refs .refs-list > li{
  padding: .6rem .8rem;
  margin: .4rem 0;
  background:#fff;
  border:1px dashed rgba(149,55,53,.35);
  border-radius:10px;
}

.pretty-refs .refs-list > li:hover{
  border-style: solid;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

.section-title{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: .2rem 0 .4rem;
}

.section-subtitle{
  font-weight:500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color:#333;
}

.toc-list{
  list-style:none;
  padding-left:0;
  margin:0;
}

.toc-list li{
  margin:.25rem 0;
}

.toc-list a{
  text-decoration:none;
}

.toc-list a:hover{
  text-decoration:underline;
}

.trojan-divider{
  margin: 1.5rem 0 1rem;
}

.trojan-divider svg{
  width:100%;
  height:80px;
  display:block;
}

.trojan-divider .trojan-icon{
  animation: bob 2.8s ease-in-out infinite;
}

@keyframes bob{
  0%,100%{
    transform: translate(300px,48px) translateY(0);
  }
  50%{
    transform: translate(300px,48px) translateY(-4px);
  }
}

#read-progress{
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg,#953735,#ffd700);
  z-index: 2000;
  box-shadow: 0 0 6px rgba(149,55,53,.66);
}

#backToTop{
  position: fixed; right: 18px; bottom: 18px;
  width: 42px; height: 42px; border-radius: 999px; border: 0;
  background: #953735; color: #fff; font-size: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(10px);
  pointer-events: none; transition: all .25s ease;
}

#backToTop.show{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#backToTop:hover{
  filter: brightness(1.1);
}

.zoomable img{
  transition: transform .25s ease;
  cursor: zoom-in;
}

.zoomable img:active{
  transform: scale(1.025);
}

.anchor-link{
  position: relative;
}

.anchor-link::after{
  content:"↘";
  font-size:.85em;
  opacity:.0;
  margin-left:.35rem;
  transition:.2s;
  color:#953735;
}

.anchor-link:hover::after{
  opacity:1;
}

@media (max-width: 992px){
  .layout-with-aside{
    grid-template-columns: 1fr;
  }
  .sticky-aside{
    position: static;
  }
}

.fade-scroll{
  opacity:0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-scroll.is-visible{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion: reduce){
  .page-title, .fade-scroll {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .title-underline {
    animation: none;
    width: 140px;
  }
}

/* =========================================================
   TROJAN
========================================================= */

.trojan-title{
  margin: 1.75rem 0 .9rem;
  display: grid;
  gap: .35rem;
  color: #2e2727;
}

.trojan-title .kicker{
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a5c59;
}

.trojan-title .label{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  color: #5e312f;
  position: relative;
  padding-bottom: .35rem;
}

.trojan-title .label::after{
  content:"";
  position: absolute;
  left: 2rem;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5e312f 0%, #b88746 55%, #ffd680 100%);
  opacity: .9;
}

.trojan-title .icon{
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: currentColor;
  color: #5e312f;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
  transform: translateY(1px);
}

.trojan-title:hover .label{
  text-decoration: none;
  filter: brightness(1.02);
}

.page-description .page-title{
  line-height: 1.1;
  margin-bottom: .6rem;
}

.figure-frame-barre {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.figure-frame-barre img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius: 0 !important;
}
.figure-frame-barre figcaption{
  margin-top:.5rem; 
  color:#444; 
  font-size:.95rem; 
  text-align:center;
}

.hr { 
	display: block;
    height: 1px;
    border: 0;
    border-top: 3px solid #ffd700;
    margin: 2em 0;
    padding: 0;
} 

.typewriter{
  font-family: monospace;
  font-size: 1.2rem;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
}

.typewriter .tw::after{
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #953735;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: -0.15em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


.hp-cards{
  --bg:#f6f8fb;
  --card:#fff;
  --ink:#1f2937;
  --border:#e5e9f2;
  --muted:#5b6b7a;
  --radius:16px;
  --shadow:0 8px 24px rgba(31,41,55,.08);
  text-align: justify; position: relative; isolation: isolate; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  
  background-image : none !important
}

.hp-cards .contact-card{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  max-width:720px;
  margin:16px auto;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hp-cards .contact-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 32px rgba(31,41,55,.12);
  border-color:#f4c4c4;
}
.hp-cards .accent-bar{
  position:absolute;
  inset:0 auto 0 0;
  width:6px;
  background:linear-gradient(180deg,var(--accent),var(--accent-soft));
}

.hp-cards .header{
  padding:14px 18px 12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
}

.hp-cards .emoji{
  font-size:22px;
  line-height:1
}

.hp-cards .subject{
  margin:0;
  font-weight:700;
  font-size:18px
}

.hp-cards .meta{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:13px
}

.hp-cards .tag{
  background:var(--accent-soft);
  color:#a82f2f;
  border:1px solid #f4c4c4;
  padding:4px 8px;
  border-radius:999px;
  font-weight:600;
  font-size:12px;
}

.hp-cards .chevron{
  width:22px;
  height:22px;
  flex:0 0 22px;
  color:#6b7280;
  transition:transform .25s ease
}

.hp-cards .contact-card[aria-expanded="true"] .chevron{
  transform:rotate(180deg)
}

.hp-cards .divider{
  height:1px;
  background:var(--border);
  margin:0 18px
}

.hp-cards .details-outer{
  overflow:hidden;
}

.hp-cards .details{
  padding:14px 18px 18px 18px;
  display:grid;
  gap:12px;
  background:#fff
}

.hp-cards .row{
  display:grid;
  gap:6px;
  margin-bottom: 1rem;
}

.hp-cards .row strong{
  font-size:13px;
  color:#374151;
  text-transform:uppercase;
  letter-spacing:.04em
}

.hp-cards .row p{
  margin:0;
  color:#253041;
  line-height:1.55
}

.hp-cards .mini-cols{
  display:block !important;
  gap:10px
}

@media(min-width:640px){
  .hp-cards .mini-cols{
    grid-template-columns:1.1fr 1fr
  }
}

.hp-cards .profile{
  display:flex;
  align-items:center;
  gap:10px;
  background:#f9fbff;
  border:1px solid #e7eefc;
  padding:10px 12px;
  border-radius:12px;
  margin-bottom: 1rem;
}

.hp-cards .profile-text{
  display:grid;
  gap:4px;
}

.hp-cards .profile-text strong{
  font-size:13px;
  text-transform:uppercase;
  color:#374151;
  letter-spacing:.04em;
}

.hp-cards .name{
  font-weight:700;
}

.hp-cards .role{
  color:var(--muted);
  font-size:13px;
}
.hp-cards .contact-card:focus-visible{
  outline:3px solid #f2b2b2;
  outline-offset:3px
}

.hp-cards .ripple{
  position:absolute;
  border-radius:50%;
  transform:scale(0);
  background:rgba(217,96,96,0.25);
  animation:ripple .6s ease-out forwards;
  pointer-events:none;
}

@keyframes ripple{ to { transform:scale(18); opacity:0; } }


.floating-img {
  position: fixed;
  top: 20%;
  right: 40px;
  width: 120px;
  height: auto;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out;
}


/* =========================================================
    EXPERIMENTS
========================================================= */

:root{
  --ink:#1e1b16;
  --ink-soft:#4b463f;
  --bg:#ffffff;
  --card:#ffffff;
  --accent:#6F0839;
  --accent-dark:#5b072f;
  --stroke:#2b1b19;
}


.lab-wrap{
  background: transparent !important;
}

.lab-header h1{
  margin-bottom:.25rem;
  text-wrap:balance;
}

.lab-sub{
  color:var(--ink-soft);
  margin-bottom:.75rem;
}

hr.section-divider{
  border:0;
  border-top:2px solid rgba(0,0,0,.08);
  margin:.75rem 0 1.25rem;
}

.protocol-card{
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:18px 18px 10px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
}
.protocol-card h2{
  margin:0 0 .35rem;
  font-size:1.28rem;
  line-height:1.2;
  text-wrap:balance;
  color: #232321;
}
.protocol-card > p{
  margin:0 0 .6rem;
  color:var(--ink-soft);
}

.protocol-list{
  list-style:none;
  padding:0;
  margin:.25rem 0 .75rem;
}

.protocol-list li + li{
  margin-top:.6rem;
}

.protocols-grid{
  display:grid;
  gap:20px;
}

@media (min-width:992px){
  .protocols-grid{
    grid-template-columns:1fr 1fr;
  }
}

details.lab-acc{
  border-radius:12px;
  overflow:hidden;
  background:transparent;
}

details.lab-acc summary{
  list-style:none;
  display:flex; align-items:center; gap:.6rem;
  width:100%;
  cursor:pointer; user-select:none;
  font-weight:800; font-size:1.02rem;
  padding:12px 14px;
  color:#fff;
  background:var(--accent);
  border:1px solid var(--stroke);
  border-radius:12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease;
}

details.lab-acc summary:hover{
  background:var(--accent-dark);
}

details.lab-acc summary:active{
  transform:translateY(1px);
}

details.lab-acc summary:focus-visible{
  outline:3px solid #ffd166;
  outline-offset:2px;
}

details.lab-acc summary::-webkit-details-marker{
  display:none;
}

.chev{
  inline-size:1em;
  transition:transform .2s ease;
}

details[open] .chev{
  transform:rotate(90deg);
}

.acc-body{
  margin-top:8px;
  background:#fafafa;
  color:var(--ink);
  border:1px solid rgba(0,0,0,.1);
  border-radius:10px;
  padding:10px 10px 12px;
}
.pdf-frame{
  width:100%;
  height:min(70vh, 620px);
  border:1px solid rgba(0,0,0,.08);
  border-radius:8px;
  background:#fff;
}
.pdf-fallback{
  margin-top:8px;
  font-size:.95rem;
}

.toc{
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  padding:12px 14px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  position:sticky; top:88px;
}
.toc h3{
  font-size:1rem;
  margin:0 0 .25rem;
}

.toc ul{
  list-style:none;
  margin:0;
  padding:0;
}

.toc li{
  margin:6px 0;
}

.toc a{
  text-decoration:none;
}

.fade-scroll{
  opacity:0;
  transform:translateY(8px);
  transition:.5s ease;
}

.fade-scroll.is-visible{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion:reduce){
  .fade-scroll{
    transition:none;
    transform:none;
    opacity:1;
  }
  details.lab-acc summary{
    transition:none;
  }
  .chev{
    transition:none;
  }
}

.references-section b,
.references-section strong,
.references-section .fw-bold {
  font-weight: 400 !important;
}

.references-section .list-group-numbered > .list-group-item::before {
  font-weight: 400 !important;
}

/* Place at the very end of your CSS file (after Bootstrap) */
.references-section,
.references-section .list-group,
.references-section .list-group-item {
  display: block !important;
  width: 100% !important;

  /* justification for most of the text */
  text-align: justify !important;
  text-justify: inter-word !important;

  /* enable hyphenation */
  hyphens: auto;
}

/* inherit for inline children like <em> and <a> */
.references-section .list-group-item,
.references-section .list-group-item * {
  text-align: inherit !important;
}

/* add a small inline element at the end of each item so the last line isn't stretched */
.references-section .list-group-item::after {
  content: '\00a0'; /* non-breaking space */
  display: inline-block;
  width: 0;
}