@import url('https://fonts.cdnfonts.com/css/momcake');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
    
a{
  text-decoration: none;
  color: inherit;
}

body {
      margin: 0;
      font-family: "Poppins", sans-serif;
      background: #0D141F;
      color: #C2F3FF;
      transition: 0.3s;
    }

body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  width: 1100px;
  height: 1100px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(140, 90, 255, 0.25), transparent 70%);
  filter: blur(220px);
  animation: glowPulse 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Reflet bleu en haut (plus intense) */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(90, 220, 255, 0.25), transparent 70%);
  filter: blur(200px);
  z-index: -1;
  pointer-events: none;
}

/* Reflet latéral gauche (aqua) */
body::before,
body::after {}
body::before + .side-glow {
  content: "";
  position: fixed;
  top: 40%;
  left: -250px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.20), transparent 70%);
  filter: blur(180px);
  z-index: -1;
  pointer-events: none;
}

/* Génération automatique de l'élément side-glow */
body::after {
  content: "";
}

/* Animation harmonieuse (respiration) */
@keyframes glowPulse {
  0%   { transform: translateX(-50%) scale(1); }
  50%  { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}

    /* MODE CLAIR */
    body.light {
      background: #F1FAFD;
      color: #1D3E56;
    }

    /* NAVBAR */
    nav {
      width: 95%;
      display: flex;
      align-items: center;
      padding: 30px  !important;
    }

    /* Avatar */
    .nav-left img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      object-fit: cover;
    }
    .nav-left {
  display: flex;
  align-items: center;      /* 👉 Centre verticalement */
  gap: 25px;                /* 👉 Espacement avatar ↔ Home */
}

.home-link {
  text-decoration: none;
}

    /* Groupe droite */
.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

    /* Liens */
    .nav-links {
      display: flex;
      gap: 25px;
    }

nav a {
    font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #75C7F0; /* bleu cyan */
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s;
}

nav a:hover {
  color: #C2F3FF; /* violet */
}
/* ☀️ Mode clair : couleur des liens */
body.light nav a {
  color:#1D3E56; /* bleu foncé lisible */
}

body.light nav a:hover {
  color: #00749E; /* bleu plus clair */
}

/* 🌙 Fond de la navbar — sombre / clair */
nav {
  position: fixed;        /* 🔥 Fixe en haut */
  top: 0;
  left: 0;
  width: 95%;            /* occuper toute la largeur */
  display: flex;
  align-items: center;
  padding: 25px 0 25px 50px !important;
  z-index: 1000;          /* reste au-dessus du contenu */
  background: rgba(13, 20, 31, 0.7); /* fond discret */
  backdrop-filter: blur(10px);        /* effet glassmorphism */
  transition: 0.3s;
}
/* Mode clair */
body.light nav {
  background: rgba(255, 255, 255, 0.6);
}
.nav-controls {
  display: flex;
  gap: 25px;
}
.flag-icon,
.icon-moon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
  object-fit: contain;
  gap: 25px; 
}

/* Effet hover */
.flag-icon:hover,
.icon-moon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}


/* Mode clair : on assombrit un peu pour s’adapter */
body.light .icon-moon {
  filter: brightness(0.2);
}

    /* MAIN */
    .container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 250px 100px 250px 100px;
    }

    .right img {
      width: 350px;
      height: 350px;
      object-fit: cover;
      border-radius: 50%;
      background: linear-gradient(160deg, #5ce1e6, #8b5cf6);
      padding: 6px;
    }

    .socials a {
      padding: 10px 18px;
      background: #1e293b;
      border-radius: 8px;
      color: white;
      text-decoration: none;
      transition: 0.3s;
    }

    .socials {
      display: flex;
      gap: 15px;
    }

    .socials a:hover {
      background: #334155;
    }


    .skills-section {
  padding: 100px 0;
  text-align: center;
}

.skills-title {
  font-size: 40px;
  margin-bottom: 60px;
  color: #C2F3FF;
}

.skills-grid {
  display: grid;
  justify-content: center;       /* ✔ centre le grid */
  justify-items: center;         /* ✔ centre chaque block */
  align-items: start;
  gap: 40px;
  width: 100%;                   /* ✔ largeur auto */
  max-width: 1300px;             /* limite élégante */
  margin: auto;                  /* ✔ centre l’ensemble */
  padding: 0 20px;
}

.skill-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 25px;
  width: 100%;
  max-width: 260px;              /* ✔ même taille partout */
}

.skill-category {
  min-width: 180px;
}

.skill-category h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.skill-category ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-category li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 16px;
}

.skill-category img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* MODE CLAIR */
body.light .skills-title {
  -webkit-text-fill-color: #1D3E56;
}

body.light .skill-category h3 {
  color: #23394d;
}

/* Section */
.projects-section {
  padding: 120px 0;
  text-align: center;
}

.projects-title {
  font-size: 40px;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #5ce1e6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}



/* Top row: icon + link */
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-icon {
  width: 32px;
  height: 32px;
}

.project-link {
  font-size: 20px;
  text-decoration: none;
  color: #5ce1e6;
  transition: 0.2s;
}

.project-link:hover {
  color: #8b5cf6;
}

/* Title + description */
.project-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: white;
}

.project-card p {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* ✔ tags toujours en bas */
    min-height: 250px;
    height: 250px; /* ✔ même hauteur partout */
    padding: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 45px;                /* ✔ espace entre les cards */
  width: 100%;
  max-width: 1300px;        /* ✔ largeur max propre */
  margin: 0 auto;
  padding: 20px 30px;        /* ✔ espace interne */
  justify-items: center;
}

/* -------- CARD -------- */
.project-card {
  width: 100%;
  max-width: 380px;         /* ✔ Fixe pour éviter qu’elles se collent */
  min-height: 320px;        /* ✔ + de hauteur → tags ne dépassent plus */
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: rgba(17, 25, 40, 0.6);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(92,225,230,0.05);
  transition: 0.25s ease;
}

/* Hover */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(92,225,230,0.15);
}

/* -------- TAGS -------- */
.tags {
  display: flex;
  flex-wrap: wrap;        /* ✔ si ça dépasse → revient à la ligne */
  gap: 10px;
  margin-top: 15px;
}

.tags span {
  padding: 6px 14px;
  background: #5ce1e6;
  color: #000;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;    /* 🔥 évite que les tags s’étirent */
}


/* -------- MODAL OVERLAY -------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-out;
}

/* -------- MODAL BOX -------- */
.modal-content {
  background: rgba(17, 25, 40, 0.8);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(92, 225, 230, 0.2);
  backdrop-filter: blur(15px);
  width: 60%;
  max-width: 900px;
  animation: scaleIn 0.3s ease-out;
  position: relative;
}

/* -------- MODAL IMAGE (APERÇU) -------- */
/* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Modal box */
.modal-content {
  background: rgba(17, 25, 40, 0.85);
  padding: 25px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);

  width: 80%;              /* ← Avant : 60% */
  max-width: 1200px;       /* ← Plus large encore */
  animation: scaleIn 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.modal-img,
.modal-video {
  width: 100%;
  border-radius: 12px;
  display: none; /* affiché dynamiquement */
}

/* video style */
.modal-video {
  max-height: 85vh;
  background: black;
}

@keyframes scaleIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* -------- ANIMATIONS DE SCROLL -------- */

/* état invisible */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: 0.5s ease;
}

/* devient visible */
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* glow violet */
.scroll-glow {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition: 1s cubic-bezier(.17,.67,.38,1.35);
}

.scroll-glow.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  text-shadow: 0 0 25px rgba(140,90,255,0.45);
}


.burger {
  width: 30px;
  height: 22px;
  display: none !important;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: 3px;
  background: #75C7F0;
  border-radius: 6px;
  transition: 0.3s;
}

/* Animation croix */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ----- MENU MOBILE ----- */
.mobile-menu {
  position: fixed;
  top: 85px;
  right: -100%;
  width: 65%;
  height: calc(100% - 85px);
  background: rgba(17, 25, 40, 0.9);
  backdrop-filter: blur(12px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 35px;
  transition: 0.4s ease;
  z-index: 999;
}

.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  color: #C2F3FF;
}

/* menu ouvert */
.mobile-menu.open {
  right: 0;
}


/* ----- RESPONSIVE RULES ----- */

@media (max-width: 900px) {

  .burger { display: flex !important; }

  nav {
    width: 95%;
    padding: 20px 30px !important;
  }

  .nav-links { display: none; }

  .container {
    flex-direction: column;
    text-align: center;
    padding: 150px 20px 80px 20px;
    gap: 30px;
  }

  /* Photo en premier */
  .right {
    order: -1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .right img {
    width: 210px;
    height: 210px;
    margin-bottom: 10px;
  }

  .left { width: 100%; }

  .left h3.salut {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .left h1.title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 10px;
  }

  .left .desc {
    width: 95%;
    margin: auto;
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
  }

  /* Buttons socials */
  .socials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 10px auto;
  }

  .socials a {
    background: rgba(255,255,255,0.07);
    padding: 12px 0;
    font-size: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }

  /* Skills */
  .skills-grid {
    flex-direction: column;
    gap: 35px;
    width: 100%;
    padding: 0 20px;
  }

  .skill-category {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 20px 25px;
    width: 100%;
    max-width: 400px;
    margin: auto;
    text-align: left;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 90%;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .nav-controls { display: flex; }

  .flag-icon {
    width: 26px;
    height: 26px;
    margin-right: 5px;
  }
}

/* Très petits écrans */
@media (max-width: 500px) {
  .socials {
    grid-template-columns: 1fr;
  }
  .mobile-menu { width: 80%; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .skills-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .skill-category {
    width: 45%;
    max-width: none;
  }
  .projects-grid {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: auto;
  }

  .project-card {
    width: 100%;
    min-height: 330px;
  }
}


/* ---------------------------------------
   📱 TABLETTE LANDSCAPE — 900px à 1100px
--------------------------------------- */

@media (min-width: 900px) and (max-width: 1100px) {

  .container {
    padding: 180px 40px;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
    gap: 40px;
  }

   .projects-grid {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin: auto;
  }

  .project-card {
    min-height: 330px;
  }
}


/* ---------------------------------------
   💻 LAPTOP — 1100px à 1400px
--------------------------------------- */

@media (min-width: 1100px) and (max-width: 1400px) {

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 80%;
    gap: 40px;
  }

 .projects-grid {
    width: 85%;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: auto;
  }

  .project-card {
    min-height: 340px;
  }
}

/* ---------------------------------------
   🖥 GRAND ÉCRAN — 1400px à 1920px
--------------------------------------- */

@media (min-width: 1400px) and (max-width: 1920px) {

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
    width: 75%;
  }

 .projects-grid {
    width: 90%;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: auto;
  }

  .project-card {
    min-height: 350px;
  }
}


/* ---------------------------------------
   🖥 ULTRA-WIDE — >1920px
--------------------------------------- */

@media (min-width: 1920px) {

  body {
    zoom: 1.08;
  }

  .skills-grid {
    width: 65%;
  }

  .projects-grid {
    width: 80%;
    max-width: 1500px;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    margin: auto;
  }

  .project-card {
    min-height: 360px;
  }
}

/* -------- CONTACT FIX -------- */
.contact-section {
  padding: 120px 0;
  text-align: center;
}

.contact-title {
  font-size: 40px;
  margin-bottom: 60px;
  background: linear-gradient(90deg, #5ce1e6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CENTRAGE PROPRE */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* CARD STYLE (comme tes projets) */
.contact-form {
  width: 100%;
  max-width: 700px;

  background: rgba(17, 25, 40, 0.6);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(92,225,230,0.05);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* NOM + PRENOM */
.form-row {
  display: flex;
  gap: 15px;
}

.form-row input {
  flex: 1;
}

/* INPUTS CLEAN */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;

  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.04);
  color: #C2F3FF;

  font-family: "Poppins", sans-serif;
  font-size: 14px;

  outline: none;
  transition: 0.25s;
}

/* PLACEHOLDER */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(194, 243, 255, 0.5);
}

/* FOCUS EFFECT */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5ce1e6;
  box-shadow: 0 0 12px rgba(92,225,230,0.3);
}

/* TEXTAREA */
.contact-form textarea {
  resize: none;
}

/* BOUTON */
.contact-form button {
  padding: 14px;

  border: none;
  border-radius: 10px;

  background: linear-gradient(90deg, #5ce1e6, #8b5cf6);
  color: black;
  font-weight: 700;

  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(92,225,230,0.4);
}


/* cacher honeypot */
.hidden-field {
  display: none;
}

/* INPUT GROUP */
.input-group {
  position: relative;
  width: 100%;
}

/* INPUTS */
.input-group input,
.input-group textarea {
  width: 90%;
  padding: 20px 14px 12px 14px; /* 👈 important */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #C2F3FF;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition: 0.25s;
}

/* LABEL */
.input-group label {
  position: absolute;
  top: 18px; /* 👈 fix position */
  left: 14px;
  color: rgba(194, 243, 255, 0.5);
  font-size: 14px;
  pointer-events: none;
  transition: 0.25s;
}
/* ANIMATION */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 11px;
  color: #5ce1e6;
}

/* TEXTAREA */
.input-group textarea {
  resize: none;
}

/* BOUTON LOADER */
.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top: 2px solid black;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #5ce1e6, #8b5cf6);
  color: black;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

button.loading .btn-text {
  display: none;
}

button.loading .loader {
  display: inline-block;
}
/* -------- RESPONSIVE -------- */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form {
    padding: 25px;
  }
}
@media (max-width: 768px) {

  .contact,
  .projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .project-card,
  .contact-form {
    width: 100%;
    max-width: 350px;
    margin: 10px auto;
  }


}