
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(135deg, #7f00ff, #00c3ff);
  color: white;
  overflow: auto;
}

.scroll-container {
  height: 100vh;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.section h1, .section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.nav-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  display: flex;
  gap: 20px;
  padding: 10px 20px;
  z-index: 999;
}

.nav-bottom a {
  text-decoration: none;
  font-size: 1.4rem;
  color: white;
  transition: transform 0.2s;
}

.nav-bottom a:hover {
  transform: scale(1.2);
}

/* HERO SECTION */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  color: white;
  padding: 60px 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  background-color: white;
  color: #333;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background-color: #00c3ff;
  color: white;
}

.hero-btn.linkedin {
  background-color: #0077b5;
  color: white;
}

.hero-btn.github {
  background-color: #333;
  color: white;
}

.hero-btn.cv {
  background-color: #00c3ff;
  color: white;
}
.hero-btn.patch {
  background-color: #00b55b;
  color: white;
}
/* competence SECTION */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.skills-column {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px 25px;
  border-radius: 16px;
  width: 300px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.skills-column h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #fff;
  text-align: center;
}

.skills-column ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.skills-column li {
  background: rgba(255, 255, 255, 0.07);
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.badge {
  font-size: 0.7rem;
  background: #fff;
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: bold;
}


.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px 25px;
  width: 280px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  color: white;
  transition: transform 0.3s;
}

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

.card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: #fff;
}

.card ul {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
}

.card ul li {
  margin: 8px 0;
  padding-left: 10px;
}


/* Container de colonnes */
.competence-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

/* Cartes principales */
.competence-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  width: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: left;
  transition: transform 0.3s ease;
}

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

/* Titres de cartes */
.competence-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

/* Sous-cartes */
.sub-card {
  background: rgba(255,255,255,0.05);
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 12px;
  color: #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Badges de niveau */
.badge {
  background: #ff66c4;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 5px;
}

/* Animation d’apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur de projets en grille */
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.project-detail-card {
  flex: 1 1 45%;
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  color: white;
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
  min-width: 300px;
  max-width: 500px;
}

.project-detail-card h2,
.project-detail-card h3 {
  color: #00c3ff;
  margin-bottom: 10px;
}

.project-detail-card p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
}

.project-detail-card ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.project-detail-card ul li {
  margin-bottom: 8px;
  position: relative;
}

.project-detail-card ul li::before {
  color: #00c3ff;
  font-size: 1.2rem;
  position: absolute;
  left: -1em;
  top: 0.1em;
}
.project-detail-card:hover {
  transform: translateY(-10px) scale(1.02);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media screen and (max-width: 900px) {
  .project-detail-card {
    flex: 1 1 100%;
  }
}



/* SECTION À PROPOS - Timeline */
.timeline {
  position: relative;
  margin: 40px auto;
  max-width: 800px;
  padding: 0 20px;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideIn 0.8s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #fff;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION À PROPOS - bio carte */
.about-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio-card {
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 20px;
  max-width: 300px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  color: white;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.bio-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: white;
}

.bio-card p {
  font-size: 0.95rem;
  color: #eee;
  line-height: 1.6;
}


  to { opacity: 1; transform: translateY(0); }

/* SECTION CONTACT */

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00c3ff;
}

.btn-submit {
  background: #00c3ff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #009ddc;
}

/* Section alternance */
.alternance-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.alternance-card {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

.alternance-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #00c3ff;
}

.alternance-card p,
.alternance-card li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #eee;
}

.alternance-card ul {
  list-style: none;
  padding-left: 0;
}

.alternance-card ul li::before {
  content: "✔ ";
  color: #00ff3c;
  font-weight: bold;
  margin-right: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .alternance-columns {
    flex-direction: column;
    align-items: center;
  }

  .alternance-card {
    width: 90%;
  }
}

/* Carte de contact */
.contact-card {
  background: rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  max-width: 500px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease-out forwards;
  opacity: 0;
}

.contact-card h2 {
  color: white;
  margin-bottom: 15px;
  text-align: center;
}

.contact-card p {
  color: #ccc;
  margin-bottom: 20px;
  text-align: center;
}



.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  resize: vertical;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00c3ff;
}

.btn-submit {
  background: #00c3ff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #009ddc;
}

.confirmation {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

/* Animation personnalisée */
.animated-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animated-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* MENU responsive */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 10px 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #00c3ff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: white;
  position: absolute;
  top: 12px;
  right: 20px;
  z-index: 1001;
  cursor: pointer;
}

/* Responsive menu (caché par défaut sur mobile) */
@media screen and (max-width: 768px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    text-align: right;
    padding: 20px;
  }

  .main-nav ul.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .main-nav {
    position: relative;
  }
}

.contact-form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00c3ff;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Bouton */

/* Modal de fond */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* Contenu */
.modal-content {
  background: #1c1c2e;
  color: #f0f0f0;
  margin: 10% auto;
  padding: 30px;
  border-radius: 15px;
  width: 80%;
  max-width: 700px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
}

/* Bouton fermeture */
.modal-content .close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

/* Liste patch notes */
.modal-content h2 {
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.modal-content ul {
  list-style: none;
  padding: 0;
}
.modal-content li {
  background: #2a2a40;
  margin: 10px 0;
  padding: 12px;
  border-left: 4px solid #4a00e0;
  border-radius: 5px;
}
.modal-content span {
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 5px;
  margin-right: 10px;
  font-size: 0.85em;
}
.new { background: #27ae60; color: white; }
.fix { background: #e67e22; color: white; }
.update { background: #2980b9; color: white; }
.remove { background: #c0392b; color: white; }



@media screen and (max-width: 768px) {
  .section, .hero-section {
    height: auto;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .scroll-container {
    scroll-snap-type: none;
    overflow-y: auto;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .skills-container, .competence-columns, .cards-container, .project-grid {
    flex-direction: column;
    align-items: center;
  }

  .skills-column, .competence-card, .card, .project-detail-card {
    width: 90% !important;
    max-width: 90%;
  }

  .bio-card {
    max-width: 90%;
  }

  .nav-bottom {
    flex-wrap: wrap;
    gap: 10px;
    bottom: 10px;
    padding: 8px 12px;
  }

  .nav-bottom a {
    font-size: 1.1rem;
  }
}



/* Empêche le scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Fixe pour les projets sur mobile */
@media screen and (max-width: 768px) {
  .project-grid {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .project-detail-card {
    width: 100% !important;
    max-width: 95vw;
    box-sizing: border-box;
    margin: 0 auto;
  }
}



@media screen and (max-width: 768px) {
  .nav-bottom {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: center;
    padding: 8px;
    max-width: 95vw;
  }

  .nav-bottom a {
    white-space: nowrap;
    font-size: 1.1rem;
    padding: 8px 12px;
    flex-shrink: 0;
  }
}

.nav-bottom a {
  font-size: 1.3rem;
  padding: 8px 14px;
}


.confirmation p {
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 20px;
  animation: fadeIn 0.5s ease forwards;
  display: none;
}

.confirmation p.success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.confirmation p.error {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}
