/* ==================== BASE ==================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

body {
  background: #1f242d;
  color: #fff;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1f242d; }
::-webkit-scrollbar-thumb { background: #7cf03d; border-radius: 3px; }

/* ==================== BURGER MENU ==================== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 101;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #7cf03d;
  border-radius: 2px;
  transition: all .3s ease;
  transform-origin: center;
}

/* Croix quand ouvert */
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  padding: 22px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(31, 36, 45, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 240, 61, 0.12);
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

.navbar .logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.navbar .logo span { color: #7cf03d; }

.navbar ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar ul li a {
  font-weight: 500;
  font-size: 15px;
  transition: color .3s;
  color: rgba(255,255,255,0.8);
}

.navbar ul li.active a,
.navbar ul li a:hover {
  color: #7cf03d;
}

/* ==================== HOME ==================== */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-height: 100vh;
  padding: 100px 9% 60px;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
  position: relative;
  padding-top: calc(var(--navbar-height) + 40px); 
}

.home::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(124,240,61,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.home-info { flex: 1; }

.home-info h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.home-info h2 {
  font-size: 32px;
  color: aliceblue;
  margin-bottom: 20px;
  height: 44px;
  overflow: hidden;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.7px #7cf03d;
  white-space: nowrap;
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  color: #7cf03d;
  border-right: 2px solid #7cf03d;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(26) infinite;
}

.home-info p {
  font-size: 17px;
  text-align: justify;
  font-weight: 400;
  margin: 20px 0 30px;
  line-height: 1.85;
  opacity: 0.85;
  max-width: 560px;
}

.home-info .btn-sci {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 34px;
  background: #7cf03d;
  border: 2px solid #7cf03d;
  border-radius: 40px;
  font-size: 15px;
  color: #1f242d;
  font-weight: 700;
  transition: all .3s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: transparent;
  color: #7cf03d;
  box-shadow: 0 0 22px rgba(124,240,61,0.4);
}

.home-info .btn-sci .sci {
  display: flex;
  gap: 14px;
}

.home-info .btn-sci .sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #7cf03d;
  border-radius: 50%;
  font-size: 22px;
  color: #7cf03d;
  transition: all .3s;
}

.home-info .btn-sci .sci a:hover {
  background: #7cf03d;
  color: #1f242d;
  box-shadow: 0 0 16px rgba(124,240,61,0.5);
  transform: translateY(-3px);
}

/* ==================== HOME IMAGE ==================== */
.home-img { flex: 0 0 auto; }

.home-img .img-box {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  background: conic-gradient(transparent, transparent, transparent, #7cf03d);
  animation: rotate-border 8s linear infinite;
  border-radius: 50%;
}

.home-img .img-box::after { animation-delay: -4s; }

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1f242d;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ==================== ABOUT ==================== */
#about {
  padding: 90px 9%;
  background: #0d1017;
}

.propos {
  text-align: center;
  margin-bottom: 60px;
}

.propos h1 {
  font-size: 48px;
  font-weight: 800;
  color: #7cf03d;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.propos h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.about-column { display: flex; flex-direction: column; }

.column-title {
  font-size: 26px;
  font-weight: 700;
  color: #7cf03d;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(124, 240, 61, 0.25);
  position: relative;
}

.column-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #7cf03d;
}

.qui-suis-je .presentation-text {
  background: rgba(255,255,255,0.04);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(124,240,61,0.1);
}

.presentation-text p {
  margin-bottom: 1.2rem;
  line-height: 1.85;
  color: rgba(240,244,255,0.8);
  font-size: 15.5px;
  text-align: justify;
}

.presentation-text p:last-child { margin-bottom: 0; }

.education-container { display: flex; flex-direction: column; gap: 18px; }

.education-item {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(124,240,61,0.1);
  transition: all .3s ease;
}

.education-item:hover {
  transform: translateX(6px);
  border-color: rgba(124,240,61,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.education-header {
  background: rgba(124,240,61,0.08);
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(124,240,61,0.15);
}

.annees {
  font-size: 13px;
  font-weight: 700;
  color: #7cf03d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.education-header h3 {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.education-content { padding: 1.2rem 1.5rem; }

.education-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: #7cf03d;
  margin-bottom: 5px;
}

.adresschool {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-size: 13px;
}

/* ==================== PORTFOLIO / CERTIFICATIONS ==================== */
#portfolio {
  padding: 90px 9%;
  background: rgba(0,0,0,0.25);
}

.portfolio-header {
  text-align: center;
  margin-bottom: 60px;
}

.portfolio-header h1 {
  font-size: 48px;
  color: #7cf03d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.portfolio-header h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

.portfolio-header p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ==================== CAROUSEL ==================== */
.certifications-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 70px;
}

/* Boutons navigation — positionnés sur les côtés du container */
.carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(124,240,61,0.18);
  border: 2px solid #7cf03d;
  border-radius: 50%;
  color: #7cf03d;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #7cf03d;
  color: #1f242d;
  box-shadow: 0 0 20px rgba(124,240,61,0.5);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  height: 530px;
}

.certification-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.certification-image {
  width: 88%;
  max-width: 580px;
  height: 340px;
  background: rgba(0,0,0,0.4);
  border-radius: 14px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 2px solid rgba(124,240,61,0.25);
  overflow: hidden;
  position: relative;
}

.certification-image::after {
  content: '🔍';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 38px;
  background: rgba(124,240,61,0.92);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
  pointer-events: none;
}

.certification-image:hover::after { transform: translate(-50%, -50%) scale(1); }

.certification-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

.certification-image:hover { border-color: #7cf03d; box-shadow: 0 15px 40px rgba(124,240,61,0.35); }
.certification-image:hover img { transform: scale(1.06); }

.certification-info {
  text-align: center;
  width: 100%;
  max-width: 580px;
  padding: 18px 22px;
  background: rgba(0,0,0,0.28);
  border-radius: 14px;
  border: 1px solid rgba(124,240,61,0.1);
}

.certification-title { color: #7cf03d; font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.certification-desc { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.6; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.indicator {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all .3s;
}

.indicator.active,
.indicator:hover { background: #7cf03d; }
.indicator.active { transform: scale(1.25); }

.carousel-counter {
  text-align: center;
  color: #7cf03d;
  font-size: 16px;
  font-weight: 600;
  background: rgba(124,240,61,0.1);
  padding: 7px 20px;
  border-radius: 20px;
  display: inline-block;
  margin: 18px auto 0;
  border: 1px solid rgba(124,240,61,0.2);
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  animation: fadeIn .3s ease;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn .3s ease;
}

.modal-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(124,240,61,0.35);
  border: 3px solid #7cf03d;
  display: block;
}

.close {
  position: absolute;
  top: 20px; right: 20px;
  color: #7cf03d;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: all .3s;
  z-index: 1001;
  background: rgba(31,36,45,0.85);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #7cf03d;
  line-height: 1;
}

.close:hover { background: #7cf03d; color: #1f242d; transform: rotate(90deg); }

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #7cf03d;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
  transition: all .3s;
  background: rgba(31,36,45,0.9);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #7cf03d;
}

.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { background: #7cf03d; color: #1f242d; }

.counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #7cf03d;
  background: rgba(31,36,45,0.95);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #7cf03d;
  box-shadow: 0 5px 20px rgba(124,240,61,0.3);
  white-space: nowrap;
}

/* ==================== PROJECTS ==================== */
#projects {
  padding: 90px 9%;
  background: #1f242d;
}

#projects h1 {
  font-size: 48px;
  color: #7cf03d;
  text-align: center;
  margin-bottom: 60px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  width: 100%;
}

#projects h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

#projects .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

#projects .rounded-lg {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,240,61,0.18);
  border-radius: 16px;
  overflow: hidden;
  transition: all .35s;
  display: flex;
  flex-direction: column;
}

#projects .rounded-lg:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(124,240,61,0.2);
  border-color: #7cf03d;
}

.project-preview {
  width: 100%;
  border-bottom: 1px solid rgba(124,240,61,0.12);
  overflow: hidden;
  background: #0d1117;
  line-height: 0;
}

.preview-svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

#projects .rounded-lg:hover .preview-svg {
  transform: scale(1.03);
}

#projects .p-6 {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#projects h5 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.text-gray-700 {
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  font-size: 14px;
  flex: 1;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: #7cf03d;
  background: rgba(124,240,61,0.1);
  padding: 4px 11px;
  border-radius: 50px;
  border: 1px solid rgba(124,240,61,0.25);
}

.project-links { display: flex; gap: 10px; flex-wrap: wrap; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  transition: all .25s;
}

.project-link.primary { background: #7cf03d; color: #1f242d; }
.project-link.primary:hover { box-shadow: 0 0 18px rgba(124,240,61,0.5); transform: translateY(-2px); }
.project-link.secondary { border: 1.5px solid rgba(124,240,61,0.35); color: rgba(255,255,255,0.75); }
.project-link.secondary:hover { border-color: #7cf03d; color: #7cf03d; background: rgba(124,240,61,0.08); }

/* ==================== SKILLS ==================== */
.skills {
  padding: 90px 9%;
  background: #0d1017;
}

.skills-title {
  font-size: 48px;
  color: #7cf03d;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.skills-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

.skills-desc {
  text-align: center;
  max-width: 640px;
  margin: 36px auto 56px;
  opacity: 0.75;
  font-size: 17px;
  line-height: 1.7;
}

.skills-group { margin-bottom: 52px; }

.skills-group h3 {
  font-size: 18px;
  color: #7cf03d;
  margin-bottom: 24px;
  padding-left: 18px;
  border-left: 4px solid #7cf03d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 18px;
}

.skill-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(124,240,61,0.22);
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  transition: all .3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: #7cf03d;
  background: rgba(124,240,61,0.08);
  box-shadow: 0 10px 28px rgba(124,240,61,0.25);
}

.skill-card i, .skill-card .fa-brands, .skill-card .fa-solid {
  font-size: 44px;
  color: #7cf03d;
}

/* Images et SVG dans les skill cards */
.skill-card .skill-img,
.skill-card .skill-svg {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.skill-card span { font-size: 14px; font-weight: 600; color: #fff; }

/* Soft skills */
.soft-skills-minimal {
  margin-top: 50px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(124,240,61,0.15);
}

.soft-skills-minimal h3 {
  font-size: 22px;
  color: #7cf03d;
  margin-bottom: 28px;
  font-weight: 700;
  border-left: none;
  padding-left: 0;
}

.soft-skills-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
}

.soft-skill-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(124,240,61,0.18);
  transition: all .3s;
  min-width: 110px;
}

.soft-skill-mini:hover {
  transform: translateY(-5px);
  background: rgba(124,240,61,0.12);
  border-color: #7cf03d;
  box-shadow: 0 8px 20px rgba(124,240,61,0.2);
}

.soft-skill-mini i { font-size: 30px; color: #7cf03d; }
.soft-skill-mini span { color: #fff; font-weight: 600; font-size: 13px; }

/* ==================== CONTACT ==================== */
#contact {
  padding: 90px 9%;
  background: #1f242d;
}

.MONcontact {
  text-align: center;
  margin-bottom: 60px;
}

.MONcontact h1 {
  font-size: 48px;
  color: #7cf03d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.MONcontact h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Form */
#contact-form {
  background: rgba(255,255,255,0.03);
  padding: 36px;
  border-radius: 16px;
  border: 1px solid rgba(124,240,61,0.15);
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
}

.interior {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(124,240,61,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  transition: all .3s;
}

.interior:focus {
  outline: none;
  border-color: #7cf03d;
  box-shadow: 0 0 0 3px rgba(124,240,61,0.18);
  background: rgba(255,255,255,0.07);
}

.interior::placeholder { color: rgba(255,255,255,0.4); }
textarea.interior { min-height: 140px; resize: vertical; line-height: 1.7; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
}

.checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: #7cf03d;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox label { font-size: 13.5px; color: rgba(255,255,255,0.75); cursor: pointer; flex: 1; line-height: 1.5; }

.error-message {
  display: block;
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all .3s;
}

.error-message.show { opacity: 1; transform: translateY(0); }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  text-align: center;
  animation: slideDown .3s ease;
  border: 1px solid transparent;
}

.alert.success { background: rgba(124,240,61,0.1); border-color: rgba(124,240,61,0.3); color: #7cf03d; }
.alert.error { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.3); color: #ff6b6b; }
.alert.info { background: rgba(66,133,244,0.1); border-color: rgba(66,133,244,0.3); color: #4285f4; }

/* Contact info panel */
.contact-info-panel { display: flex; flex-direction: column; gap: 24px; }

.contact-info-panel h3 {
  font-size: 26px;
  color: #7cf03d;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  background: rgba(255,255,255,0.04);
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(124,240,61,0.15);
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: all .35s;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateX(6px);
  border-color: #7cf03d;
  box-shadow: 0 8px 24px rgba(124,240,61,0.2);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(124,240,61,0.12);
}

.card-icon i { font-size: 26px; color: #7cf03d; }
.card-icon svg { display: block; }

.card-content { flex: 1; }
.card-content h4 { color: #fff; font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.card-content p { color: rgba(255,255,255,0.65); font-size: 14px; }

.card-hover {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(124,240,61,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
  border-radius: 14px;
}

.contact-card:hover .card-hover { opacity: 1; }
.card-hover i { font-size: 30px; color: #1f242d; margin-bottom: 8px; }
.card-hover svg { display: block; margin-bottom: 8px; }
.card-hover span { color: #1f242d; font-weight: 700; font-size: 14px; }

.MONcontact::before {
  content: 'Une idée, un projet, une question ?';
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-top: 16px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cf03d;
  flex-shrink: 0;
}

.interior:focus {
  background: rgba(124,240,61,0.06);
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0d1017;
  padding: 30px 9%;
  text-align: center;
  border-top: 2px solid rgba(124,240,61,0.15);
}

.footer .p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
}

.footer .p span { color: #7cf03d; font-weight: 600; }

/* ==================== BARS ANIMATION ==================== */
.bars-animation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  z-index: 999;
  pointer-events: none;
}

.bars-animation .bar {
  flex: 1;
  height: 100%;
  background: #1f242d;
  transform: translateY(0);
  animation: hide-bars .5s ease-in-out forwards;
  animation-delay: calc(.08s * var(--i));
}

@keyframes hide-bars {
  100% { transform: translateY(-100%); }
}

/* ==================== ANIMATIONS ==================== */
@keyframes show-content { 100% { visibility: visible; opacity: 1; } }
@keyframes display-text { 25%, 100% { display: none; } }
@keyframes typing {
  0% {
    width: 0;
  }

  40%,
  70% {
    width: 100%;
  }

  100% {
    width: 0;
  }
}
@keyframes rotate-border { 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .about-container { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .home { flex-direction: column; text-align: center; padding: 100px 5% 60px; }
  .home-info p { margin-left: auto; margin-right: auto; }
  .home-info .btn-sci { justify-content: center; }
  .home-img .img-box { width: 320px; height: 320px; }
  .home-img .img-box::before,
  .home-img .img-box::after { width: 370px; height: 370px; }
  .certifications-carousel { padding: 0 48px; }
}

@media (max-width: 768px) {
  /* Burger visible, menu caché par défaut */
  .burger { display: flex; }

  .navbar ul {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(13, 16, 23, 0.98);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 100;
  list-style: none;
  padding: 0;
}

.navbar ul.open {
  display: flex;
}

.navbar ul li {
  width: 100%;
  max-width: 280px;
  opacity: 0;
  transform: translateY(14px);
  animation: menu-item-in .4s ease forwards;
}

.navbar ul.open li:nth-child(1) { animation-delay: .05s; }
.navbar ul.open li:nth-child(2) { animation-delay: .1s; }
.navbar ul.open li:nth-child(3) { animation-delay: .15s; }
.navbar ul.open li:nth-child(4) { animation-delay: .2s; }
.navbar ul.open li:nth-child(5) { animation-delay: .25s; }
.navbar ul.open li:nth-child(6) { animation-delay: .3s; }

@keyframes menu-item-in {
  to { opacity: 1; transform: translateY(0); }
}

.navbar ul li a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 12px;
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color .2s, padding-left .2s;
}

/* numéro discret devant chaque lien, façon portfolio pro */
.navbar ul li a::before {
  content: counter(menu-item) "";
  counter-increment: menu-item;
  font-size: 12px;
  font-weight: 600;
  color: rgba(124,240,61,0.5);
  font-family: monospace;
  min-width: 22px;
}

.navbar ul {
  counter-reset: menu-item;
}

.navbar ul li a:hover,
.navbar ul li.active a {
  color: #7cf03d;
  padding-left: 6px;
}

/* on retire l'ancien effet ::after de soulignement, remplacé par le style ci-dessus */
.navbar ul li a::after {
  display: none;
}
}

@media (max-width: 480px) {
  /* Navbar : reste sur UNE ligne */
  .navbar {
    padding: 14px 5%;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
    align-items: center;
  }
  .navbar .logo { font-size: 18px; }
  .burger { display: flex; flex-shrink: 0; }

  /*  Home : assez d'espace sous la navbar */
  .home {
    padding: 90px 5% 40px;
    text-align: center;
    flex-direction: column;
    gap: 30px;
  }

  /* Nom complet visible */
  .home-info h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
    word-break: normal;
    white-space: normal;
  }

  /* "I'm a" + texte animé sur 2 lignes propres */
  .home-info h2 {
    font-size: 16px;
    height: auto;
    min-height: 28px;
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
  }
  .home-info h2 span {
    font-size: 16px;
    white-space: nowrap;
    display: inline-block;
  }

  /* Paragraphe */
  .home-info p {
    font-size: 13.5px;
    text-align: center;
    line-height: 1.7;
    margin: 12px auto 20px;
    max-width: 100%;
    padding: 0;
  }

  /*  Image  */
  .home-img .img-box { width: 200px; height: 200px; }
  .home-img .img-box::before,
  .home-img .img-box::after { width: 234px; height: 234px; }

  /*  Boutons  */
  .home-info .btn-sci {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .btn { padding: 11px 28px; font-size: 14px; }

  /*  Carousel  */
  .certifications-carousel { padding: 0 44px; }
  .prev-btn, .next-btn { width: 36px; height: 36px; }
  .prev-btn { left: 0; }
  .next-btn { right: 0; }
  .carousel-track { height: auto; min-height: unset; }
  .certification-slide { padding: 16px 10px; min-height: unset; height: auto; }
  .certification-image { height: 180px; width: 100%; max-width: 100%; margin-bottom: 12px; }
  .certification-info { width: 100%; max-width: 100%; padding: 12px 10px; }
  .certification-title { font-size: 16px; margin-bottom: 6px; }
  .certification-desc { font-size: 13px; line-height: 1.5; }
  .carousel-nav-row { display: none; }

  /* Grilles  */
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  #contact-form { padding: 22px 18px; }
  .soft-skills-icons { flex-direction: column; align-items: center; }
  .soft-skill-mini { flex-direction: row; width: 100%; max-width: 240px; justify-content: flex-start; }
  #about, #portfolio, #projects, .skills, #contact { padding: 50px 5%; }
  
  .portfolio-header h1 {
  font-size: 26px;
  padding: 0 10px;
  word-break: break-word;
}

#contact {
  padding: 50px 4%;
  overflow-x: hidden;
}

.contact-wrapper {
  width: 100%;
  overflow-x: hidden;
}

#contact-form {
  width: 100%;
  padding: 20px 16px;
  box-sizing: border-box;
}

.interior {
  width: 100%;
  box-sizing: border-box;
}

.contact-info-panel {
  width: 100%;
  overflow-x: hidden;
}

.contact-card {
  width: 100%;
  box-sizing: border-box;
}

/* CONTACT UPDATE */
.MONcontact h1 {
  font-size: 30px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding: 0 8px;
  word-break: normal;
}

.MONcontact { margin-bottom: 40px; }

/* H1 */
:root {
    --navbar-height: 100px; 
  }

  .home {
    padding: calc(var(--navbar-height) + 26px) 5% 40px;
    text-align: center;
    flex-direction: column;
    gap: 30px;
  }

  .navbar-inner {
    padding: 12px 12px 12px 8px; /* encore plus serré sur très petit écran */
  }

  .logo {
    padding: 6px 10px;  /* réduit aussi le padding interne du logo lui-même */
    gap: 8px;
  }

  .logo-text {
    font-size: 0.85rem; /* légèrement plus petit pour laisser de la place au burger */
  }
}

/*  EXPERIENCE  */
#experience {
  padding: 90px 9%;
  background: #0d1017;
}

#experience .section-header {
  text-align: center;
  margin-bottom: 60px;
}

#experience .section-header h1 {
  font-size: 48px;
  color: #7cf03d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

#experience .section-header h1::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #7cf03d;
  border-radius: 2px;
}

.timeline { display: flex; flex-direction: column; gap: 32px; max-width: 1000px; margin: 0 auto; }

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 36px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 180px;
  top: 0; bottom: -32px;
  width: 2px;
  background: linear-gradient(to bottom, #7cf03d, rgba(124,240,61,0.1));
}

.timeline-item:last-child::before { display: none; }

.timeline-left {
  text-align: right;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  
  width:150px;
  gap: 6px;
}

.timeline-date {
  font-size: 13px;
  font-weight: 700;
  color: #7cf03d;
  letter-spacing: 0.5px;
}

.timeline-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt3, rgba(255,255,255,0.35));
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(124,240,61,0.2);
}

.freelance-badge {
  /* color: #7cf03d; */
  border-color: #7cf03d;
  background: rgba(124,240,61,0.1);
}

.timeline-right { position: relative; }

.timeline-right::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #7cf03d;
  box-shadow: 0 0 10px rgba(124,240,61,0.6);
}

.exp-card {
  padding: 26px 28px;
  border-radius: 14px;
  border: 1px solid rgba(124,240,61,0.18);
  background: rgba(255,255,255,0.04);
  transition: all .3s;
}

.exp-card:hover {
  border-color: rgba(124,240,61,0.4);
  background: rgba(124,240,61,0.04);
  transform: translateX(4px);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.exp-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.exp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #7cf03d;
  text-decoration: none;
  border: 1px solid rgba(124,240,61,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all .25s;
}

.exp-link:hover {
  background: rgba(124,240,61,0.1);
  border-color: #7cf03d;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.exp-bullets li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  position: relative;
  padding-left: 20px;
}

.exp-bullets li::before {
  content: '▹';
  color: #7cf03d;
  position: absolute;
  left: 0;
  top: 0;
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .timeline-item::before { display: none; }
  .timeline-left { text-align: left; flex-direction: row; align-items: center; }
  .timeline-right::before { display: none; }
  #experience { padding: 60px 5%; }
  #experience .section-header h1 { font-size: 36px; }
}

@media (max-width: 480px) {
  #experience { padding: 40px 4%; }
  .exp-card { padding: 18px; }
  .exp-title { font-size: 16px; }

  .skills-title {
  font-size: 26px;
  padding: 0 10px;
  word-break: break-word;
}


}

/*  375px : petits mobiles (iPhone SE, Galaxy S)  */
@media (max-width: 375px) {
  .navbar { padding: 12px 4%; }
  .navbar .logo { font-size: 16px; }
  .home { padding: 85px 4% 36px; }
  .home-info h1 {
    font-size: 21px;
    letter-spacing: -0.3px;
  }
  .home-info h2 {
    font-size: 14px;
    min-height: 24px;
  }
  .home-info h2 span { font-size: 14px; }
  .home-info p { font-size: 13px; }
  .home-img .img-box { width: 180px; height: 180px; }
  .home-img .img-box::before,
  .home-img .img-box::after { width: 210px; height: 210px; }

  .portfolio-header h1 {
  font-size: 22px;
}

.skills-title {
  font-size: 22px;
}
}

/*  Grid des projets  */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

/*  Carte projet */
.grid > .rounded-lg {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #161b22;
  border: 1px solid #1e2a1a;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.grid > .rounded-lg:hover {
  transform: translateY(-4px);
  border-color: #7cf03d;
  box-shadow: 0 12px 30px rgba(124, 240, 61, 0.12);
}

/* Zone de preview   */
.project-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;     
  overflow: hidden;
  background: #0e1117;    
}
.project-preview::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, #161b22 92%);
  pointer-events: none;
}

.project-preview img,
.project-preview svg.preview-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         
  object-position: center;
  display: block;
  filter: brightness(0.9) saturate(0.95);
  transition: filter .3s ease, transform .4s ease;
}


.project-preview img {
  object-position: top center;
}
.rounded-lg:hover .project-preview img {
  filter: brightness(1);
}
* {
  font-family: 'Poppins', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

/*  Contenu texte de la carte  */
.p-6 {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;                   
}

.p-6 h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.p-6 p.text-gray-700 {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9aa4ad;
  flex: 1;                   
  margin-bottom: 16px;
}

/*  Tags  */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.72rem;
  font-family: monospace;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(124, 240, 61, 0.1);
  color: #7cf03d;
  border: 1px solid rgba(124, 240, 61, 0.25);
  white-space: nowrap;
}

/*  Liens  */
.project-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.project-link.primary {
  background: #7cf03d;
  color: #0e1117;
}

.project-link.secondary {
  background: transparent;
  border: 1px solid #7cf03d;
  color: #7cf03d;
}

.project-link:hover {
  opacity: 0.85;
}
.exp-card{
    padding:28px;
    border-radius:18px;
    line-height:1.7;
}

.exp-bullets li{
    margin-bottom:12px;
    line-height:1.8;
}


.exp-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:18px;
}

/* RESPONSIVITÉ DE EXPERIENCE */
@media (max-width: 768px) {

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }


  .timeline-item::before,
  .timeline-right::before {
    display: none;
  }

  .timeline-left {
    text-align: left;
    flex-direction: row;
    align-items: center;
    padding-left: 4px;
  }

 
  .timeline-right {
    margin-top: 4px;
  }

  .exp-card {
    padding: 22px;
    margin-left: 0; 
  }

  #experience { padding: 60px 5%; }
  #experience .section-header h1 { font-size: 36px; }

  .presentation-text p {
    text-align: left;
  }
  .qui-suis-je .presentation-text {
    padding: 20px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(124,240,61,0.15);
    position: relative;
    overflow: hidden;
  }

  /* petit accent visuel en haut, pour que le bloc ne soit pas juste un pavé de texte */
  .qui-suis-je .presentation-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7cf03d, transparent);
  }

  .presentation-text p {
    text-align: left;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
    margin-bottom: 16px;
  }

  /* on met en valeur les mots forts sans que ça hurle */
  .presentation-text p strong,
  .presentation-text p b {
    color: #7cf03d;
    font-weight: 600;
  }

  .presentation-text p:last-child {
    margin-bottom: 0;
  }

  .column-title {
    font-size: 20px;
    margin-bottom: 1.1rem;
  }

  .about-column + .about-column {
    margin-top: 8px;
  }

  /* UPDATE THE MOBILE VIEW EXPERIENCE */
  /* Empêche tout débordement horizontal de la carte */
  .rounded-lg {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .project-preview,
  .project-preview img,
  .project-preview svg.preview-svg {
    width: 100%;
    max-width: 100%;
  }

  /* les grilles avec minmax(320px,...)  */
  #projects .grid,
  .grid {
    grid-template-columns: 1fr;
  }

  /*  Réduction de la hauteur perçue de la carte */
  .p-6 {
    padding: 18px 20px;
  }

  #projects h5 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  /* tronqué la description */
  .text-gray-700 {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-tags {
    gap: 5px;
    margin-bottom: 12px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 9px;
  }

  .project-links {
    gap: 8px;
  }

  .project-link {
    padding: 7px 14px;
    font-size: 13px;
  }

  .MONcontact::before {
    content: 'Une idée, un projet, une question ?';
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    margin-top: 14px;
  }

  #contact-form {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
  }

  .form-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7cf03d;
    flex-shrink: 0;
  }

  .interior {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    background: rgba(255,255,255,0.03);
  }

  .interior:focus {
    background: rgba(124,240,61,0.06);
  }

  .form-group {
    margin-bottom: 18px;
  }
  
  .exp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }

  .exp-card.open .exp-body {
    max-height: 800px;
  }

  .exp-header { cursor: pointer; }

  .exp-chevron {
    transition: transform .3s ease;
    color: #7cf03d;
    flex-shrink: 0;
  }

  .exp-card.open .exp-chevron {
    transform: rotate(180deg);
  }
}


/* AVAILABLE */
.availability-banner{
    margin-top:30px;
    padding:24px 28px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;

    border:1px solid rgba(124,240,61,.25);
    border-radius:18px;

    background:linear-gradient(
        135deg,
        rgba(124,240,61,.08),
        rgba(124,240,61,.02)
    );

    backdrop-filter:blur(8px);
}

.availability-content{
    flex:1;
}

.availability-content h3{
    color:#fff;
    font-size:1rem;
    margin-bottom:4px;
}

.availability-content p{
    color:#bcbcbc;
    line-height:1.3;
}

.availability-content strong{
    color:#7cf03d;
}

.availability-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#7cf03d;

    box-shadow:
        0 0 12px #7cf03d,
        0 0 25px #7cf03d;

    animation:pulse 1.8s infinite;
}

@keyframes pulse{

0%{
transform:scale(1);
opacity:1;
}

50%{
transform:scale(1.25);
opacity:.65;
}

100%{
transform:scale(1);
opacity:1;
}

}


.availability-btn{

    text-decoration:none;
    background:#7cf03d;
    color:#1f242d;

    padding:8px 14px;
    border-radius:18px;

    font-weight:200;

    transition:.3s;
    white-space:nowrap;

}

.availability-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 25px rgba(124,240,61,.35);

}

@media(max-width:768px){

.availability-banner{

    flex-direction:column;
    align-items:flex-start;

}

.availability-btn{

    width:100%;
    text-align:center;

}

}

/* NEW FEATURES SUR FORMULAIRE */

terminal-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(124,240,61,0.15);
  background: rgba(255,255,255,0.03);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #12151c;
  border-bottom: 1px solid rgba(124,240,61,0.12);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-right: 44px; /* compense la largeur des 3 dots pour un vrai centrage */
}

/* le form garde son padding d'origine, juste sans son propre border/radius */
#contact-form {
  border: none;
  border-radius: 0;
  background: transparent;
}

/* labels façon prompt terminal */
.form-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
}

.form-label::before {
  content: '$';
  border-radius: 0;
  width: auto;
  height: auto;
  background: none;
  color: #7cf03d;
  font-weight: 700;
}

.interior {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13.5px;
}

.interior:focus {
  border-color: #7cf03d;
}

/* curseur clignotant après le dernier champ, pour l'effet terminal complet */
#contact-form::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #7cf03d;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* UPDATE THE NAVBAR */

/* ===== Navbar container ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 17, 23, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 240, 61, 0.12);
}

.navbar-inner {
  width: 100%;
  max-width: none;      
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;   
  box-sizing: border-box;
}

/* ===== Logo façon fenêtre de terminal ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  background: #161b22;
  border: 1px solid #1e2a1a;
}

.traffic-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.logo-text {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7cf03d;
  letter-spacing: 0.3px;
}

.logo-blink {
  animation: blink 1.1s steps(1) infinite;
  color: #7cf03d;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-blink { animation: none; }
}

/* ===== Liens de navigation ===== */
#navMenu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navMenu li a {
  position: relative;
  display: block;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #9aa4ad;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

#navMenu li a:hover {
  color: #fff;
  background: rgba(124, 240, 61, 0.06);
}

/* soulignement animé */
#navMenu li a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: #7cf03d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#navMenu li a:hover::after {
  transform: scaleX(1);
}

/* lien actif : petit prompt "> " devant */
#navMenu li.active a {
  color: #7cf03d;
}

#navMenu li.active a::before {
  content: "> ";
  color: #7cf03d;
}

#navMenu li.active a::after {
  transform: scaleX(1);
}

/* ===== Burger (mobile) ===== */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: #161b22;
  border: 1px solid #1e2a1a;
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  width: 16px;
  height: 2px;
  background: #7cf03d;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .navbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px 16px 14px 12px; 
    box-sizing: border-box;
  }

  .burger {
    display: flex;
  }
  .navbar-inner {
    padding: 14px 20px;
  }

  .burger {
    display: flex;
  }

  #navMenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: #0e1117;
    border-bottom: 1px solid rgba(124, 240, 61, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  #navMenu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  #navMenu li a {
    padding: 12px 14px;
  }
}

/* CORRECTION */