/* Header & Navbar */
header {
  background-color: #1a1a2e;
  padding: 0 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.navbar {
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.5rem 1.2rem;
  color: #c0c0d0;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-menu li.active a {
  background-color: #d6344d; 
  color: #ffffff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
}

 h1 {
  text-align: center;
  color: white;
  margin-left: 50%;
}

main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    color: #1a1a2e;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.presentation {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.chiffres {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.card {
    background-color: #1a1a2e;
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}

.card h4 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: #e94560;
}

.citation {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    color: #000000;
    border-left: 4px solid #e94560;
    padding-left: 1rem;
}

/* ── Variables ── */
:root {
  --dark:  #1a1a2e;
  --red:   #e94560;
  --light: #f5f5f0;
  --muted: #6b6b80;
  --white: #ffffff;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--light);
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  overflow-x: hidden;
}

/* ── Main layout ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem; 
  font-weight: 600; 
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d6344d; 
  border: 1px solid rgba(214, 52, 77, 0.25);
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  color: var(--dark);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.hero h2 em {
  font-style: italic;
  color: var(--red);
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background-color: #d6344d; 
  color: #ffffff; 
  text-decoration: none;
  font-weight: 600; 
  font-size: 1rem; 
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(214, 52, 77, 0.3);
}

.hero-cta:hover {
  background-color: #b92a40;
  box-shadow: 0 6px 20px rgba(185, 42, 64, 0.4);
  transform: translateY(-1px);
}

/* PRESENTATION */
.presentation {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
}

.presentation-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--dark);
  line-height: 1.3;
}

.presentation-title h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 0.6rem;
}

.presentation p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

/* CARDS CHIFFRES */
.chiffres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.card {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(26,26,46,0.2);
}

.card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.88rem;
  color: #c0c0d0;
  letter-spacing: 0.03em;
}

/* CITATION */
.citation {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
  border-left: 4px solid var(--red);
}

.citation blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1.7;
  text-align: center;
  border: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .presentation {
    grid-template-columns: 1fr;
    padding: 1.8rem;
  }
  .chiffres {
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────
   CATALOGUE SCIENTIFIQUE
──────────────────────────── */

:root {
  --dark:  #1a1a2e;
  --red:   #e94560;
  --light: #f5f5f0;
  --muted: #6b6b80;
  --white: #ffffff;
}

body {
  background-color: var(--light);
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
}

main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── En-tête catalogue ── */
.catalogue-header {
  text-align: center;
  margin-bottom: 3rem;
}

.catalogue-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 0.6rem;
  text-align: center;
  margin-left: 0;
}

.catalogue-header h1 em {
  font-style: italic;
  color: var(--red);
}

.catalogue-header p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ── Grille ── */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* ── Carte scientifique ── */
.scientist-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26, 26, 46, 0.08);
  animation: fadeUp 0.6s ease both;
}

/* ── Photo ── */
.scientist-card__photo {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e8e8f0;
}

.scientist-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  border: none;
  margin: 0;
}

.scientist-card__domain {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background-color: #d6344d; 
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Corps de la carte ── */
.scientist-card__body {
  padding: 1.4rem 1.6rem 1.6rem;
}

.scientist-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f5;
  position: relative;
}

.scientist-card__name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--red);
  border-radius: 2px;
}

/* ── Infos ── */
.scientist-card__info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.scientist-card__info li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.info-label {
  color: var(--muted);
  font-weight: 300;
}

.info-value {
  color: var(--dark);
  font-weight: 500;
  text-align: right;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   À COLLER À LA FIN DE VOTRE stylesheet.css
   Hamburger + responsive bascule à 576px
══════════════════════════════════════════ */

/* Bouton hamburger — caché sur ordi */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation hamburger → croix */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Bascule à 576px ── */
@media (max-width: 576px) {

  /* Affiche le bouton hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Cache le menu par défaut sur mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #1a1a2e;
    padding: 1rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 99;
  }

  /* Affiche le menu quand ouvert */
  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 0.85rem 1.8rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-menu li.active a {
    border-left: 4px solid #e94560;
    background-color: rgba(233, 69, 96, 0.12);
  }

  /* Mise en page mobile */
  main {
    padding: 2rem 1.2rem 4rem;
  }

  .hero {
    padding: 2.5rem 0.5rem 2rem;
  }

  .presentation {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    gap: 1.2rem;
  }

  .chiffres {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .citation {
    padding: 1.8rem 1.5rem;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════
   FORMULAIRE DE RECHERCHE
══════════════════════════════ */
.form-container {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
  max-width: 560px;
  margin: 0 auto 3rem;
}

.form-container label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.form-container input[type="text"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid #e8e8f0;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark);
  background: var(--light);
  margin-bottom: 1.2rem;
  outline: none;
}

.form-container input[type="text"]:focus {
  border-color: var(--red);
  background: var(--white);
}

.form-container button[type="submit"] {
  width: 100%;
  background-color: #d6344d; 
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem; 
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; 
  font-weight: 600; 
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(214, 52, 77, 0.2);
  transition: all 0.2s ease;
}

.form-container button[type="submit"]:hover {
  background-color: #b92a40;
  box-shadow: 0 6px 20px rgba(185, 42, 64, 0.35);
}

/* ══════════════════════════════
   TABLEAU DE RÉSULTATS
══════════════════════════════ */
.table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
}

.results-table thead {
  background-color: var(--dark);
  color: var(--white);
}

.results-table th {
  padding: 1rem 1.4rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c0c0d0;
}

.results-table td {
  padding: 1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--dark);
  border-bottom: 1px solid #f0f0f5;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.form-back {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive tableau */
@media (max-width: 576px) {
  .form-container {
    padding: 1.8rem 1.4rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
  }
}

/* ══════════════════════════════
   FORMULAIRE INSCRIPTION
══════════════════════════════ */

.form-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 12px rgba(26,26,46,0.07);
  max-width: 480px;
  margin: 0 auto 3rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.2s;
}

.form-container p {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-container label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b6b80;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-container input[type="text"],
.form-container input[type="number"] {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid #e8e8f0;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  background: #f5f5f0;
  outline: none;
}

.form-container input[type="text"]:focus,
.form-container input[type="number"]:focus {
  border-color: #e94560;
  background: #ffffff;
}

.form-container input[type="submit"] {
  width: 100%;
  background-color: #d6344d; 
  color: #ffffff;
  border: none;
  padding: 0.9rem 2rem; 
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; 
  font-weight: 600; 
  cursor: pointer;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(214, 52, 77, 0.25);
  transition: all 0.2s ease;
}

.form-container input[type="submit"]:hover {
  background-color: #b92a40;
  box-shadow: 0 6px 20px rgba(185, 42, 64, 0.4);
  transform: translateY(-1px);
}

/* Message d'erreur */
span {
  display: inline-block;
  background-color: #ffffff;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  margin-top: 0.4rem;
}

/* Responsive */
@media (max-width: 576px) {
  .form-container {
    padding: 1.8rem 1.4rem;
  }
}

