/* === RESET MARGINS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* === TYPOGRAPHIES === */
@font-face {
  font-family: 'ApfelGrotezk';
  src: url('../assets/fonts/ApfelGrotezk-Fett.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../assets/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* =================================================================== A NE PAS TOUCHER ======================================================================================== */

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #F8EACE;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* === LOGO === */
.logo img {
  height: 50px;
}

/* === NAVIGATION DESKTOP === */
.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #000;
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  transition: color 0.3s ease;
  line-height: 1.5;
}

.main-nav a:hover {
  color: #9F02BE;
}

/* === THEME TOGGLE === */
.theme-toggle {
  position: relative;
  width: 70px;
  height: 35px;
  background-color: #9F02BE; /* neon pink en light mode */
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 3px;
  transition: background-color 0.3s ease;
}

.theme-toggle .toggle-sun,
.theme-toggle .toggle-moon {
  font-size: 20px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.theme-toggle .toggle-sun {
  margin-left: 8px;
  color: #000; /* black sun in light mode */
}

.theme-toggle .toggle-moon {
  margin-left: auto;
  margin-right: 8px;
  color: #fff; /* white moon in light mode */
}

.theme-toggle .toggle-slider {
  position: absolute;
  top: 3.5px; /* centré verticalement */
  left: 3px;
  width: 28px;
  height: 28px;
  background-color: #fff; /* thumb blanc */
  border-radius: 50%;
  border: 1px solid #000; /* contour noir */
  transition: transform 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

/* === MENU BURGER === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .burger {
  width: 100%;
  height: 3px;
  background-color: #9F02BE; /* neon pink pour light mode */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  width: 100%;
  background-color: #F8EACE;
  transform: translateY(-100%);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.mobile-menu li {
  text-align: center;
  margin: 1rem 0;
}

.mobile-menu a {
  text-decoration: none;
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  font-size: 1.2rem;
  color: #000;
  transition: color 0.3s ease;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  /* Center the theme toggle on mobile */
  .theme-toggle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* =================================================================== A NE PAS TOUCHER ======================================================================================== */

/* === TYPOGRAPHY === */
body {
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  color: #000000;
  background-color: #ffffff;
  line-height: 1.6;
}

/* ============================================ INTRO SECTION === */
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding-top: 120px;
}

/* === TEXT SIDE === */
.intro__text {
  flex: 1; /* smaller proportion */
  text-align: left;
}

.intro__text h1 {
  font-family: 'ApfelGrotezk-Regular', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.intro__text p {
  font-family: 'PlusJakartaSans-Regular', sans-serif;
  font-size: 1rem;
  color: #000000;
}

/* === HIGHLIGHT (light mode) === */
.highlight {
  background-color: #FFC857;
  padding: 0.1em 0.25em;
  border-radius: 0; /* removed rounded corners */
}

/* === IMAGE SIDE === */
.intro__image {
  flex: 1.5; /* increased proportion for image */
  display: flex;
  justify-content: center;
}

.intro__image img {
  width: 100%;
  max-width: 700px; /* increased size limit */
  height: auto;
  border-radius: 0; /* removed rounded corners */
  object-fit: cover;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: left;
  }

  .intro__image {
    margin-top: 2rem;
  }

  .intro__text h1 {
    font-size: 2.2rem;
  }

  .intro__image img {
    max-width: 100%;
  }
}

/* ============================================ INTRO SECTION === */

/* ================= SKILLS SECTION ================= */
.skills {
  max-width: var(--max-width);
  margin: 2rem auto 6rem;
  padding: 0 1.25rem;
}

.skills__list {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 180px;
}

.skill__icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.skill__keywords {
  font-family: 'PlusJakartaSans-Bold', sans-serif;
  font-weight: bold;
  color: #000000;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Responsive: stack skills vertically on small screens */
@media (max-width: 768px) {
  .skills__list {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .skill__icon {
    width: 80px;
    height: 80px;
  }
}
/* ================= SKILLS SECTION ================= */
/* === HEADINGS === */
h2, h3 {
  font-family: 'ApfelGrotezk', sans-serif;
}
/* ================= PROJECT SECTION ================= */
.projects {
  max-width: 1200px;
  margin: 6rem auto; /* Added margin-top to separate from skills */
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.project {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding: 2rem 2rem;
  padding-bottom: 0px;
  padding-top: 0px;
}
.project--left .project__image {
  order: 0;
}
.project--left .project__content {
  order: 1;
}
.project--right .project__image {
  order: 1;
}
.project--right .project__content {
  order: 0;
}
.project__image {
  width: 100%;
  max-width: 500px;
  border-radius: 0; /* Removed rounded corners */
  object-fit: cover;
}
.project__content {
  flex: 1;
}
.project__title-h1 {
  font-family: 'ApfelGrotezk-Regular', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  padding: 2rem 2rem;
}
.project__title {
  font-family: 'ApfelGrotezk-Regular', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.project__intro {
  font-size: 1rem;
  margin-bottom: 10px;
}
.project__skills {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}
.project__skills li {
  font-family: 'PlusJakartaSans', sans-serif;
  font-weight: 700;
  padding: 5px 10px;
  background-color: #FFC857; /* Light mode highlight */
  border-radius: 0;
}

/* === BUTTON === */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'PlusJakartaSans', sans-serif;
  font-weight: 700;
  color: #fff;
  background-color: #9F02BE; /* Neon rose */
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.btn:hover {
  background-color: #77019a;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .project {
    flex-direction: column;
    text-align: center;
  }
  .project__skills {
justify-content: center;
}
  .project--right .project__content,
  .project--left .project__content {
    order: 1;
  }
  .project--right .project__image,
  .project--left .project__image {
    order: 0;
  }
  .project__image {
    max-width: 100%;
  }
}

/* === FOOTER STYLES === */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: #F8EACE; /* Light mode background */
  color: #000; /* Light mode text */
  font-family: 'PlusJakartaSans', sans-serif;
}

/* Footer left: CV button */
.footer-button {
  padding: 0.8rem 1.5rem;
  background-color: #9F02BE; /* Light mode button */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}
.footer-button:hover {
  background-color: #7a0190;
  text-decoration: none;
}

/* Footer center: contact info */
.footer-center p {
  margin-bottom: 0.5rem;
}
.footer-center a {
  color: inherit;
  text-decoration: none;
}
.footer-center a:hover {
  text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

/* ----------------------------------------------------------- A propos --- */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 150px;
  padding-bottom: 150px;
}

/* --- 1. Intro : texte + photo côte à côte --- */
.intro-profil {
  display: flex;
  flex-wrap: wrap; /* permet de passer en colonne sur mobile */
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.profil-title-h1 {
  font-family: 'ApfelGrotezk-Regular', sans-serif;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  
}

.intro-profil-text {
  flex: 1 1 55%;
  align-items: flex-start;
}

.intro-profil-photo {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  border-radius: 0;
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1rem;
}

/* --- 2. Grille à deux colonnes (sections suivantes) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding-top: 20px;
}

/* Espacement interne des colonnes */
.about-left,
.about-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .intro-profil {
    flex-direction: column-reverse;
    text-align: left;
  }

  .about-grid {
    grid-template-columns: 1fr; /* une seule colonne sur mobile */
  }

  .profile-photo {
    max-width: 200px;
  }
}

/* Container for images */
.explanatory__images {
  display: grid;
  grid-template-columns: 1fr; /* mobile by default */
  gap: 20px;
  padding: 20px;
  padding-bottom: 150px;
}

/* Individual image styling */
.explanatory__image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive for larger screens */
@media (min-width: 768px) {
  .explanatory__images {
    grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
  }
}
