/* =========================
   BASE
========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

:root{
  --bg: #0F172A;
  --fg: #E5E7EB;
  --muted: #CBD5E1;
  --accent: #BFDBFE;
  --muted2: #94A3B8;
  --dark: #0F172A;
  --light: #E5E7EB;
}

html, body{
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
nav{
  font-size: 20px;
  padding: 20px;
}

#navbar-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav p{ margin-left: 50px; }

#navbar-menu{
  list-style: none;
  margin: 0 100px 0 0;
  padding: 0;
  display: flex;
}

.navbar-link{
  text-decoration: none;
  color: inherit;
  margin-left: 50px;
}

nav a:hover{ opacity: 0.8; }

.navbar-button{ margin-left: 50px; }

.navbar-btn{
  background: var(--light);
  color: var(--dark);
  margin-top: -10px;
  padding: 10px;
  border-radius: 20px;
}

.download{
  text-decoration: none;
  color: var(--dark);
  font-size: 20px;
  font-weight: bold;
}

/* =========================
   BURGER MENU
========================= */
.burger{
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span{
  display: block;
  width: 28px;
  height: 3px;
  background: var(--fg);
  margin: 5px 0;
}

/* =========================
   PROFIL
========================= */
#profil{
  padding: 140px 20px;
  margin-left: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
}

.profil-text{
  max-width: 700px;
  padding-right: 200px;
}

.profil-title{
  font-size: 60px;
  color: var(--accent);
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.75);
}

.profil-subtitle{
  font-size: 35px;
  color: var(--muted2);
  font-style: italic;
  text-shadow: 0 2px 4px rgba(0,0,0,0.50);
}

.profil-description{
  margin-top: 20px;
  line-height: 1.6;
  font-size: 20px;
  color: var(--muted);
  text-align: justify;
}

.profil-images{ margin-top: 50px; }

.profil-photo{
  width: 300px;
  height: 300px;
  border: var(--muted2) 2px solid;
  border-radius: 10%;
  box-shadow: 0 20px 10px rgba(0,0,0,0.35);
}

.social-icons{
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.social{ width: 60px; height: 60px; }

/* =========================
   SECTIONS / TITRES
========================= */
.section-title{
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
}

.skills-title,
.projects-title{
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 30px;
}

.divider{
  border: none;
  height: 1px;
  background: var(--muted);
  margin: 60px auto;
  width: 60%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* =========================
   IT SECTION
========================= */
#it-section{
  background: var(--light);
  color: var(--dark);
  margin: 50px auto;
  padding: 50px;
}

.skills-cards{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 150px;
  margin-top: 40px;
}

.skill-card{
  background: var(--dark);
  color: var(--fg);
  width: 320px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 25px 45px rgba(0,0,0,0.5);
}

.skill-card-title{
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--accent);
}

.skill-card-list{ padding-left: 20px; }

.skill-card-list li{
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   PROJECTS IT – SCROLL
========================= */
#projects{
  margin: 100px auto;
  padding: 0 50px;
}

.projects-carousel{
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 0 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.project-card{
  flex: 0 0 320px;
  background: #fff;
  color: var(--dark);
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  text-align: left;
  scroll-snap-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.project-img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.project-title{
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--dark);
}

.project-description{
  font-size: 14px;
  line-height: 1.5;
  color: #1E293B;
  margin-bottom: 10px;
}

.project-skills{
  font-size: 12px;
  font-style: italic;
  color: #475569;
}

/* =========================
   WEB SECTION
========================= */
#web-section{
  margin: 50px auto;
  padding: 50px;
  background: var(--bg);
  color: var(--fg);
}

.skills-list{
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
}

.skill-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 20px;
  padding: 40px;
}

.skill-icon{ width: 100px; height: 100px; }

.skill-descri{
  font-size: 18px;
  margin-top: 30px;
}

/* =========================
   PROJECTS WEB – SCROLL (comme IT)
========================= */
.projects-web .carousel{ margin-top: 50px; }

.projects-web .carousel-viewport{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.projects-web .carousel-track{
  display: flex;
  gap: 24px;
  padding: 20px 24px;
}

.projects-web .project-cardWeb{
  background: var(--bg);
  color: var(--fg);
  flex: 0 0 300px;       /* desktop : plusieurs cards visibles */
  scroll-snap-align: center;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.projects-web .project-imageWeb{
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
}

.projects-web .project-titleWeb{
  font-size: 18px;
  margin: 12px 0 8px;
}

.projects-web .project-descriptionWeb{
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 14px;
}

.projects-web .project-linkWeb{
  text-decoration: none;
  color: var(--fg);
  font-weight: bold;
  border: 1px solid var(--fg);
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 14px;
}

.projects-web .project-linkWeb:hover{
  background: var(--fg);
  color: var(--bg);
}

/* =========================
   CONTACT
========================= */
#contact{
  background: var(--light);
  color: var(--dark);
  padding: 50px;
}

.contact-container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.contact-map{
  padding-right: 200px;
  border-right: var(--dark) 2px solid;
}

.contact-location{
  font-size: 22px;
  margin-top: 20px;
  text-align: center;
}

.contact-form{
  display: flex;
  flex-direction: column;
  width: 600px;
  padding: 60px;
}

.form-group{
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label{ margin-bottom: 5px; font-weight: bold; }

#name, #email, #message{
  padding: 10px;
  border: 1px solid var(--muted2);
  border-radius: 5px;
}

#message{ height: 100px; }

.submit{
  padding: 10px;
  border: 1px solid var(--muted2);
  border-radius: 5px;
  background: var(--bg);
  font-size: 15px;
  color: var(--fg);
}

/* =========================
   FOOTER
========================= */
#footer{
  background: var(--bg);
  font-size: 20px;
  color: var(--fg);
  text-align: center;
  padding: 20px;
}

/* =========================
   RESPONSIVE
========================= */

/* TABLETTE (<= 1024px) */
@media (max-width: 1024px){

  /* Burger + menu */
  #navbar-container{
    flex-wrap: wrap;
    align-items: center;
  }

  #navbar-brand{
    flex: 1;
    text-align: left;
  }

  .burger{ display: block; }

  #navbar-menu{
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0 0 0;
    padding: 0 0 20px 0;
    background: var(--bg);
  }

  #navbar-menu.is-open{ display: flex; }

  .navbar-link{
    margin-left: 0;
    font-size: 18px;
  }

  .navbar-button{ margin-left: 0; }

  /* Profil */
  #profil{
    margin-left: 0;
    padding: 120px 20px;
    gap: 32px;
    justify-content: center;
  }

  .profil-text{
    padding-right: 0;
    max-width: 600px;
  }

  /* Skills */
  .skills-cards{ gap: 40px; }

  .skills-list{
    flex-wrap: wrap;
    gap: 24px;
  }

  .skill-item{
    margin: 0;
    padding: 20px;
  }

  /* Contact */
  .contact-map{ padding-right: 40px; }

  .contact-form{
    padding: 40px;
    width: 360px;
  }

  /* IT projects : éviter débordements */
  #projects{
    padding: 0 16px;
    margin: 60px 0;
  }

  .projects-carousel{
    justify-content: flex-start;
    padding: 12px 0;
    gap: 20px;
  }

  .project-card{
    flex: 0 0 calc(100vw - 48px);
    max-width: 100%;
  }

  .project-img{
    height: auto;
    object-fit: contain;
  }

  /* Web cards un peu plus larges sur tablette si tu veux */
  .projects-web .project-cardWeb{ flex: 0 0 280px; }
}

/* MOBILE (<= 768px) */
@media (max-width: 768px){

  nav{ padding: 16px; font-size: 18px; }

  /* Profil */
  #profil{
    flex-direction: column;
    padding: 40px 16px;
    text-align: center;
    margin-left: 0;
  }

  .profil-text{ order: 2; padding-right: 0; }
  .profil-images{ order: 1; margin-top: 20px; }

  .profil-title{ font-size: 36px; }
  .profil-subtitle{ font-size: 20px; }

  .profil-description{
    font-size: 16px;
    text-align: left;
  }

  .profil-photo{ width: 220px; height: 220px; }
  .social{ width: 48px; height: 48px; }

  /* Sections */
  #it-section, #web-section, #contact{
    padding: 28px 16px;
    margin: 0;
  }

  .section-title{
    font-size: 28px;
    margin-bottom: 28px;
  }

  .skills-title, .projects-title{ font-size: 22px; }

  .skill-card{
    width: 100%;
    max-width: 520px;
  }

  .skills-cards{ gap: 20px; }

  .skills-list{ justify-content: center; }
  .skill-icon{ width: 72px; height: 72px; }

  /* IT projects : 1 card plein écran */
  #projects{
    padding: 0 12px;
    margin: 40px 0;
  }

  .projects-carousel{
    justify-content: flex-start;
    padding: 10px 0;
    gap: 16px;
  }

  .project-card{
    flex: 0 0 calc(100vw - 32px);
    max-width: 100%;
  }

  /* Contact */
  .contact-container{
    flex-direction: column;
    gap: 24px;
  }

  .contact-map{
    padding-right: 0;
    border-right: none;
    border-bottom: var(--dark) 2px solid;
    padding-bottom: 16px;
  }

  .contact-form{
    width: 100%;
    max-width: 520px;
    padding: 0;
  }

  .contact-location{ font-size: 18px; }

  /* Web carousel : 1 card visible */
  .projects-web .carousel-track{
    gap: 16px;
    padding: 16px;
  }

  .projects-web .project-cardWeb{
    flex: 0 0 calc(100% - 32px);
  }
}

/* PETITS MOBILES (<= 400px) */
@media (max-width: 400px){
  .profil-title{ font-size: 32px; }
}
