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

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #FDF9FA;
  color: #111;
  padding: 0px 40px ;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
body {
  cursor: url('images/cursor.svg') 0 0, auto;
}*/


.container {
  max-width: 1600px;
  margin: 0 auto;
  height: 100vh; /* ⬅️ hauteur plein écran */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}


.content {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}


.logo {
  width: 30px;
  height: 30px;
  margin-right: 0px;
}

.name{
  height: 28px;
  margin-top: 20px;
  width: fit-content;
}
h1 {
  font-size: 16px;
  font-weight: normal;
}

.content {
  display: flex;
  gap: 60px;
}

.text {
  flex: 1;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.text em {
  font-style: italic;
  color: #777;
}

.links {
  display: flex;
  gap: 20px;
}

.links a {
  text-decoration: none;
  color: #888;
  font-size: 14px;
}

a {
  text-decoration: none;
  /*cursor: url('images/logorose.svg') 0  0, auto;*/
}

.hover-trigger {
  color: #D4125D;
  background: rgba(212, 18, 93, 0.08);

  /*cursor: pointer;*/
  /*text-decoration: underline;*/
}

.external-link{
  color: #777;
  background: rgba(0, 0, 0, 0.04);

}

.photo {
  aspect-ratio: 1 / 1;
  max-width: 400px;
  width: 100%;
  border-radius: 4px;
}

.photo-placeholder {
  width: 100%;
  height: 400px;
  background-image: url(images/stephanie.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.photo-placeholder img.photo-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  border-radius: 4px;
}

.photo-placeholder .photo-text {
  z-index: 1;
  color: #333;
  font-size: 14px;
  text-align: center;
  opacity:0
}


@media (max-width: 500px) {

  header {
    padding-top: 40px;
  } 

  .hover-trigger {
    color: #D4125D;
    background: rgba(212, 18, 93, 0.08);
  
    /*cursor: pointer;*/
    /*text-decoration: underline;*/
  }

  .external-link{
    color: #777;
    background: rgba(0, 0, 0, 0.04);
  }

  body {
    margin: 0;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .container,
  .content,
.photo {
  max-width: 100vw;
  box-sizing: border-box;
}

.name {
  height: auto;
  width: 100%;
  max-width: 160px; /* ou ce que tu veux */
  margin-top: 20px;
}
  .photo {
    display: none;
  }

    
  .container {
    justify-content: flex-start;
    height: auto;
    padding-bottom: 40px;
  }

  .content {
    flex-direction: column;
    align-items: flex-start;
  }

  .text {
    max-width: 100%;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 0px;
  box-sizing: border-box;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #FDF9FA;
  border-radius: 8px;
  max-width: 90%;
  width: 100%;
  max-height: 90%;
  text-align: center;
  overflow: hidden;
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* 🔺 Croix placée AU-DESSUS de l’image, mais pas dessus */
#modal-close {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-bottom: 12px;
}

/* 🟩 Carré image */
.modal-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 🔽 Description */
.modal-caption {
  color: #777;
  padding: 12px 0 20px;
  text-align: left;
  width: 100%;
  font-size: 13px;
}

@media (min-width: 501px) and (max-width: 1024px) {
  header {
    padding-top: 40px;
  } 
  
  .container {
    justify-content: flex-start;
    height: auto;
    padding-bottom: 40px;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    min-height: auto;
  }

  .name {
    height: auto;
    width: 100%;
    max-width: 180px; /* ou ce que tu veux */
    margin-top: 20px;
  }

  /* Inverser l’ordre dans le CSS sans modifier le HTML */
  .text {
    order: 2; /* Texte en 2e */
  }

  .photo {
    order: 1; /* Image en 1er */
  }

  .photo, .text {
    width: 100%;
    max-width: 400px;
  }
}