

/*BASE GENERALE*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef4ff, #f8fbff);
  color: #1f2937;
}
/*ENTETE ET MENU*/

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: #2b4c7e;
  color: white;
  position: relative;
}

.brand {
  color: #eef4ff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

#menu-toggle {
  display: none;
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/*MISE EN PAGE PRINCIPALE  layout*/

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  max-width: 1200px;
  margin: 30px auto;
  gap: 24px;
  padding: 0 20px;
}

/*BLOC GAUCHE*/

.sidebar {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #dbeafe;
  margin-bottom: 16px;
}

.job {
  color: #2b4c7e;
  font-weight: bold;
  margin-top: 8px;
}

.info {
  margin-top: 20px;
  text-align: left;
  line-height: 1.8;
}

/*carte du contenu*/


.content {
  display: grid;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card h2 {
  color: #2b4c7e;
  margin-bottom: 14px;
}

.card ul {
  padding-left: 20px;
  line-height: 1.8;
}

/*Pied de page*/

.footer {
  text-align: center;
  padding: 18px;
  margin-top: 30px;
  background: #2b4c7e;
  color: white;
}

/*Page formation et experience*/


.page {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}
.timeline-item{

    background-color: #f4f4f4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition:transform 0.3s ease,box-shadow 0.3s ease,background-color 0.3s ease;
}


.timeline-item:hover {
  transform: scale(1.03);
  background-color: #e9e9e9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.date {
    background-color: #dddddd;
    padding: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    border-radius: 6px;
}


/*PAGE contact*/


.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: bold;
  color: #2b4c7e;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.contact-form button {
  width: fit-content;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: #2b4c7e;
  color: white;
  cursor: pointer;
}

.contact-form button:hover {
  background: #1f3558;
}

.contact-box {
  line-height: 1.8;
  background: #f8fbff;
  border-left: 4px solid #2b4c7e;


}

/*version mobile*/


@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #2b4c7e;
    padding: 18px 24px;
  }

  #menu-toggle:checked ~ .nav {
    display: flex;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

}  





/*BARRES de PROGRESSION*/


.skills-list {
    display: grid;
    gap:18px;
}

.progress-card{

     background: #f4f4f4;
  padding: 16px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.progress-card:hover{

    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.progress-card h3{

    margin-bottom: 10px;

    color: #ef476f;
}

.progress-bar{

    background-color: #ddd;

    height: 30px;

    border-radius: 30px;

    overflow: hidden;
}

.progress{

    height: 100%;

    color: white;

    text-align: center;

    line-height: 30px;

    font-weight: bold;

    border-radius: 30px;
}

/* COULEURS */

.python{

    width: 90%;

    background-color: #3776ab;
}

.angular{

    width: 75%;

    background-color: #dd0031;
}

.flask{

    width: 80%;

    background-color: #444;
}

.sql{

    width: 70%;

    background-color: #336791;
}

.docker{

    width: 65%;

    background-color: #0db7ed;
}
