/* Reset global */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. Variables globales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #f8f9fa;
  --text-color: #2d3436;
  --linkedin-blue: #0077B5;
  --linkedin-blue-light: #0099ff;
  --gradient-primary: linear-gradient(135deg, #2c3e50, #3498db);
  --gradient-secondary: linear-gradient(135deg, #e74c3c, #f39c12);
  --gradient-linkedin: linear-gradient(145deg, var(--linkedin-blue), var(--linkedin-blue-light));
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 2. Layout de base */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100vw;
}

/* 3. Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--gradient-primary);
  padding: 1rem 0;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-nav__list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 1rem 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(10px);
}

.main-nav__link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.main-nav__link:hover {
  background: var(--gradient-primary);
  color: white;
}

/* Menu Hamburger (caché par défaut) */
.menu-toggle {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
  }

  .main-nav {
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .main-nav__list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--background-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    z-index: 5;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
  }

  .main-nav__list.active {
    display: flex;
  }

  .main-nav__item {
    width: 100%;
    max-width: 300px;
  }

  .main-nav__link {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
  }

  /* Animation du hamburger */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--secondary-color);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--secondary-color);
  }
}

/* Ajustements pour très petits écrans */
@media (max-width: 480px) {
  .main-nav {
    padding: 0.5rem;
    width: 100%;
    max-width: 100vw;
  }

  .main-nav__list {
    padding: 1rem;
    width: 100vw;
    max-width: 100%;
  }

  .main-nav__link {
    padding: 0.8rem;
    font-size: 1rem;
  }
}

/* 4. Layout principal */
body > * {
  grid-column: 2;
  width: 100%;
}

/* 5. Sections communes */
.section {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

/* 6. Media Queries */
@media screen and (max-width: 768px) {
  body {
    grid-template-columns: minmax(0.5rem, 2.5vw) minmax(auto, 95vw) minmax(0.5rem, 2.5vw);
  }

  .main-nav__list {
    flex-direction: column;
    padding: 0.8rem;
    gap: 0.5rem;
  }

  .section {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem auto;
  }
}

/* 7. Animations */
.fadeIn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.fadeIn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Utilitaires */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Header Content (section accueil) */
.header__content {
  text-align: center;
  padding: 2rem;
}

.header__profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: var(--box-shadow);
}

.header__title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.header__subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* Tech Stack Section */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.tech-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tech-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.tech-card__icon .material-icons {
  font-size: 32px;
  color: white;
}

.tech-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.tech-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .tech-stack {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .tech-card {
    padding: 1.5rem;
  }
}

/* Project Showcase Section */
.projects-showcase {
  padding: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card__image {
  width: 180px;
  height: auto;
  border-radius: 10px;
}

.project-card__content {
  padding: 0;
}

.project-card__content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.project-card__link:hover {
  transform: translateX(5px);
  color: white;
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-card__image {
    margin: 0 auto;
  }
}

/* Achievement Box */
.achievement-box {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: var(--box-shadow);
}

/* Footer (déjà présent mais ajusté) */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: var(--gradient-primary);
  color: white;
}

.footer-content {
  text-align: center;
}

.footer__link {
  color: white;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.footer__link:hover {
  border-color: white;
}

/* 2. Créer une classe commune pour les conteneurs */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 3. Appliquer aux sections spécifiques */
.section,
.curriculumVitae-container,
#quote-slider {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Availability Toggle */
.availability-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.availability-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:disabled + .slider {
    opacity: 0.7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Vision Section */
.vision-page {
    padding-top: 2rem;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.vision-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.vision-card:hover {
    transform: translateY(-5px);
}

.vision-card .material-icons {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.vision-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.vision-conclusion {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.vision-conclusion .material-icons {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.vision-conclusion p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .vision-cards {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 2rem;
    }

    .vision-card {
        padding: 1.5rem;
    }
}

/* Qui suis-je Section */
.qui-suis-je-page {
    padding-top: 2rem;
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    text-align: left;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-card .material-icons {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.profile-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.profile-card p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .profile-cards {
        grid-template-columns: 1fr;
    }

    .profile-card {
        padding: 1.8rem;
    }
}

/* Style pour le lien actif */
.main-nav__link.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.main-nav__link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
}
