:root {
  /* Couleurs de la charte */
  --gris-clair: #EDE7E2;
  --jaune: #EECA85;
  --moutarde: #E0B257;
  --ciel: #B7D0ED;
  --marine: rgb(059, 076, 105);
  --marine3: #3C4C6A;
  --black: #0e0e0e;
            

  /* Polices */
  --font-main: 'PT Sans', sans-serif;
  --font-script: 'Claire Palmer Script', cursive; /* Alternative à Claire Palmer Script */
            
  /* Tailles */
  --font-size-xxxl: 10rem;
  --font-size-xxl: 5rem;
  --font-size-xl: 3.5rem;
  --font-size-lg: 2.5rem;
  --font-size-md: 1.8rem;
  --font-size-sm: 1rem;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--gris-clair);
}

.go-back-home {
    display: flex;
    position: absolute;
    z-index: 1000;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding-top: 0.5rem;
}

.go-back-home-btn {
  display: inline-block; /* pour <a> */
  padding: 0.8rem 2rem;
  background: none;
  border: none;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100001;
  cursor: pointer;
  color: var(--gris-clair);
  font-weight: 900;
  transition: transform 0.4s ease;
}

.go-back-home-btn:hover {
    transform: scale(1.1);
}


.team-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
}

.team-card {
  flex: 1 1 400px;
  min-height: 100vh;
  padding: 4rem 2rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.card-caroline {
  background-color: var(--moutarde);
}

.card-virginie {
  background-color: var(--marine);
}

.team-name {
  position: absolute;
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  margin: 0;
  z-index: 100;
}

.team-image {
  width: 35vw;
  max-width: 100%;
  height: 35vw;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2rem;
  position: relative;
  transition: transform 0.5s ease;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-role {
  font-size: var(--font-size-lg);
  font-weight: 600;
  max-width: 95%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: white;
  line-height: 0.90;
}

.sun-icon {
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.team-card:hover .sun-icon {
  transform: rotate(15deg);
}

.caro-name {
    color: var(--jaune);
}

.virginie-name {
    color: var(--ciel);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15%;
  background: var(--jaune);
  color: white;
  font-size: var(--font-size-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  text-align: center;
}

.image-overlay-virginie {
  background-color: var(--ciel);
}

.team-image:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 768px) {
  .team-name {
    font-size: var(--font-size-xl);
    position: relative;
    text-align: center;
  }

  .team-role {
    font-size: var(--font-size-md);
    text-align: center;
    line-height: 1.2;
    padding: 0 1rem;
  }

  .go-back-home-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  .team-image {
    width: 80vw;
    height: auto;
  }

  .image-overlay {
    font-size: 0.8rem;
    height: 28%;
  }
}
