/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base */
body {
  font-family: 'Merriweather', serif;
  background-size: cover;
  color: #2c3e50;
  line-height: 1.6;
}

.logo,
.hero h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: #004080;
  color: #fff;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s;
}

.logo:hover::after {
  width: 100%;
}

/* Language flags */
.language-flags {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.flag-tooltip {
  position: relative;
  cursor: pointer;
  height: 30px;
}

.flag-tooltip img {
  height: 100%;
  width: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
  display: block;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #004080;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.8rem;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.flag-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

/* Navigation links */
.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #e0f7fa, #ffffff);
  overflow: visible;
  width: 100%;
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #333;
}

/* Footer */
footer {
  background: #f0f0f0;
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-content a {
  margin: 0 0.5rem;
  color: #004080;
  font-weight: 500;
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.footer-content a:hover {
  text-decoration: underline;
}

.avatar-network {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* ✅ 3 colonnes : gauche - centre - droite */
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}




.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


.avatar {
  width: 310px;
  height: 310px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #004080;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.node {
  position: absolute;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  background: #004080;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 2; /* pour être devant */
}
/* SVG Line Animation */
.connection-lines line {
  stroke-dasharray: 4 4;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.8s ease;
}

.avatar-container:hover + .connection-lines line {
  stroke-dashoffset: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #004080;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    max-height: 300px;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .language-flags {
    gap: 0.3rem;
  }

  .flag-tooltip img {
    width: 20px;
    height: auto;
  }

  .tooltip-text {
    top: 120%;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

.school-logos img {
  height: 80px;
  max-width: 320px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px; /* ✅ Coins arrondis */
}


.school-logos {
  display: flex;
  flex-direction: column; /* si tu as plusieurs logos, ils se superposent */
  align-items: center;
  gap: 10px;
}

.cv-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

.cv-container iframe {
  width: 100%;
  height: 98vh; /* plus grand qu'avant (90% de la hauteur de l’écran) */
  border: none;
}

.diagonal-gallery {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  position: relative;
}

.gallery-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: rotate(-2deg); /* petite diagonale */
  transition: transform 0.4s ease;
}

.gallery-item:nth-child(even) {
  flex-direction: row-reverse;
  transform: rotate(2deg);
}

.gallery-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.desc {
  max-width: 500px;
}

.desc h3 {
  color: #004080;
  margin-bottom: 0.5rem;
}

.desc p {
  color: #333;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-item {
    flex-direction: column !important;
    transform: rotate(0);
  }

  .gallery-item img {
    width: 100%;
    height: auto;
  }

  .desc {
    max-width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}








