/* 1. Reset & fond de page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100vh;
  overflow: hidden;               /* Plus aucun scroll global */
  font-family: 'Poppins', sans-serif;
  background: url("images/fond.png") no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

/* 2. Conteneur principal */
/* On réserve 60px en bas pour la nav, et ~10vh en haut pour le titre/introduction */
.container {
  position: relative;
  z-index: 1;
  height: 100vh;                  /* On occupe tout l’écran */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2vh 1rem 0;             /* Paddings en haut/lateraux */
  text-align: center;
}

/* Titre principal */
.titre {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  color: #000;
  margin-top: 40px;                /* Même marge que sur les autres pages */
}

/* Texte d’intro */
.texte-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8vh;
  line-height: 1.6;
  color: #444;
  max-width: 60vw;
  margin: 1.5vh 0 3vh;             /* Espace sous le texte d’intro */
  white-space: pre-line;
}

/* 3. Carte unique */
/* On limite maintenant explicitement la hauteur pour éviter tout débordement */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 700px;

  /* Hauteur calculée : 
     100vh – (hauteur titre + intro + marge supérieure) – (hauteur nav + marge inférieure) */
  max-height: calc(
    100vh
    - (40px + 3vh + 2vh)    /* 40px de margin-top sur le titre + ~3vh pour l’intro + ~2vh padding top */
    - (60px)                /* 60px pour la barre de nav (40px + marges) */
  );

  padding: 2vh 2vw;
  overflow: hidden;                /* On retire le scroll interne */
  flex-shrink: 0;                  /* Ne pas se rétrécir davantage */
}

/* En-tête de carte (icône + titre) */
.card-header {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 2vh;
}
.card-icon {
  width: 40px;
  height: 40px;
}
.card-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #8B4513;
}

/* Liste des tâches */
/* On réduit encore un peu pour s’assurer que ça tienne */
.card-list {
  list-style: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6vh;
  line-height: 1.4;
  color: #444;
  margin-top: 1vh;
  padding-left: 1vh;
}
.card-list li {
  position: relative;
  padding-left: 2vh;
  margin-bottom: 1.5vh;
}
.card-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: #8B4513;
  font-weight: bold;
  font-size: 2vh;
  line-height: 1;
}

/* 4. Barre de navigation inférieure (identique à style-parcours.css) */
.nav-icons {
  position: fixed;
  bottom: 40px;                    /* 40px du bas, comme sur vos autres pages */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 30px;
  border-radius: 30px;
  display: inline-block;
  z-index: 100;
}
.nav-icons ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.icon-item a {
  text-decoration: none;
  color: #5C4033;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icon-item a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s, filter 0.3s;
}
.icon-item a span {
  margin-top: 5px;
  font-size: 12px;
}
.icon-item a:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}
.separator img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  pointer-events: none;
}

/* 5. Responsive (écrans < 600px) */
@media (max-width: 600px) {
  .titre {
    font-size: 6vw;
  }
  .texte-intro {
    font-size: 3.5vw;
    max-width: 90vw;
  }
  .card {
    width: 90%;
    max-width: none;
    padding: 3vw 4vw;
    max-height: calc(
      100vh
      - (40px + 8vw + 3vh)    /* Ajustement pour tenir sur mobile */
      - (60px)
    );
  }
  .card-header h2 {
    font-size: 4vw;
  }
  .card-list {
    font-size: 3.5vw;
  }
  .nav-icons {
    bottom: 20px;
    padding: 1.5vh 3vh;
  }
  .icon-item a {
    font-size: 2.5vw;
  }
  .icon-item a img {
    width: 4vw;
    height: 4vw;
  }
  .separator img {
    width: 3vw;
    height: 3vw;
  }
}
