/* --- Mobile First --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

.header {
  background-color: #0074d9;
  color: white;
  text-align: center;
  padding: 30px 15px;
  position: relative;
  z-index: 2; /* au-dessus de la colonne bleue */
}

.header h1 {
  margin: 0;
  font-size: 1.8em;
}

.header h2 {
  margin: 5px 0 15px;
  font-weight: normal;
}

.header p {
  margin: 0;
  font-size: 0.95em;
}

.content {
  display: block;
  padding: 20px;
}

.block {
  background: white;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.block h3 {
  margin-top: 0;
}

.contacts p {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.contacts i {
  color: #0074d9;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 2px solid #ccc; /* petite barre verticale */
  min-width: 20px;
  text-align: center;
}

.competences li {
  /*display: flex;
  align-items: center;*/
  margin: 10px 0;
}

.vignette{
  padding: 1% 5%;
}

.formation{
  background-color: cornflowerblue;
}

.experience{
background-color:lightblue;
}

.projet{
background-color:darkslateblue;
color: white;
}

.projet a {
  color: cornflowerblue;
}

/* --- Desktop (≥ 768px) --- */
@media (min-width: 768px) {
  body {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    position: relative;
  }

  /* colonne bleu clair en arrière-plan */
  .sidebar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #d8ecff;
    z-index: 0;
  }

  .header {
    text-align: left;
    padding-left: 10%;
    grid-column: 1 / -1;
    margin-top: 3%; /* espace pour voir la colonne bleue */
    border-radius: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* ombre plus marquée */
  }

  .content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    padding: 20px;
    grid-column: 1 / -1;
  }

  .sidebar,
  .main {
    position: relative;
    z-index: 1; /* au-dessus du fond bleu clair */
  }

  .main{
    margin-left: 3%;
  }

  .block {
    border-radius: 0;
    width: 100%;
  }
}
