/* ══════════════════════════════════════════════════════════════
   COMPONENTS.CSS — Header, Footer, Cartes, Boutons, Badges
   Crystal Waters Design System
   ══════════════════════════════════════════════════════════════ */

/* ═══ BARRE DISCLAIMER ═══ */
.disclaimer-bar {
  background: var(--ocean-teal-light);
  text-align: center;
  padding: 6px 16px;
  font-size: 11px;
  color: var(--ocean-teal);
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

/* ═══ HEADER ═══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 88, 164, 0.08);
  height: 60px;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-nav);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__dot {
  width: 8px;
  height: 8px;
  background: var(--pfizer-blue);
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.logo__name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--pfizer-blue);
  letter-spacing: 1px;
}

.logo__separator {
  width: 1px;
  height: 16px;
  background: var(--light-gray);
  margin: 0 8px;
}

.logo__tagline {
  font-size: 9px;
  color: var(--ocean-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav__link {
  font-size: 13px;
  font-weight: 400;
  color: var(--body-text);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link--active {
  color: var(--pfizer-blue);
}

.main-nav__link--active {
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: -12px;
  background: white;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition-smooth);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--body-text);
  transition: var(--transition-fast);
}

.nav-dropdown__item:hover {
  background: var(--off-white);
  color: var(--pfizer-blue);
}

/* Header CTA & Lang */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-teal);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.header-cta:hover {
  color: var(--ocean-teal-dark);
}

.header-cta::after {
  content: ' →';
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.lang-switcher__btn {
  padding: 2px 4px;
  color: var(--medium-gray);
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition-fast);
  background: none;
  border: none;
  font-size: 12px;
}

.lang-switcher__btn--active {
  color: var(--pfizer-blue);
  font-weight: 700;
}

.lang-switcher__sep {
  color: var(--light-gray);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger__line {
  width: 20px;
  height: 1.5px;
  background: var(--dark-text);
  transition: var(--transition-smooth);
  border-radius: 1px;
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 59, 92, 0.1);
  z-index: 999;
  padding: 80px 24px 24px;
  transition: var(--transition-smooth);
  overflow-y: auto;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 59, 92, 0.2);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-nav__overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__link {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--body-text);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
  color: var(--pfizer-blue);
}

.mobile-nav__sub {
  padding-left: 16px;
}

.mobile-nav__sub-link {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: var(--medium-gray);
}

.mobile-nav__sub-link:hover {
  color: var(--pfizer-blue);
}

/* ═══ BOUTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--pfizer-blue);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--pfizer-blue-dark);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--pfizer-blue);
  color: var(--pfizer-blue);
}

.btn-secondary:hover {
  background: var(--pfizer-blue-light);
  color: var(--pfizer-blue);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--light-gray);
  color: var(--body-text);
}

.btn-outline:hover {
  border-color: var(--pfizer-blue);
  color: var(--pfizer-blue);
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--ocean-teal);
  font-weight: 600;
  padding: 0;
}

.btn-text:hover {
  color: var(--ocean-teal-dark);
}

.btn-text::after {
  content: ' →';
}

/* ═══ BADGES ═══ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-teal {
  background: var(--ocean-teal-light);
  color: var(--ocean-teal);
}

.badge-blue {
  background: var(--pfizer-blue-light);
  color: var(--pfizer-blue);
}

.badge-phase {
  background: var(--light-gray);
  color: var(--body-text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
}

/* ═══ CARTES ═══ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card--clickable {
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

/* Color bar — Crystal Waters signature */
.color-bar {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.color-bar--blue { background: var(--pfizer-blue); }
.color-bar--teal { background: var(--ocean-teal); }
.color-bar--seafoam { background: var(--sea-foam); }
.color-bar--coral { background: var(--prog-neurosciences); }
.color-bar--gold { background: var(--prog-metabolisme); }
.color-bar--steel { background: var(--prog-infectiologie); }
.color-bar--violet { background: var(--prog-dermatologie); }
.color-bar--marine { background: var(--prog-biomateriaux); }

/* Program card */
.program-card {
  padding: 18px;
}

.program-card__title {
  color: var(--ocean-deep);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
}

.program-card__desc {
  color: var(--medium-gray);
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.5;
}

/* Stat card */
.stat-card {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.stat-card__number {
  color: var(--pfizer-blue);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}

.stat-card__label {
  color: var(--medium-gray);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--light-gray);
}

/* Publication card */
.pub-card {
  display: flex;
  flex-direction: column;
}

.pub-card__image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pfizer-blue-light), var(--ocean-teal-light));
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-teal);
  font-size: 11px;
}

.pub-card__journal {
  font-size: 10px;
  color: var(--ocean-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pub-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.pub-card__meta {
  font-size: 11px;
  color: var(--medium-gray);
  margin-top: auto;
}

.pub-card__doi {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--pfizer-blue);
  background: var(--pfizer-blue-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
}

/* News card */
.news-card__date {
  font-size: 10px;
  color: var(--ocean-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.news-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-card__excerpt {
  font-size: 12px;
  color: var(--body-text);
  line-height: 1.6;
}

/* ═══ PIPELINE BAR ═══ */
.pipeline-bar {
  height: 3px;
  background: var(--light-gray);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.pipeline-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

.pipeline-bar__fill--preclinical { width: 20%; background: var(--medium-gray); }
.pipeline-bar__fill--phase1 { width: 40%; background: var(--ocean-teal); }
.pipeline-bar__fill--phase2 { width: 65%; background: var(--pfizer-blue); }
.pipeline-bar__fill--phase3 { width: 90%; background: var(--sea-foam); }

/* Pipeline molecule card */
.molecule-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.molecule-card__code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--pfizer-blue);
  flex-shrink: 0;
  width: 70px;
}

.molecule-card__info {
  flex: 1;
  min-width: 0;
}

.molecule-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
}

.molecule-card__target {
  font-size: 11px;
  color: var(--medium-gray);
  margin-top: 2px;
}

.molecule-card__progress {
  flex: 0 0 140px;
}

.molecule-card__phase {
  font-size: 9px;
  color: var(--medium-gray);
  text-align: right;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* ═══ PLACEHOLDER IMAGE ═══ */
.placeholder-image {
  background: linear-gradient(135deg, var(--pfizer-blue-light), var(--ocean-teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean-teal);
  font-size: 11px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.placeholder-image--16-9 { aspect-ratio: 16/9; }
.placeholder-image--1-1 { aspect-ratio: 1/1; border-radius: 50%; }
.placeholder-image--4-3 { aspect-ratio: 4/3; }

/* ═══ PARTNERS MARQUEE ═══ */
.partners-track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.partners-marquee {
  overflow: hidden;
  padding: 24px 0;
}

.partner-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--medium-gray);
  white-space: nowrap;
  padding: 8px 24px;
  opacity: 0.5;
  transition: var(--transition-fast);
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--pfizer-blue);
  filter: grayscale(0%);
}

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

/* ═══ CAROUSEL ═══ */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel__slide {
  flex: 0 0 calc(25% - 18px);
  min-width: 260px;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition-fast);
  font-size: 14px;
  color: var(--body-text);
}

.carousel__btn:hover {
  border-color: var(--pfizer-blue);
  color: var(--pfizer-blue);
  box-shadow: var(--shadow-card-hover);
}

.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col__title {
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col__link {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
  transition: var(--transition-fast);
  text-decoration: none;
}

.footer-col__link:hover {
  color: white;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .logo__name,
.footer-brand .logo__tagline {
  color: white;
}

.footer-brand .logo__dot {
  background: white;
}

.footer-brand .logo__separator {
  background: rgba(255, 255, 255, 0.2);
}

.footer-desc {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 280px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.footer-bottom__badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

/* ═══ FORMS ═══ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--dark-text);
  background: white;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--ocean-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 11px;
  color: #D32F2F;
  margin-top: 4px;
  display: none;
}

.form-group--error .form-input,
.form-group--error .form-textarea {
  border-color: #D32F2F;
}

.form-group--error .form-error {
  display: block;
}

/* ═══ TABS ═══ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--medium-gray);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--pfizer-blue);
}

.tab-btn--active {
  color: var(--pfizer-blue);
  border-bottom-color: var(--pfizer-blue);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel--active {
  display: block;
}

/* ═══ ACCORDION ═══ */
.accordion-item {
  border-bottom: 1px solid var(--light-gray);
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.accordion-btn::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--medium-gray);
  transition: var(--transition-fast);
}

.accordion-btn.active::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content__inner {
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--body-text);
  line-height: 1.7;
}

/* ═══ TABLE ═══ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 10px;
  font-weight: 600;
  color: var(--medium-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--light-gray);
}

.data-table td {
  font-size: 13px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  color: var(--body-text);
}

.data-table tr:hover {
  background: var(--off-white);
}

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--medium-gray);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--medium-gray);
}

.breadcrumb a:hover {
  color: var(--pfizer-blue);
}

.breadcrumb__sep {
  font-size: 10px;
}

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--body-text);
  border: 1px solid var(--light-gray);
  background: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pagination__btn:hover,
.pagination__btn--active {
  background: var(--pfizer-blue);
  color: white;
  border-color: var(--pfizer-blue);
}

/* ═══ SUBPAGE HERO ═══ */
.subpage-hero {
  padding: 40px 0 32px;
  position: relative;
}

.subpage-hero__badge {
  margin-bottom: 12px;
}

.subpage-hero h1 {
  margin-bottom: 12px;
}

.subpage-hero__subtitle {
  font-size: 14px;
  color: var(--body-text);
  max-width: 520px;
  line-height: 1.7;
}

.subpage-hero__bar {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--ocean-teal);
  margin-top: 16px;
}

/* ═══ PAGE NAVIGATION ═══ */
.page-nav {
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--light-gray);
  margin-top: 48px;
}

.page-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ocean-teal);
}

.page-nav a:hover {
  color: var(--pfizer-blue);
}
