* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: #f7f5f4;
  color: #210c0c;
}

/* Header */

.site-header {
  background-color: #374151	;
  position: relative;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 100px;        /* Hauteur maximale du logo */
  width: auto;         /* Garde les proportions */
  display: block;
  object-fit: contain; /* Assure que l'image rentre sans être coupée */
}
/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  color: #555555;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #0077ff;
}


/* Bouton hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: fixed;      /* fixe en haut à droite de l'écran */
  top: 50px;
  right: 40px;
  z-index: 10000;

}

.hamburger span {
  width: 30px;
  height: 4px;
  background-color: #333333;
  border-radius: 0px;
  transition: all 0.3s ease;
   background-color: white !important;

}

/* Menu */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1a1a1a;
  z-index: 100;
  align-items: center;
  justify-content: center;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.main-nav.active {
  opacity: 1;
  visibility: visible;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  text-align: center;
}


.main-nav li:last-child {
  border-bottom: none;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
  padding: 5px 40px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  background-color: #transparent;
  color: red;
}

/* Animation du hamburger quand le menu est ouvert */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);

}

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

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


/* Section Promotion */
.promotion {
  text-align: center;
  padding: 100px 20px;
}

/* Titre */
.promotion-title {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 30px;
}

/* Ligne + point central */
.promotion-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.promotion-divider .line {
  display: block;
  width: 35%;
  max-width: 400px;
  height: 1px;
  background-color: #2b1515;
}

.promotion-divider .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2b1515;
}






/* Onglets années */

.hidden {
  display: none;
}
.promotion-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
}

.promotion-tabs .tab {
  font-size: 1.4rem;
  text-decoration: none;
  color: #210c0c;
  position: relative;
  padding-bottom: 4px;
}

.promotion-tabs .tab.active {
  color: #6b0f1a;
}

.promotion-tabs .tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #6b0f1a;
}

.promotion-tabs .tab:hover {
  color: #6b0f1a;
}

.promotion-photos {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.promotion-photos img {
  width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.etudiants-portraits {
  padding: 60px 0;
  background: #f5f5f5;
    padding: 60px 60px; /* haut/bas 60px, gauche/droite 24px */
  background: #f5f5f5;
}

.etudiants-portraits h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
  color: #1A1A1A;

}

.section-intro {
  text-align: center;
  margin-bottom: 32px;
  color: #555;
}

.grid-portraits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

/* Carte */
.portrait-card {
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portrait-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
  background: #ddd;
}

.portrait-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Overlay LinkedIn */
/* Overlay sur toute la photo, mais logo petit */
.linkedin-overlay {
  position: absolute;
  inset: 0;               /* recouvre l'image */
  display: flex;
  align-items: center;    /* centre verticalement */
  justify-content: center;/* centre horizontalement */
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.linkedin-icon {
  width: 32px;   /* taille du logo */
  height: 32px;
}


/* Effet hover */
.portrait-wrapper:hover img {
  transform: scale(1.05);
  filter: grayscale(20%);
}

.portrait-wrapper:hover .linkedin-overlay {
  opacity: 1;
}

.portrait-card h3 {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-portraits {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .grid-portraits {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-portraits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .grid-portraits {
    grid-template-columns: 1fr;
  }
}


/* footer de la page */


.site-footer {
  background: #374151;
  color: #ffffff;
  padding: 50px 20px;
  margin-top: 80px;
  border-top: 1px solid #333;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #0077ff;
}

.social-icons {
  display: flex;
  gap: 15px;
  background : #374151;
}

.icon-link {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  background: transparent !important;
  image-rendering: optimizeQuality;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-link:hover {
  border-color: #0077ff;
  color: #0077ff;
}

