/* ==========================================================================
   FWAMLSA CONGRESS — Design tokens & styles globaux
   Palette dérivée du logo officiel (vert émeraude / bordeaux / carte AO)
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --fw-green: #1b7f52;
  --fw-green-dark: #12563a;
  --fw-green-light: #e7f3ec;
  --fw-bordeaux: #7a1f1f;
  --fw-bordeaux-dark: #591515;
  --fw-gold: #c9962c;
  --fw-gold-light: #fbf1dc;
  --fw-cream: #faf6ee;
  --fw-charcoal: #1e231f;
  --fw-gray-700: #4b5259;
  --fw-gray-500: #6b7280;
  --fw-gray-200: #e7e5e0;
  --fw-white: #ffffff;

  /* Bootstrap overrides */
  --bs-primary: var(--fw-green);
  --bs-primary-rgb: 27, 127, 82;
  --bs-secondary: var(--fw-bordeaux);
  --bs-body-color: var(--fw-charcoal);
  --bs-body-font-family: "Work Sans", system-ui, sans-serif;
  --bs-link-color: var(--fw-green-dark);
  --bs-border-radius: 0.5rem;

  /* Typo */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--fw-charcoal);
  background: var(--fw-white);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fw-charcoal);
  letter-spacing: -0.01em;
}
h1 {
  font-weight: 700;
}

.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.text-gold {
  color: var(--fw-gold);
}
.text-green {
  color: var(--fw-green);
}
.text-bordeaux {
  color: var(--fw-bordeaux);
}
.bg-cream {
  background: var(--fw-cream);
}
.bg-green-light {
  background: var(--fw-green-light);
}

/* Accessibilité : focus visible net pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--fw-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Boutons ---------- */
.btn {
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.4rem;
}
.btn-primary {
  background: var(--fw-green);
  border-color: var(--fw-green);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--fw-green-dark);
  border-color: var(--fw-green-dark);
}
.btn-outline-primary {
  color: var(--fw-green);
  border-color: var(--fw-green);
}
.btn-outline-primary:hover {
  background: var(--fw-green);
  border-color: var(--fw-green);
}
.btn-gold {
  background: var(--fw-gold);
  border-color: var(--fw-gold);
  color: var(--fw-charcoal);
}
.btn-gold:hover {
  background: #b4831f;
  border-color: #b4831f;
  color: var(--fw-charcoal);
}
.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Skip link (accessibilité clavier) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 2000;
  background: var(--fw-charcoal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.fw-navbar {
  background: var(--fw-white);
  border-bottom: 1px solid var(--fw-gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.fw-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fw-navbar .navbar-brand img {
  height: 44px;
  width: auto;
}
.fw-navbar .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--fw-charcoal);
}
.fw-navbar .brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--fw-gray-500);
  letter-spacing: 0.03em;
}

.fw-navbar .nav-link {
  font-weight: 600;
  color: var(--fw-charcoal);
  padding: 0.6rem 1rem !important;
  position: relative;
}
.fw-navbar .nav-link.active,
.fw-navbar .nav-link:hover {
  color: var(--fw-green-dark);
}
/* .fw-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 3px;
  background: var(--fw-gold);
  border-radius: 2px;
} */

.fw-navbar .nav-link.active {
  position: relative;
}

.fw-navbar .nav-link.active::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 3px;
  background: var(--fw-gold);
  border-radius: 2px;
}

.topbar {
  background: var(--fw-charcoal);
  color: #fff;
  font-size: 0.82rem;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}
.topbar a:hover {
  opacity: 1;
  text-decoration: underline;
}
.lang-switch .btn {
  padding: 0.15rem 0.55rem;
  font-size: 0.78rem;
}
.lang-switch .btn.active {
  background: var(--fw-gold);
  color: var(--fw-charcoal);
  border-color: var(--fw-gold);
}

/* ==========================================================================
   HERO — page d'accueil
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--fw-green-dark) 0%,
    var(--fw-green) 55%,
    #0f4a31 100%
  );
  color: #fff;
  overflow: hidden;
  padding-block: 4.5rem;
}
.hero::before {
  /* filigrane carte Afrique de l'Ouest (signature visuelle du site) */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M120 60 L180 50 L220 70 L260 65 L300 90 L320 130 L340 150 L330 190 L340 220 L310 250 L300 290 L260 300 L230 330 L190 320 L150 340 L110 320 L90 280 L60 260 L70 220 L50 190 L70 150 L60 110 L90 90 Z' fill='none' stroke='rgba(255,255,255,0.09)' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -60px top -40px;
  background-size: 520px;
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  max-width: 46ch;
}

/* Étiquette façon échantillon de laboratoire — signature du site */
.lab-tag {
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-left: 5px solid var(--fw-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  color: var(--fw-charcoal);
}
.lab-tag .lab-tag-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fw-gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lab-tag .lab-tag-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fw-green);
  flex-shrink: 0;
}
.lab-tag .lab-tag-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 0.15rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* Compte à rebours */
.countdown {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.countdown .cd-block {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
  min-width: 72px;
  text-align: center;
}
.countdown .cd-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.countdown .cd-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Séparateur de section — filigrane carte (signature récurrente)
   ========================================================================== */
.section-divider {
  position: relative;
  text-align: center;
  margin: 3.5rem 0 2.5rem;
}
.section-divider .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fw-green-dark);
  background: var(--fw-green-light);
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 0.6rem;
}
.section-divider h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}
.section-divider p {
  color: var(--fw-gray-500);
  max-width: 60ch;
  margin: 0.6rem auto 0;
}

/* ==========================================================================
   Cartes génériques (aperçu, activités, comité...)
   ========================================================================== */
.fw-card {
  background: #fff;
  border: 1px solid var(--fw-gray-200);
  border-radius: 0.85rem;
  overflow: hidden;
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.fw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18, 86, 58, 0.12);
}
.fw-card .fw-card-body {
  padding: 1.4rem;
}
.fw-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.badge-soft-green {
  background: var(--fw-green-light);
  color: var(--fw-green-dark);
  font-weight: 600;
}
.badge-soft-gold {
  background: var(--fw-gold-light);
  color: #7a5a10;
  font-weight: 600;
}
.badge-soft-bordeaux {
  background: #f5e7e7;
  color: var(--fw-bordeaux-dark);
  font-weight: 600;
}

/* Message de bienvenue */
.welcome-signature {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--fw-bordeaux);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--fw-gold);
  opacity: 0.5;
}

/* Statistiques clés */
.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-block .stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--fw-green-dark);
}
.stat-block .stat-label {
  font-size: 0.85rem;
  color: var(--fw-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ================= Bande défilante des sponsors ================= */
/* .sponsor-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.sponsor-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: sponsor-scroll 28s linear infinite;
}
.sponsor-marquee:hover .sponsor-marquee-track,
.sponsor-marquee:focus-within .sponsor-marquee-track {
  animation-play-state: paused;
}
@keyframes sponsor-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.sponsor-logo-item {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--fw-gray-200);
  border-radius: 0.75rem;
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 88px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.sponsor-logo-item:hover,
.sponsor-logo-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 86, 58, 0.14);
  border-color: var(--fw-green);
}
.sponsor-logo-item span {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fw-charcoal);
  white-space: nowrap;
}

.sponsor-logo-item.tier-platine span {
  font-size: 1.25rem;
}
.sponsor-logo-item {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--fw-gray-200);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 88px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.sponsor-logo-item:hover,
.sponsor-logo-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 86, 58, 0.14);
  border-color: var(--fw-green);
}
.sponsor-logo-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%);
  transition: filter 0.18s ease;
}
.sponsor-logo-item:hover img,
.sponsor-logo-item:focus-visible img {
  filter: grayscale(0%);
}
.sponsor-logo-item.tier-platine {
  min-width: 230px;
  height: 135px;
}
.sponsor-logo-item.tier-platine img {
  max-height: 100px;
} */

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.sponsor-logo-item {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--fw-gray-200);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  /* height: 88px; */
  height: 120px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.sponsor-logo-item:hover,
.sponsor-logo-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 86, 58, 0.14);
  border-color: var(--fw-green);
}
.sponsor-logo-item img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%);
  transition: filter 0.18s ease;
}
.sponsor-logo-item:hover img,
.sponsor-logo-item:focus-visible img {
  filter: grayscale(0%);
}
.sponsor-logo-item.tier-platine {
  min-width: 230px;
  height: 135px;
}
.sponsor-logo-item.tier-platine img {
  max-height: 100px;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.fw-footer {
  background: var(--fw-charcoal);
  color: rgba(255, 255, 255, 0.82);
}
.fw-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.fw-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.fw-footer h6 {
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.fw-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.fw-footer .footer-brand img {
  height: 40px;
  /* filter: brightness(0) invert(1); */
  opacity: 0.92;
}
.newsletter-mini input {
  border-radius: 0.5rem 0 0 0.5rem;
}
.newsletter-mini button {
  border-radius: 0 0.5rem 0.5rem 0;
}
.social-icons a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin-right: 0.4rem;
}
.social-icons a:hover {
  background: var(--fw-green);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--fw-green);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
#backToTop.show {
  display: inline-flex;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .hero {
    padding-block: 3rem;
    text-align: center;
  }
  .hero .lead {
    margin-inline: auto;
  }
  .countdown {
    justify-content: center;
  }
  .hero-card {
    margin-top: 2rem;
  }
}

.member-photo {
  aspect-ratio: 3/4 !important;
}

#programmeTabs .nav-link {
  font-weight: 600;
  color: var(--fw-bordeaux-dark) !important;
}
#programmeTabs .nav-link.active,
#programmeTabs .nav-link:hover {
  background-color: var(--fw-green) !important;
  color: #fff !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.nav-pills .nav-link:hover {
  background-color: var(--fw-green) !important;
  color: #fff !important;
}

.pratical-info p {
  font-size: 0.875rem; /* équivalent à .small */
  color: var(--bs-secondary-color); /* équivalent à .text-muted */
  margin-bottom: 0; /* équivalent à .mb-0 */
}
.pratical-info h1,
.pratical-info h2,
.pratical-info h3:not(:first-child),
.other-info h3,
.pratical-info h4,
.pratical-info h5,
.pratical-info h6 {
  font-size: 1rem; /* équivalent à .h6 */
  margin-bottom: 0.75rem;
}
.pratical-info > p:last-of-type,
.pratical-info > p:last-child {
  margin-bottom: 1rem !important; /* équivalent à .mb-3 */
}

.pratical-info p:has(+ h1),
.pratical-info p:has(+ h2),
.pratical-info p:has(+ h3),
.pratical-info p:has(+ h4),
.pratical-info p:has(+ h5),
.pratical-info p:has(+ h6) {
  margin-bottom: 1rem;
}

#abstract-submission-guidelines p,
#abstract-submission-guidelines ul {
  font-size: 0.875rem; /* équivalent à .small */
  color: var(--bs-secondary-color); /* équivalent à .text-muted */
  margin-bottom: 0; /* équivalent à .mb-0 */
}

#abstract-submission-guidelines p {
  margin-bottom: 0; /* équivalent à .mb-0 */
}

#abstract-submission-guidelines ul > li:has(+ li) {
  margin-bottom: 0.5rem; /* équivalent à .mb-2 */
}
.dropdown-item:focus,
.dropdown-item:hover {
  color: var(--fw-green);
  background-color: var(--bs-dropdown-link-hover-bg);
}

.dropdown-item.active,
.dropdown-item:active {
  color: var(--fw-cream);
  text-decoration: none;
  background-color: var(--fw-green);
}

.btn-check:checked + .btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check) + .btn:active {
  color: var(--fw-cream);
  background-color: var(--fw-green);
  border-color: var(--fw-green);
}
