@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #0f172a; /* gris bleu très foncé */
  color: #e2e8f0; /* gris clair */
}




/* --- Navigation --- */
header {
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 15px 0;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #38bdf8; /* bleu clair */
}




/* --- Burger Menu --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo img {
  height: 40px;        
  width: 40px;         
  border-radius: 50%; 
  object-fit: cover;   
  display: block;
}

.menu-icon {
  display: none;
  font-size: 26px;
  color: #e2e8f0;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu li a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
}

.menu li a:hover {
  color: #38bdf8;
}

.btn {
  background: #38bdf8;
  padding: 10px 20px;
  border-radius: 8px;
  color: #000;
  text-decoration: none;
}



/* --- Accueil avec image de fond --- */
#accueil {

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

#accueil .titre {
  padding: 40px;
  border-radius: 12px;
}

#accueil h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #fff;
}

#accueil p {
  font-size: 1.2rem;
  color: #cbd5e1;
}




/* --- Sections --- */
main {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
}

section {
  scroll-margin-top: 80px; 
  padding: 10px 0;
}


h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #38bdf8;
}




/* --- Compétences --- */
#competences ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
}

#competences li {
  background: #1e293b;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s;
  display: flex;              
  flex-direction: column;     
  align-items: center;        
}

#competences li img {
    width: 50px;   
    height: 50px;  
    margin-bottom: 8px;
}

#competences li span {
    color: #e2e8f0;
    font-weight: 500;
  }

#competences li:hover {
  transform: translateY(-5px);
  background: #334155;
}




/* --- Timeline Formation --- */
.timeline {
  position: relative;
  margin: 20px auto;
  padding-left: 20px;
  border-left: 2px solid #38bdf8;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
  display: flex;
  align-items: center;   
  gap: 15px;             
}

.timeline-logo {
  width: 70px;   
  height: 70px;
  object-fit: contain;
  border-radius: 8px;  
}


.timeline-item .date {
  font-weight: bold;
  color: #38bdf8;
}

.timeline-item .content {
  background: #1e293b;
  padding: 15px;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}




/* --- Projets --- */
.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.projets-grid article {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.projets-grid article:hover {
  transform: translateY(-5px);
}

.projets-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.projets-grid h3 {
  margin: 15px;
  color: #38bdf8;
}

.projets-grid p {
  margin: 0 15px 15px;
  color: #cbd5e1;
}




/* --- Contact --- */
#contact {
  text-align: center;
  padding: 50px 20px;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#contact p {
  margin-bottom: 15px;
  color: #555;
}

.contact-links a {
  margin: 0 10px;
  font-weight: bold;
  color: #0077b5; 
  text-decoration: none;
}

.contact-links a:hover {
  text-decoration: underline;
}

.btn-cv {
  margin-top: 20px;
  display: inline-block;
  padding: 5px 15px;
  background: #333;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-cv:hover {
  background: #555;
}





/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  background: #1e293b;
  color: #94a3b8;
}






/* --- Mobile Burger --- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1e293b;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px 0;
  }

  .menu li {
    margin: 10px 0;
    text-align: center;
  }

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

  .menu-icon {
    display: block;
  }
}