/* RESET */
* {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* THEME VARIABLES */
body {
  --bg: #F9FAFB;
  --text: #0E1116;
  --card: #FFFFFF;
  --line: #E5E7EB;
  --accent: #1D1F22;

  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
}

body.dark {
  --bg: #0E1116;
  --text: #F9FAFB;
  --card: #111317;
  --line: #1F2937;
  --accent: #9CA3AF;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  padding: 18px 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

body.dark .navbar {
  background: rgba(0,0,0,0.35);
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* BURGER */
.burger {
  width: 28px;
  height: 20px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.burger span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* RESPONSIVE NAV */
@media (max-width: 850px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px; right: -100%;
    flex-direction: column;
    background: var(--card);
    width: 70%;
    height: calc(100vh - 70px);
    padding: 40px;
    gap: 24px;
    transition: 0.3s ease;
  }
  .nav-links.active { right: 0; }
}

/* HERO — avec image + overlay sombre */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 0 24px;

  background-image: url("assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); 
  z-index: 1;
}

#hero * {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 300;
  color: #fff;
}

#hero h2 {
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 28px;
  color: #e5e5e5;
}

/* BUTTONS — VERSION CORRIGÉE */
/* 🔥 Style modernisé et intuitif pour tous les boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;
  margin: 12px 0;

  background-color: #4A63FF; /* bleu moderne */
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;

  border: none;
  border-radius: 14px;

  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 🌟 Effet au survol : plus clair + léger zoom */
.btn:hover {
  background-color: #627BFF;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}

/* 👉 Effet clic */
.btn:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
}


.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* Outline button */
.btn-ghost {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

body.dark .btn {
  background: var(--card);
  color: var(--text);
}

body.dark .btn-ghost {
  border-color: var(--accent);
  color: var(--accent);
}

body.dark .btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
}

/* SECTIONS */
section {
  padding: 110px 42px;
}

h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 40px;
}

.text-center { text-align: center; }
.max-600 { max-width: 600px; margin: auto; }

/* SKILLS */
.skills-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.skill-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: 0.2s;
}
.skill-box:hover {
  background: rgba(0,0,0,0.03);
}

/* PROJECTS */
.projects-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.project {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.btn-center {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* EXPERIENCE */

.experiences-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.experiences {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* .project img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
} */

/* CONTACT */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form input,
form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--line);
}

/* Centrage du bouton CV */
#cv {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#cv .btn {
  display: block;
  margin: 0 auto;
}
#cv {
  text-align: center;
}
