:root {
  --color1: #e5d4ce;
  --color2: #eac5d8;
  --color3: #9d6a89;
  --color3bis: #9d6a8933;
  --color4: #2a2a2a;
  --color5: #1a1a1a;
  --color6: #fff;
  --color7: #000;
  --color7bis: #00000080;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /*Width et Height comprennent la bordure et le padding*/
}

body {
  /*font-family: Arial, sans-serif;*/
  font-family: Poppins;
  background: var(--color5);
  color: var(--color6);
  overflow-x: hidden;
  line-height: 1.5;
}

a,
a:hover {
  text-decoration: none;
  color: var(--color6);
}

p {
  font-size: 1.1rem;
  color: var(--color6);
  z-index: 10;
  position: inherit;
}

.p_taille {
  font-size: 0.8rem;
}

.p-color {
  color: var(--color1);
}

/*Gestion de la barre de navigation*/

.close3 {
  display: none;
}

@media (max-width: 899px) {
  nav {
    position: fixed;
    display: none;
    flex-direction: column;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2); /* Blanc semi-transparent */
    backdrop-filter: blur(10px);
    z-index: 1000;
    width: 30%;
    min-width: 260px;
    border-radius: 0 10% 10% 0 / 0 10% 10% 0;
  }

  .nav-link {
    display: flex;
    padding-left: 30%;
  }

  .accueil a {
    margin: 50% 0;
  }

  .nav-link.active {
    background-color: lightblue; /* Couleur du lien actif */
    color: white;
  }
}

@media (min-width: 900px) {
  .close3 {
    display: none;
  }
  .menu-btn {
    display: none;
  }
  nav {
    position: fixed;
    width: 100%;
    background: linear-gradient(217deg, var(--color5), var(--color3));
    box-shadow: 0 2px 5px var(--color7bis);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  nav ul {
    list-style: none;
    display: flex;
    align-items: center;
  }
  nav ul li {
    margin: 0 1rem;
  }
}

#menu-btn {
  position: fixed;
  top: 10px;
  left: 10px;
}

/*Gestion de la page principale*/

.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(217deg, var(--color5), var(--color3));
  color: var(--color7);
}

.hero-content {
  text-align: center;
}

.photo-container {
  width: 250px;
  height: 250px;
  background-color: var(--color2);
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
    image-rendering: crisp-edges; /* Améliore la netteté */
}

h1 {
  font-size: 2.5rem;
  margin: 1rem 0 0.5rem;
  color: var(--color1);
}

#dynamic-text {
  font-weight: bold;
  color: var(--color1);
}

/*Gestion des boutons*/

.button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn:hover {
  background: var(--color7);
  color: var(--color1);
  transform: translateY(-5px);
}

.btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  color: var(--color7);
  background: var(--color1);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s, transform 0.3s;
}

.btn-little {
  padding: 5px 10px;
}

/*Gestion des sections*/

section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: var(--color5);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  /*color: var(--color1);*/
  color: var(--color5);
  -webkit-text-stroke: 1px var(--color3);
  text-shadow: 5px 5px var(--color3bis);
  transition: transform 0.3s ease, color 0.3s ease;
}

section p {
  max-width: 800px;
  margin: auto;
}

/*Gestion des cartes*/

.card-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.302);
  border: none;
  border-radius: 10px;
  color: var(--color6);
  background: var(--color4);
  padding: 2rem;
  width: 300px;
  /*transition: transform 0.3s ease, background-color 0.3s ease;*/
  font-size: 1rem;
  text-align: initial;
}

.card-center img {
  align-self: center; /* Centre l'image horizontalement */
  width: 230px; /* Taille de l'image */
  height: auto; /* Garde la proportion de l'image */
}

/*.card-center {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;*/ /* Le contenu est en haut */
/*align-items: flex-start;*/ /* Aligne le texte à gauche */
/*}*/

.card-route {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--color4);
  color: var(--color6);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card-center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.card-project-container {
  padding: 30px;
  width: 250px;
  height: 400px;
  display: grid;
}

.card-project-container p {
  font-size: 1rem;
}

.part1 {
  height: 140px;
  margin-bottom: 10px;
}

.part2 {
  height: 150px;
}

.part3 {
  display: flex;
  justify-content: center;
}

.back-project-sep-50 {
  background-image: url("../image/Logo_50_ans_SEP.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.back-project-sep {
  background-image: url("../image/Logo_SEPANSO_marges.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1C6A74;
}

.card-content-indent {
  /*text-indent: 2em;*/
  margin-top: 3%;
}

.card-content-fontsize {
  font-size: 0.9rem;
}

/*.card:hover {
    transform: translateY(-5px);*/ /* Effet de survol pour les cartes */
/*transform: scale(1.05);
}*/

.citation {
  font-style: italic;
}

.name {
  text-align: end;
  color: var(--color1);
}

/*Gestion du pied de page*/

footer {
  background-color: var(--color5);
  text-align: center;
  padding: 2rem;
}

/*Gestion des tableaux*/

table {
  width: 80%;
}

/*.table {
  display: flex;
  justify-content: center;
  text-align: initial;
  margin-top: 30px;
}

.table td {
  width: 33%;
  height: 150px;
  padding: 10px 50px;
  vertical-align: top;
}*/

/*.test {
  display: flex;
  justify-content: center;
}

.table {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
  margin: 0 auto;
  text-align: initial;
}*/

/* Centre la table au milieu de la page */
.table {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(250px, 1fr)
  ); /* Max 3 colonnes */
  grid-gap: 20px; /* Espacement entre les éléments */
  margin: 30px auto 0 auto; /* Centre horizontalement */
  justify-content: center;
}

/* Style des divs internes */
.skill {
  padding: 20px;
  border-radius: 10px;
  border: solid 2px #2a2a2a;
  text-align: left; /* Assure que le texte est bien aligné à gauche */
  height: auto;
}

/* Responsive : réduit à 2 colonnes si écran < 900px */
@media (max-width: 900px) {
  .table {
    grid-template-columns: repeat(
      auto-fit,
      minmax(250px, 1fr)
    ); /* 2 colonnes */
  }
}

/* Responsive : passe en 1 colonne si écran < 600px */
@media (max-width: 600px) {
  .table {
    grid-template-columns: repeat(1, 1fr); /* 1 colonne */
  }
}

h4 {
  font-weight: bold;
  color: var(--color1);
  font-size: 1.1rem;
}

/* Conteneur flex pour les deux sections : Formation et Expérience Pro */
.route-container {
  display: grid;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 3rem;
  grid-template-columns: 1fr 1fr;
}

/* Pour Formation et Expérience Pro */
.route-section {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0;
  padding-left: 30px;
}

.card-content {
  font-size: 1rem;
  text-align: initial;
}

h3 {
  font-size: 1.6rem;
  color: var(--color1);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 1px;
}

.left-container {
  display: flex;
  flex-direction: column; /* Empile Formation et Bénévolat */
  gap: 1rem; /* Espace entre Formation et Bénévolat */
}

.right-container {
  display: flex;
  align-items: center;
}

@media (max-width: 800px) {
  .route-container {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .left-container,
  .right-container {
    justify-self: center;
    width: 100%;
  }
}

/*Gestion des icones utilisées comme font d'écran dans la partie "compétences"*/

.icon-back {
  position: relative;
  /*height: 105px;*/
}

.icon-back::before {
  font-family: "FontAwesome";
  font-size: 100px;
  color: var(--color3bis);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-back-weight {
  height: 100%;
  width: 100%;
}

.icon-back-weight::before {
  top: 10%;
  left: 39%;
  rotate: 334deg;
}

.css-icon::before {
  content: "\f38b";
}

.html-icon::before {
  content: "\f13b";
}

.js-icon::before {
  content: "\f3b8";
}

.php-icon::before {
  content: "\f457";
}

.desktop-icon::before {
  content: "\f390";
}

.code-icon::before {
  content: "\f121";
}

.mobile-icon::before {
  content: "\f3cd";
}

.list-icon::before {
  content: "\f0ca";
}

.layer-group-icon::before {
  content: "\f5fd";
}

.quote-icon::before {
  content: "\f10d";
}

/*Test Pop-Up*/

/*.btn- {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}*/

.popup {
  display: none; /* Caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
}

.popup-content {
  background: var(--color4);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.popup-content img {
  width: 300px;
  height: auto;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}
