/* styles.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3f6180;
    --text-color: #333;
    --bg-color: #ecf0f1;
    --card-bg: #fff;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    height: 100%;
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
  }

li{
  list-style:none;
}

  .experience-item, .formation-item {
    margin-bottom: 20px;
    padding: 15px;
    /* border-left: 3px solid #2c3e50; */
    border-radius : 0.5rem;
    background-color: #f8f9fa;
}

.date {
    font-style: italic;
    color: #6c757d;
}

h3 {
    color: #2c3e50;
}

ul {
    padding-left: 20px;
}

strong {
    color: #28a745;
}


.skills img{
  max-width: 40px;
  max-height: 40px;
}

  .page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .title_expe{
    display: flex;
    align-items: center;
  }

  .title_expe h3{
    margin: 0;
    margin-right: 10px;
  }

  .title_expe span{
    font-size: 0.8em;
  }
  
  header {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
  }
  
  nav ul li a {
    color: var(--bg-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  nav ul li a:hover {
    color: var(--secondary-color);
  }
  
  main {
    flex: 1 0 auto;
    margin-top: 80px;
    padding: 2rem 0;
    padding-bottom: 60px;
  }
  
  h1, h2, h3 {
    margin-bottom: 1rem;
  }
  
  .btn {
    /* pour centrer dans une div */
    display: flex;
    margin: 1rem auto;
    width: fit-content;
    /* fin */
    background-color: var(--primary-color);
    /* background-color: var(--secondary-color); */
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: auto;
    margin-right: auto;
  }
  
  .btn:hover {
    /* background-color: var(--primary-color); */
    background-color: var(--secondary-color);
  }

  .captcha{
    /* pour centrer dans une div */
    display: flex;
    width: fit-content; 
    background-color: var(--primary-color);
    margin-left: auto;
    margin-right: auto;
    /* fin */
  }
  
  
  /* Page d'accueil */
  .hero {
    text-align: center;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
  }
  
  .skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .skill-tag {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
  }
  
  /* Page Projets */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    display: flex;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  /* .project-card h3{
    color:green;
  } */
  
  .project-card:hover {
    transform: translateY(-5px);
   
  }
  
  .project-card img {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
    max-width: 600px;
    
    align-self: center;
  }
  
  .project-info p {
    padding-bottom: 1rem; 
  }
  .project-info .link_github {
    margin-top: auto; 
    padding-left: 1rem;
  }

  .project-info .link_site {
    margin: auto auto; 
    /* text-decoration: none; */
  }
  .project-info .link_site:hover {
    scale:1.2;
    
    text-shadow:  var(--secondary-color) 1px 0 2px;
    transition: scale 0.3s ease, color 2s ease;
  }

  .project-image-link {
    display: block;
    width: 200px; /* Définissez la largeur souhaitée */
    height: 200px; /* Définissez la hauteur souhaitée */
    margin: 0 auto; /* Centre l'image horizontalement */
    overflow: hidden; /* Cache les parties de l'image qui dépassent */
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre la zone sans déformer l'image */
    object-position: center; /* Centre l'image dans la zone définie */
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 1rem;
  overflow: hidden;
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image-link {
  width: 100%;
  height: 200px; 
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
}

.link_site {
  text-align: center;
  padding: 10px;
  /* background-color: #f0f0f0; */
  text-decoration: none;
  color: #333;
}

.project-info {
  flex-grow: 1;
  padding: 10px;
}

.link_github {
  display: block;
  text-align: center;
  padding: 10px;
  background-color:var(--primary-color);
  color: white;
  text-decoration: none;
  margin-top: auto;
}


  .project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Permet au contenu de s'étendre */
  }
  
  /* Page Contact */
  .contact-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff4136;
    box-shadow: 0 0 5px rgba(255, 65, 54, 0.5);
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    outline: none;
    border-color: #ff4136;
}
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .form-group textarea {
    height: 150px;
  }
  
  /* Footer */
  footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    flex-shrink: 0;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  
    .project-grid {
      grid-template-columns: 1fr;
    }
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 1rem;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
  