/* =========================================
   1. CONFIGURATION GLOBALE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #050505;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* =========================================
   2. FOND DYNAMIQUE (AURORA)
   ========================================= */
.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #050505;
  overflow: hidden;
  pointer-events: none;
}

.dynamic-background::before,
.dynamic-background::after {
  content: "";
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.dynamic-background::before {
  background: radial-gradient(circle, rgba(120, 50, 255, 0.4), transparent 70%);
  animation: moveBlob1 20s infinite alternate ease-in-out;
}

.dynamic-background::after {
  background: radial-gradient(circle, rgba(50, 100, 255, 0.4), transparent 70%);
  animation: moveBlob2 25s infinite alternate ease-in-out;
  top: 30%;
  left: 30%;
}

@keyframes moveBlob1 {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-20%, -60%) scale(1.2);
  }
}

@keyframes moveBlob2 {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-70%, -20%) scale(0.9);
  }
}

/* =========================================
   3. HEADER (AVEC FLOU PROGRESSIF)
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px 60px;
  z-index: 1000;
  pointer-events: none;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.8) 60%, rgba(5, 5, 5, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

header>* {
  pointer-events: auto;
}

.brand h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: white;
}

.brand span {
  display: block;
  color: #888;
  font-size: 13px;
  margin-top: 2px;
}

/* Switch Central */
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30px;
}

.toggle-switch {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 4px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background-color: #333;
  border-radius: 20px;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toggle-switch a {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  padding: 6px 20px;
  border-radius: 20px;
  transition: color 0.3s ease;
  display: block;
}

.toggle-switch a.active {
  color: white;
  font-weight: 500;
}

/* Liens Droite */
.nav-right a {
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  margin-left: 25px;
  transition: color 0.2s;
}

.nav-right a:hover {
  color: white;
}

/* =========================================
   4. LAYOUT PRINCIPAL
   ========================================= */
.main-slider {
  display: flex;
  width: 200vw;
  height: 100vh;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 1;
}

.view-work,
.view-info {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* =========================================
   5. VUE INFO (CV)
   ========================================= */
.view-work {
  display: flex;
  padding-top: 100px;
}

/* Sidebar */
.full-sidebar {
  width: 240px;
  height: 100%;
  padding: 40px 0 20px 40px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.full-sidebar ul {
  list-style: none;
}

.full-sidebar li {
  margin-bottom: 5px;
}

.nav-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #555;
  margin-top: 20px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  font-weight: bold;
}

.nav-link {
  text-decoration: none;
  color: #888;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

.nav-link.active {
  color: white;
  font-weight: 500;
}

.sub-nav {
  margin-left: 15px;
  border-left: 1px solid #333;
  padding-left: 15px;
}

/* Content */
.full-content {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 0 8% 100px 8%;
}

/* Sections */
.page-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 50px;
}

.hero h2 {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-section h3 {
  font-size: 30px;
  color: white;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-section p {
  font-size: 16px;
  color: #aaa;
  line-height: 1.6;
  max-width: 700px;
  margin-bottom: 20px;
}

/* Profil */
.profil-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.profil-text {
  flex: 1;
}

.profile-pic img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(50px) scale(0.9);
  transition: all 1.2s ease;
}

.profile-pic img.appear {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (max-width: 1000px) {
  .profil-content {
    flex-direction: column-reverse;
    text-align: center;
  }
}

/* Skills & Timeline */
.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  border: 1px solid #333;
  color: #ccc;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-item {
  border-left: 2px solid #333;
  padding-left: 20px;
  margin-bottom: 30px;
}

.timeline-item .date {
  color: #666;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.timeline-item strong {
  color: white;
  font-size: 18px;
}

/* --- VEILLE TECHNOLOGIQUE --- */
.veille-container {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.veille-column {
  flex: 1;
}

.veille-column h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Grille Outils */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: white;
  border-color: #666;
}

/* Liste Articles */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  /* Important : aligne l'icône en haut */
  gap: 20px;
  transition: 0.3s;
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #555;
  transform: translateX(5px);
}

.article-icon {
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border-radius: 10px;
  /* Carré arrondi au lieu de rond */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  border: 1px solid #333;
  flex-shrink: 0;
  /* Empêche l'icône de s'écraser */
}

.article-info {
  display: flex;
  flex-direction: column;
}

.article-info strong {
  display: block;
  color: white;
  font-size: 17px;
  margin-bottom: 8px;
}

/* Nouveau style pour la description */
.article-desc {
  color: #aaa;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.article-info span {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Responsive Veille */
@media (max-width: 900px) {
  .veille-container {
    flex-direction: column;
  }
}

/* Form */
/* =========================================
   8. SECTION CONTACT (DUAL COLUMN)
   ========================================= */

/* Le conteneur principal qui aligne les deux blocs */
.contact-container {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
  /* On élargit un peu pour que ça respire */
  margin-top: 20px;
  align-items: flex-start;
  /* Aligne les boites en haut */
}

/* Style commun aux deux colonnes */
.contact-column {
  flex: 1;
  /* Chaque colonne prend 50% de la place */
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #222;
}

/* Ajustement spécifique pour le formulaire */
#contact-form {
  background: transparent;
  /* On enlève le fond du form car la colonne l'a déjà */
  border: none;
  padding: 0;
  max-width: none;
  /* Le form prend toute la largeur de sa colonne */
}

/* --- STYLE DE LA COLONNE INFOS (DROITE) --- */
.contact-info-box h4 {
  color: white;
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.info-intro {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.icon-box {
  width: 45px;
  height: 45px;
  background: rgba(120, 64, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7840ff;
  font-size: 18px;
  border: 1px solid rgba(120, 64, 255, 0.3);
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-text span {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  font-weight: bold;
}

.info-text strong,
.info-text a {
  color: white;
  font-size: 16px;
  margin-top: 2px;
  transition: 0.3s;
}

.info-text a:hover {
  color: #7840ff;
}

/* Boutons sociaux en bas des infos */
.info-socials {
  display: flex;
  gap: 15px;
  margin-top: 35px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #111;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: 0.3s;
}

.social-btn:hover {
  background: #7840ff;
  color: white;
  transform: translateY(-3px);
  border-color: #7840ff;
}

/* --- RESPONSIVE --- */
/* Sur mobile/tablette, on empile les colonnes */
@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-column {
    width: 100%;
  }
}

#contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #222;
  max-width: 500px;
}

.form-group label {
  display: block;
  color: #aaa;
  margin-bottom: 5px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  outline: none;
  margin-bottom: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #666;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.5s;
}

.submit-btn:hover {
  transform: scale(1.05);
}

.submit-btn:active {
  transform: scale(0.96);
}

/* =========================================
   6. VUE PROJETS (DROITE)
   ========================================= */
.projects-scroll-container {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  padding-top: 150px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
}

.projects-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h2 {
  font-size: 42px;
  color: white;
  margin-bottom: 10px;
}

.projects-header p {
  color: #888;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

.project-card {
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #2a2a2a;

}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header h3 {
  font-size: 18px;
  color: white;
  font-weight: 600;
  margin: 0;
}

.card-header a {
  color: #666;
  font-size: 18px;
}

.card-header a:hover {
  color: white;
}

.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 20px;
}

.tech-stack span {
  font-size: 11px;
  color: #ccc;
  border: 1px solid #333;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.card-link {
  margin-top: 20px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

/* =========================================
   7. MODALE (VERSION SCROLLABLE)
   ========================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);

  overflow-y: auto;
  cursor: pointer;
}

.modal-content {
  margin: 50px auto;
  display: block;
  width: 80%;

  max-width: 900px;

  height: auto;
  max-height: none;

  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}


.close-modal {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);

  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
}

.close-modal:hover {
  color: #7840ff;
  background: rgba(255, 255, 255, 0.1);
}