html, body {
    height: 100%;
    margin: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0e0e10;
  color: #f1f1f1;
  padding: 0;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(-20deg, #3a1c71, #ffaf7b);
}

header h1 {
  font-size: 3rem;
  margin: 0;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

main {
  width: 100%;
  margin: 3rem auto;
  flex: 1;
}

h2, h3 {
  text-align: center;
  margin-top: 2rem;
}


.project-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, 25%);
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.project {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #1e1e22;

  text-align: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.project:hover .projectDef{
  height: 100%;
}

.project img{
  width: 100%;
  border-radius: 10px 10px 0 0;
  height: 70%;
  object-fit: cover;
  display: block;
}

.project .engine{
  position: absolute;
  bottom: 0.5vw;
  left: 0.5vw; 
}

.project .engine img{
  width: 2.5vw;
  height: 2.5vw;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.project h4{
  font-weight: 400;
  font-size: 1.5vw;
}

.projectDef{
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0,0,0,0.8), rgba(72, 32, 233, 0.8));
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align:center;
  font-size: 1rem;
  transition: height 0.5s;
}

.projectDef h5{
  justify-content: flex-start;
  text-align:start;
  margin-top: 0.5vw;
  margin-bottom: 0.2vw;
  font-size: 1vw;
  width: 90%;
  font-weight: 400;
}

.projectDef h6{
  justify-content: flex-start;
  text-align:start;
  width: 90%;
  margin-top: 0px;
  margin-bottom: 0.2vw;
  font-size: 0.9vw;
  font-weight: 300;
}

.projectDef h7{
  justify-content: flex-start;
  text-align:start;
  width: 90%;
  margin-top: 0px;
  margin-bottom: 0.2vw;
  font-size: 0.8vw;
  font-weight: 300;
}

.language-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(3vw, 3vw));
  gap: 1vw;
  width: 80%;
  margin: 0 auto;
}

.lang-icon img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10%;
}

.projectDef ul {
  padding-left: 1rem;
  margin: 5px 0 0 0;
  line-height: 1.2;
}

.projectDef .icon {
  position: absolute;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  bottom: 10px;
  color: #3a1c71;
  font-size: 1vw;
  text-decoration: none;
  background: #eee;
  transition: transform 0.3s, background 0.3s;
}

.projectDef .icon.left {
  right: 5vw;
}

.projectDef .icon.right {
  right: 1vw;
}

.projectDef .icon:hover {
  transform: scale(1.2);
  background: #ffaf7b;
}

.CVs{
  display: flex;
  justify-content: center;
  gap: 50px;
}

.CV {
  position: relative;
  margin-top: 2vh;
  border-radius: 20%;
  width: 150px;
  height: 150px;
  
  padding: 10px 20px;

  display: block;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.CV h5{
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  height: 80%;
  color: rgb(104, 34, 169);
}

.CV img {
  width: 100%;
  height: 100%;
  border-radius: 20%;
}

.tabs{
  width: 100%;
  font-family: 'Poppins', sans-serif;
}

.tabs input[type="radio"]{
  display: none;
}

.tabs label{
  display: inline-block;
  padding: 1rem 2rem;
  background: #222;
  color: white;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  margin-left: 10px;
  transition: background 0.3s;
}

.tabs label:hover {
  background: #444;
}

.tab-content {
  width: 80%;
  display: none;
  background: #0e0e10;
  border-radius: 0 8px 8px 8px;
  color: #eee;
  margin: 0 auto;
  text-align: center;
}

/* Affiche le bon contenu quand l’onglet est coché */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2{
  display: block;
}

/* Onglet actif */
#tab1:checked + label,
#tab2:checked + label {
  background: #3a1c71;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  font-size: 0.9rem;
  color: #888;
}
