* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Libre Baskerville', serif;
}

body {
  background: #fff;
  color: #ecf0f1;
  line-height: 1.6;
}

/* PRINCIPAUX CADRES */

.container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    gap: 20px;
    border: 2px solid #e1e7eb; /* Bordure noire de 2px */
    border-radius: 10px; /* Angles arrondis (ajuste la valeur pour plus/moins d'arrondi) */
    overflow: hidden;

}
.cv-section {
  flex: 2;
  border-radius: 10px;
  padding: 20px;
}

.game-section {
  display:absolute;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* POLICES */

.title {
  text-align: left;
  margin-bottom: 30px;
}

.title h1 {
  font-size: 2rem;
  color:  #003754;
  margin-bottom: 5px;
  font-weight: 500;
}

.subtitle {
  font-size: 1.0rem;
  color:  #6B8A9C;
  font-weight: 400;
}

.cv-item h3 {
  color: #003754;
  margin-bottom: 5px;
  font-weight: 300;
  font-size: 1rem;
}

p {
  color: #6B8A9C;
  font-size: 0.8rem;
  font-weight: 100;

}

/* PORTFOLIO - CV */

.cv-menu {
  margin-top: 20px;
}

.menu-item {
  margin-bottom: 15px;
}

.accordion {
  width: 100%;
  padding: 12px 20px;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 300;
  color: #003754;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion:hover {
  background: #f0f4f8;
  transform: translateX(5px);

}

.accordion.active {
  background: #f0f4f8;
  color: #003754;
  font-weight: 500;
}

.accordion i {
  transition: transform 0.3s ease;
}

.accordion.active i {
  transform: rotate(180deg);
}
.panel {
  padding: 15px 60px;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
  overflow: hidden;
  animation: slideDown 0.4s ease-out forwards;
  border-left: 3px solid #f0f4f8;
}

.cv-item {
  margin-bottom: 15px;
}


.about {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  color: #003754;
}

/* SNAKE */

.wrapper {
  width: 100%;
  max-width: 350px;
  height: 400px;
  display: block;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 5px;
  background: #fff;
}

.game-details {
  color: #6B8A9C;
  font-weight: 300;
  font-size: 1rem;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
}

.play-board {
  height: 80%;
  width: 100%;
  display: grid;
  background: #e1e7eb;
  grid-template: repeat(30, 1fr) / repeat(30, 1fr);
}

.play-board .food {
  background: #e74c3c;
}

.play-board .head {
  background: #3498db;
}

.controls {
  display: none;
  justify-content: space-between;
}
.controls i {
  padding: 20px 0;
  text-align: center;
  font-size: 1.2rem;
  color: #bdc3c7;
  width: calc(100% / 4);
  cursor: pointer;
  border-right: 1px solid #2c3e50;
}


.game-section {
    position: relative; /* Permet de positionner les éléments enfants de manière absolue par rapport à ce conteneur */
    width: 100%; /* Assure-toi que le conteneur a une taille définie */
    height: 100%; /* Idéalement, définis une hauteur fixe ou relative */
	margin-top: 50px;
}
.game-over-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6B8A9C;
    font-size: 0.8 em;
    font-weight: 600;
    text-align: center;
    z-index: 100;
    padding: 10px 20px;
    border-radius: 5px;
}

/* MOBILE - RESPONSIVE */

@media screen and (max-width: 800px) {
  .container {
    flex-direction: column;
    margin: 30px 30px 30px;
    padding: 10px;
  }
  .panel {
	  padding: 0px 0px 0px 40px;
  }
  .wrapper {
    max-width: 300px;
    height: 450px;
  }
  .game-details {
    font-size: 0.9rem;
    padding: 10px 15px;
  }
  .controls {
    display: flex;
  }
  .controls i {
    padding: 10px 0;
    font-size: 0.9rem;
  }
}

/* ANIMATIONS */

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
