/* ======= Styles globaux ======= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    color: #1d2731; /* bleu foncé */
  }
  
/* ======= Header ======= */
/* Header simple avec logo */
header {
    background-color: #0b3c5d; /* couleur du header */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* logo à gauche */
  }
  
  header .logo {
    width: 200px; /* ajuste si besoin */
    height: auto;
  }
  /* ======= Navigation ======= */
  nav {
    background-color: #0b3c5d; /* bleu foncé */
    display: flex;
    justify-content: center;
    padding: 0.5rem 0; /* smaller vertical padding */
  }
  
  nav a {
    color: white;
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  /* Hover effect */
  nav a:hover {
    background-color: #ffdd57; /* jaune */
    color: #1d2731; /* bleu foncé texte */
  }
  
  /* Active page style */
  nav a.active {
    background-color: #ffdd57; /* jaune */
    color: #1d2731;
  }
  
  /* ======= Main content ======= */
  main {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  }
  
  /* ======= Footer ======= */
  footer {
    text-align: center;
    padding: 1rem;
    background: #ddd;
    margin-top: 2rem;
    font-size: 0.9rem;
  }

/* ===== Scientific Aims – styles adaptés ===== */

.aims h3 {
    font-size: 1.1rem;       /* taille un peu plus petite qu’un h3 normal */
    font-weight: 600;        /* toujours visible mais moins imposant */
    margin-top: 15px;
    color: #0b3c5d;          /* couleur harmonisée si tu veux */
  }
  
  .aims p {
    font-size: 1rem;         /* même taille que le texte au-dessus */
    margin-left: 10px;
    margin-bottom: 10px;
    line-height: 1.6;
  }
  
  /* Si tu veux une légère réduction de l’espace entre titres et paragraphes : */
  
  .aims h3 + p {
    margin-top: 5px;
  }


  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 20px;
  }
  
  .team-member {
    text-align: center;
  }
  
  .team-member img {
    width: 150px; /* ou adapte selon tes images */
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  .team-member h3 {
    margin: 10px 0 5px 0;
    font-size: 1rem;
  }
  
  .team-member p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

/* ===== Hero section ===== */
.hero {
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2rem;
  color: #0b3c5d;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #444;
  max-width: 1200px;
  line-height: 1.6;
}

/* ===== Aims layout ===== */
.aims h2 {
  margin-bottom: 1.5rem;
  color: #0b3c5d;
}

.aims-grid {
  display: flex;
  flex-direction: column; /* empile verticalement */
  gap: 1.5rem;            /* espace entre cartes */
}

.aim-card {
  background-color: #f7f9fb;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.aim-card h3 {
  margin-top: 0;
  color: #0b3c5d;
  font-size: 1.1rem;
}

.aim-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === Grille équipe en 3 colonnes === */
.team-page .team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
  padding: 0 20px;
}

/* === Carte membre style propre === */
.team-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  max-width: 180px;
  margin-bottom: 10px;
}

.team-card h3 {
  font-size: 1.2rem;
  margin: 10px 0 6px;
  color: #222;
}

.team-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}

/* Responsive mobile (1 colonne) */
@media (max-width: 900px) {
  .team-page .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive tablette (2 colonnes) */
@media (min-width: 901px) and (max-width: 1200px) {
  .team-page .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Images de l'équipe taille uniforme */
.team-page .team-card img {
  width: 180px;       /* largeur fixe */
  height: 180px;      /* hauteur fixe */
  border-radius: 50%; /* toujours rond */
  object-fit: cover;  /* remplit le cadre sans déformer l'image */
  margin-bottom: 10px;
}

.team-card-link {
  text-decoration: none;
  color: inherit;
}

.team-card-link:hover .team-card {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== News & Job cards layout (comme index) ===== */
.news-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.news-section {
  display: flex;
  flex-direction: column; /* une carte par ligne */
  gap: 1.5rem;            /* espace entre les cartes */
}

.news-section h2 {
  margin-bottom: 1rem;
  color: #0b3c5d;
}

/* cartes news et jobs en style similaire à aims */
.news-section .card {
  background-color: #f7f9fb; /* comme .aim-card */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 1100px;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-section .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-section .card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #0b3c5d;
}

.news-section .card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}
/* Header logos ENS & Inserm on the right */
.header-logos {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logos img {
  height: 50px;
  width: auto;
}

/* Logos ENS & Inserm below nav, aligned right */
.header-logos-below {
  display: flex;
  justify-content: flex-end; /* aligner à droite */
  align-items: center;
  gap: 20px;                 /* espace entre les logos */
  margin-top: 10px;          /* espace sous le nav */
  margin-bottom: 20px;       /* espace avant le contenu */
}

.header-logos-below img {
  height: 50px; /* taille raisonnable */
  width: auto;  /* garder les proportions */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo à gauche, nav centré */
  padding: 0.5rem 2rem;
}

.header-container .logo {
  height: 60px;
}

.header-container nav.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
}

.logos-hero {
  display: flex;
  justify-content: center; /* centre les logos */
  align-items: center;     /* aligne verticalement au centre */
  gap: 40px;               /* espacement uniforme entre tous les logos */
  margin-bottom: 20px;
}

.ibens-logo {
  max-height: 120px; /* taille spécifique pour IBENS */
  width: auto;
}

.inserm-logo {
  max-height: 80px; /* taille spécifique pour INSERM */
  width: auto;
}

.ens-logo {
  max-height: 100px; /* ajuster la taille souhaitée pour ENS */
  width: auto;
}
.philosophy {
  margin-top: 3rem;
}

.philosophy h2 {
  font-size: 1.5rem;
  color: #0b3c5d;
  margin-bottom: 0.5rem;
}

.philosophy p {
  font-size: 1.1rem;
  color: #444;
  max-width: 1200px;
  line-height: 1.6;
}

.philosophy-img {
  display: block;
  margin: 1.5rem auto 0 auto;
  max-width: 80%;
  height: auto;
}