body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
  /* background: linear-gradient(90deg, #77AFE9, #76b8ff81 , #bbb8ff); */
    background: radial-gradient(ellipse at top left, #77aee9c0, transparent 40%), radial-gradient(ellipse at bottom right, #bcb8ff90, transparent 40%), var(--bg);
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden; 
    position: relative;
    line-height: 1.6;
    /* background-color: var(--bg); */
    flex-direction: column;
    align-items: center;
    width: 100%;
    
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: radial-gradient(2px 2px at 20px 30px, white 50%, transparent), radial-gradient(2px 2px at 200px 100px, white 50%, transparent), radial-gradient(1px 1px at 400px 50px, white 50%, transparent), radial-gradient(1px 1px at 600px 300px, white 50%, transparent), radial-gradient(2px 2px at 800px 200px, white 50%, transparent), radial-gradient(1px 1px at 1000px 400px, white 50%, transparent), radial-gradient(1px 1px at 1200px 150px, white 50%, transparent); */
    background-repeat: repeat;
    animation: moveStars 200s linear infinite;
    opacity: 0.4;
    z-index: -1;
}

/* =====================
   RESET & VARIABLES
===================== */
:root {
  --bg: #F5F5F7;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #000000;
  --border: #e5e7eb;
  --radius: 14px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}



/* =====================
   GLOBAL
===================== */
section {
  padding: 100px 20px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

p {
  color: var(--muted);
  max-width: 700px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   HEADER
===================== */

header {
  /* position: relative;
  margin-top: 5px;
  margin-left: 10px;
  margin-right: 10px; */
  width: 100%;
  margin: auto;
  display: flex;
  margin-top: 15px;
  justify-content: center;
  
}
nav {
  position: fixed;
  height: 60px;
  width: 100%;
  background: #ddddfe33;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  z-index: 100;
  border-radius: 35px;
  
}

nav {
  max-width: var(--max-width);
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 24px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.theme-toggle {
  padding: 15px 20px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s;
  width: fit-content;
}

.theme-toggle a {
  color: white;
  padding: none;
  margin: 0;

}

.theme-toggle a:hover {
  color: black;
  padding: none;
  margin: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #77AFE9, #76b8ff81 , #bbb8ff);
}



/* =====================
   HERO
===================== */
/*  */


#home {
 
  display: flex;
  align-items: center;
  width: 90%;
  padding-left: 50px;
  padding-right: 50px;
  /* padding: 60px; */
  margin: auto;
 
 
}

.gradient-text {
  background: linear-gradient(90deg, #77AFE9, #76b8ff81 , #bbb8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#home h1 {
  font-size: 60px;
  line-height: normal;
}


#home p {
  font-size: 19px;
}

#home .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* justify-content: center;
  align-items: center; */
  /* margin-right: 30px; */
  padding-left: 80px;
  width: 50%;
}

.buttons{
  display: flex;
  gap: 20px;
  }

.container button{
  width: fit-content;
}

.picture {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
 
  /* margin-left: 30px; */
}

#home img {
  max-width: 400px;
  border-radius: 50%;
  border: 4px solid var(--border);
  
}
/* =====================
   ABOUT
===================== */
#about {
  display: flex;
  align-items: center;
  width: 90%;
  margin: auto;
}


#about p {
  font-size: 1.05rem;
  color: var(--text);
}

#about .container {
  display: flex;
  gap: 20px;
  
  justify-content: center;
}

.about-content {
  
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #ddddfe33;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  max-width: 50%;
  transition: transform 0.3s;
}

.about-content:hover {
  transform: translateY(-5px);}

.right-content{
  display: flex;
  flex-direction: column;
  gap: 10px;
   max-width: 50%;
}

.second-content {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #ddddfe33;
  backdrop-filter: blur(10px);
    max-height: fit-content;
  transition: transform 0.3s;
} 

.second-content:hover {
  transform: translateY(-5px);}


.third-content {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: #ddddfe33;
  backdrop-filter: blur(10px);
  max-height: fit-content;
  transition: transform 0.3s;
}

li{
  margin-left: 20px;
}

.third-content:hover {
  transform: translateY(-5px);
}

/* =====================
   SKILLS
===================== */
#skills {
  display: flex;
  align-items: center;
  width: 100%;
  margin: auto;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); */
  gap: 20px;
}

#skills h2 {
  /* width: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 30px;
  
}

/* .skill {
  background: white;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s;
} */

.skill:hover {
  transform: translateY(-5px);
}

.skills-slider {
  overflow: hidden;
  cursor: grab;
}

.skills-slider:active {
  cursor: grabbing;
}

.skills {
  display: flex;
  gap: 15px;
  user-select: none;

}

.skill {
  min-width: 180px;
  padding: 15px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);

  
}

.skill p {
  
  font-size: 0.95rem;
  color: var(--text);
}

.skill img {
  width: 40px;
  margin-bottom: 10px;
}





/* =====================
   PROJECTS
===================== */

#projects {
  display: flex;
  align-items: center;
  width: 90%;
  margin: auto;
}

#projects img {
  border-radius: 14px 14px 0 0;
  width: 100%;

}


#projects h2 {
  width: 100%;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  font-size: 1.9rem;
  margin-bottom: 30px;
}

.project-info {
  margin-top: 15px;
  padding: 25px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.project h3 {
  margin-bottom: 10px;
}

.badge {
  display: flex;
  
  gap: 5px;
}

.badge span {
  display: inline-block;
  padding: 7px 15px;
  background: var(--bg);
  color: rgb(0, 0, 0);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.90rem;
  margin-top: 10px;
  gap: 7px; 
}
/* =====================
   TIMELINE
===================== */
#timeline {
  
  align-items: center;
  width: 90%;
  margin: auto;
}

#timeline h2 {
  width: 100%;
  font-size: 1.9rem;
  margin-bottom: 30px;
}

.timeline {
  /* border-left: 2px solid white; */
  padding-left: 30px;
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  background: #ffffffa0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.3s;
}

.timeline-item:hover {
  transform: translateY(-5px);
}
/* 
.timeline-item::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
} */

/* =====================
   CONTACT
===================== */
form {
  max-width: 600px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: inherit;
}

button {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s;
}

button:hover {
  transform: translateY(-2px);
}

/* =====================
   FOOTER
===================== */
footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 
DOUGHNUT MAITRISE */

/* DOUGHNUT */
.skill-chart {
  width: 120px;
  text-align: center;
  position: relative;
}

svg {
  transform: rotate(-90deg);
}

circle {
  fill: none;
  stroke-width: 10;
}

circle.bg {
  stroke: #eee;
}

/* Base */
circle.progress {
  stroke-dasharray: 314; /* 2πr → 2 * 3.14 * 50 */
  transition: stroke-dashoffset 0.6s ease;
}

/* Couleurs + niveaux */

/* 85% */
circle.green {
  stroke: #3dff95;
  stroke-dashoffset: calc(314 - (314 * 100) / 100);
}

/* 60% */
circle.orange {
  stroke: #ff9f3d;
  stroke-dashoffset: calc(314 - (314 * 50) / 100);
}

/* 35% */
circle.red {
  stroke: #ff4d4d;
  stroke-dashoffset: calc(314 - (314 * 30) / 100);
}

.percent {
  position: absolute;
  top: 42px;
  left: 0;
  width: 100%;
  font-weight: bold;
  font-size: 18px;
}

/* ===== Contact Card ===== */

.contact-card {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(180deg, #8dc2fa, #76b8ff81 , #bbb8ff);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-align: center;
    /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #212121;
}

.contact-description {
    font-size: 14px;
    color: #212121;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-info {
    text-align: left;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #212121;
}

.contact-info i {
    color: #13c0d7;
    font-size: 16px;
    min-width: 20px;
}

/* ===== Responsive ===== */

@media (max-width: 480px) {
    .contact-card {
        margin: 30px 20px;
        padding: 25px;
    }

    .contact-image {
        width: 100px;
        height: 100px;
    }

    .contact-card h3 {
        font-size: 20px;
    }
}




/* =====================================
   MOBILE RESPONSIVE – VERSION COMPLETE
===================================== */

@media (max-width: 768px) {

  /* ========= NAVIGATION ========= */
  nav {
    height: auto;
    padding: 15px;
  
    width: 95%; 
    border-radius: 35px;
  }

  nav strong {
    font-size: 0.9rem;
  }

  nav div {
    display: none; /* cache les liens pour mobile simple */
  }

  .theme-toggle {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  /* ========= HERO ========= */

  #home {
    flex-direction: column;
    padding: 85px 20px;
    width: 100%;
    text-align: center;
  }

  #home .container {
    width: 100%;
    padding: 0;
    align-items: center;

  }

  #home h1 {
    font-size: 2rem;
  }

  #home p {
    font-size: 1rem;
  }

  .buttons {
    align-items: center;
    justify-content: center;
    width: 100%;
    
  }

  .buttons button { 
    padding: 10px 15px;
  font-size: 0.9rem; width: fit-content;
  }

  .picture {
    width: 100%;
    margin-top: 30px;
  }

  #home img {
    max-width: 280px;
  }

  /* ========= ABOUT ========= */

  #about {
    width: 100%;
    padding: 40px 20px;
  }

  #about .container {
    flex-direction: column;
  }

  .about-content,
  .right-content {
    max-width: 100%;
  }

  .badge {
    flex-wrap: wrap;
  }

  /* ========= SKILLS ========= */

  #skills {
    padding: 40px 20px;
  }

  #skills .container { align-items: center; 
  width: 90%;}

  #skills h2 { font-size: 2rem; }

  .skill {
    min-width: 150px;
  }

 

  /* ========= PROJECTS ========= */

  #projects {
    width: 100%;
    padding: 40px 20px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  /* ========= TIMELINE ========= */

  #timeline {
    width: 100%;
    padding: 40px 20px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline-item {
    padding: 15px;
  }

  /* ========= CONTACT ========= */

  form {
    width: 100%;
  }

  input,
  textarea {
    font-size: 0.9rem;
  }

  button {
    width: 100%;
  }

}
