@import url("https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.7;
  }

  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 1;
  }

  50% {
    transform: translateY(-40px) translateX(-5px) rotate(180deg);
    opacity: 0.8;
  }

  75% {
    transform: translateY(-20px) translateX(-15px) rotate(270deg);
    opacity: 0.9;
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.6;
  }

  33% {
    transform: translateY(-30px) translateX(20px) rotate(120deg);
    opacity: 1;
  }

  66% {
    transform: translateY(-60px) translateX(-10px) rotate(240deg);
    opacity: 0.7;
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    transform: translateY(-50px) translateX(15px) rotate(180deg);
    opacity: 0.9;
  }
}

@keyframes float4 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }

  25% {
    transform: translateY(-25px) translateX(15px) scale(1.1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-45px) translateX(-8px) scale(0.9);
    opacity: 1;
  }

  75% {
    transform: translateY(-20px) translateX(-12px) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes float5 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    opacity: 0.5;
  }

  20% {
    transform: translateY(-15px) translateX(8px) rotate(72deg) scale(1.2);
    opacity: 0.8;
  }

  40% {
    transform: translateY(-35px) translateX(-5px) rotate(144deg) scale(0.8);
    opacity: 1;
  }

  60% {
    transform: translateY(-50px) translateX(12px) rotate(216deg) scale(1.1);
    opacity: 0.6;
  }

  80% {
    transform: translateY(-25px) translateX(-10px) rotate(288deg) scale(0.9);
    opacity: 0.9;
  }
}

@keyframes float6 {

  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.7;
  }

  16.66% {
    transform: translateY(-18px) translateX(6px) rotate(60deg);
    opacity: 0.9;
  }

  33.33% {
    transform: translateY(-32px) translateX(-4px) rotate(120deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-42px) translateX(8px) rotate(180deg);
    opacity: 1;
  }

  66.66% {
    transform: translateY(-28px) translateX(-6px) rotate(240deg);
    opacity: 0.8;
  }

  83.33% {
    transform: translateY(-12px) translateX(4px) rotate(300deg);
    opacity: 0.7;
  }
}

@keyframes pulse {

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

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes pulseSlow {

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

  50% {
    transform: scale(1.3);
    opacity: 0.9;
  }
}

@keyframes pulseFast {

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

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(36, 117, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(36, 117, 255, 0.6);
  }
}

@keyframes glowIntense {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(45, 156, 219, 0.4);
  }

  50% {
    box-shadow: 0 0 35px rgba(45, 156, 219, 0.8);
  }
}

@keyframes glowSoft {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  }
}

@keyframes slideInFromTop {
  0% {
    /* Préserve le centrage horizontal (translateX(-50%)) pendant l’animation */
    transform: translate(-50%, -50px);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes buttonGlow {

  0%,
  100% {
    box-shadow: 0px 0px 10px #2475ff;
  }

  50% {
    box-shadow: 0px 0px 20px #2475ff, 0px 0px 30px rgba(36, 117, 255, 0.5);
  }
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes textShine {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #762eb2;
  font-family: "Asap", sans-serif;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-ball {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.ball-1 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(36, 117, 255, 0.3) 0%, rgba(45, 156, 219, 0.3) 100%);
  top: 20%;
  left: 10%;
  animation: float1 8s ease-in-out infinite, glow 4s ease-in-out infinite;
}

.ball-2 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(196, 207, 247, 0.2) 100%);
  top: 60%;
  right: 15%;
  animation: float2 12s ease-in-out infinite, pulseSlow 8s ease-in-out infinite;
}

.ball-3 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(118, 46, 178, 0.4) 0%, rgba(24, 46, 122, 0.4) 100%);
  top: 30%;
  right: 25%;
  animation: float3 10s ease-in-out infinite, glowIntense 6s ease-in-out infinite;
}

.ball-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(45, 156, 219, 0.2) 0%, rgba(36, 117, 255, 0.2) 100%);
  bottom: 25%;
  left: 20%;
  animation: float4 15s ease-in-out infinite reverse, pulse 10s ease-in-out infinite;
}

.ball-5 {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(196, 207, 247, 0.15) 100%);
  top: 80%;
  left: 60%;
  animation: float5 9s ease-in-out infinite reverse, glowSoft 5s ease-in-out infinite;
}

.ball-6 {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(118, 46, 178, 0.3) 0%, rgba(24, 46, 122, 0.3) 100%);
  top: 15%;
  left: 70%;
  animation: float6 11s ease-in-out infinite, pulseFast 7s ease-in-out infinite;
}

/* ===== HEADER RESPONSIVE ===== */

#header-gitmaster {
  background-color: #182e7a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 30px;
  border: none;
  width: 90%;
  height: 4rem;
  margin: 0 auto;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideInFromTop 1s ease-out;
  padding: 0 20px;
  box-sizing: border-box;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #3a3a4d;
  border-radius: 24px;
  transition: background 0.2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked+.slider {
  background: #2d9cdb;
}

.toggle-switch input:checked+.slider:before {
  transform: translateX(20px);
}

/* Styles du bouton CTA */
.cta-button:hover {
  background-color: #1a5bb8;
  color: white;
  box-shadow: 0px 0px 10px #1a5bb8;
  transform: scale(1.05);
}

.burger-menu:focus {
  outline: 2px solid #2475ff;
  outline-offset: 2px;
}

.cta-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Animation d'entrée pour le menu mobile */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.nav-menu.active {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-gitmaster * {
  transition: all 0.3s ease;
}

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

.burger-menu span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-menu li {
  list-style: none;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: white;
  padding: 15px 20px;
  transition: all 0.3s ease;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: #2475ff;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #2475ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover::after {
  width: 80%;
}

.div1-logo-gitmaster {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  min-width: 0;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.1);
}

.title-container h3 {
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
}

.div2-logo-gitmaster {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex-shrink: 0;
}

.button-container {
  display: flex;
  align-items: center;
}

.cta-button {
  background-color: #2475ff;
  padding: 10px 16px;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0px 0px 10px #2475ff;
  transition: all 0.3s ease;
  transform: scale(1);
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  animation: buttonGlow 3s ease-in-out infinite;
  white-space: nowrap;
}

/* ===== SECTION HERO RESPONSIVE ===== */

#section-maitriser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;

  padding: 8rem 2rem 4rem 2rem;
  margin: 0 auto;
  max-width: 1400px;

  /* Animation d'entrée */
  animation: fadeInUp 1s ease-out 0.3s both;

  min-height: 80vh;
  box-sizing: border-box;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 2rem;
  color: white;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
}

.hero-description {
  font-size: 1.25rem;
  color: white;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: no-wrap;
  margin-top: 1rem;
}

.hero-btn-link {
  text-decoration: none;
  display: inline-block;
}

span {
  color: #2475ff;
  background: linear-gradient(90deg, #2475ff, #2d9cdb, #2475ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s linear infinite;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  animation: cardFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-image img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
}

.btn1,
.btn2 {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 180px;
  text-align: center;
  font-family: "Open Sans", sans-serif;
}

.btn1 {
  background-color: #2475ff;
  color: white;
  box-shadow: 0 4px 15px rgba(36, 117, 255, 0.3);
  animation: buttonGlow 2s ease-in-out infinite;
}

.btn2 {
  background-color: white;
  color: #2475ff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn1:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(36, 117, 255, 0.4);
  background-color: #1a5bb8;
}

.btn2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background-color: #f8f9fa;
}

/* ===== SECTION HOW-LEARNING RESPONSIVE ===== */

#how-learning {
  margin-top: 5rem;
  padding: 4rem 2rem;
  background-color: #190033;

  animation: fadeInUp 1s ease-out 0.6s both;

  min-height: auto;
  box-sizing: border-box;
}

.how-learning-title {
  font-size: 3rem;
  color: white;
  text-align: center;
  margin: 0 0 2rem 0;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  line-height: 1.2;
}

.how-learning-description {
  font-size: 1.5rem;
  color: white;
  text-align: center;
  margin: 0 0 4rem 0;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.how-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.learning-card {
  background-color: #182e7a;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: cardFloat 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.learning-card:nth-child(1) {
  animation-delay: 0s;
}

.learning-card:nth-child(2) {
  animation-delay: 1s;
}

.learning-card:nth-child(3) {
  animation-delay: 2s;
}

.learning-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(196, 207, 247, 0.4);
  border-color: rgba(36, 117, 255, 0.3);
}

.card-icon {
  background-color: #2475ff;
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem auto;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: iconBounce 2s ease-in-out infinite;
}

.card-icon i {
  color: white;
  font-size: 1.8rem;
}

.card-icon:hover {
  transform: scale(1.1);
}

.card-title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
  color: white;
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  color: white;
}

/* Desktop : >1200px - Trois colonnes alignées côte à côte (33% chacune) */
@media (min-width: 1201px) {
  #how-learning {
    padding: 5rem 3rem;
  }

  .how-learning-title {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
  }

  .how-learning-description {
    font-size: 1.6rem;
    margin-bottom: 5rem;
  }

  .how-learning-grid {
    gap: 3rem;
    max-width: 1400px;
  }

  .learning-card {
    padding: 3rem 2.5rem;
  }

  .card-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .card-description {
    font-size: 1.1rem;
  }
}

/* Tablet : 768px - 1200px - Trois colonnes, mais plus compactes */
@media (max-width: 1200px) and (min-width: 769px) {
  #how-learning {
    padding: 4rem 2rem;
  }

  .how-learning-title {
    font-size: 2.8rem;
    margin-bottom: 1.8rem;
  }

  .how-learning-description {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
  }

  .how-learning-grid {
    gap: 2rem;
    max-width: 1000px;
  }

  .learning-card {
    padding: 2.2rem 1.8rem;
  }

  .card-title {
    font-size: 1.4rem;
    margin-bottom: 1.3rem;
  }

  .card-description {
    font-size: 0.95rem;
  }

  .card-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 1.3rem;
  }

  .card-icon i {
    font-size: 1.6rem;
  }
}

/* Mobile : <768px - Colonnes en deux rangées */
@media (max-width: 768px) {
  #how-learning {
    padding: 3rem 1.5rem;
    margin-top: 3rem;
  }

  .how-learning-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .how-learning-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
  }

  .how-learning-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
  }

  .learning-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .learning-card {
    padding: 2rem 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
  }

  .card-icon i {
    font-size: 1.5rem;
  }
}

/* Small Mobile : <420px - Colonnes empilées verticalement */
@media (max-width: 420px) {
  #how-learning {
    padding: 2.5rem 1rem;
    margin-top: 2.5rem;
  }

  .how-learning-title {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
  }

  .how-learning-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }

  .how-learning-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 100%;
  }

  .learning-card:nth-child(3) {
    grid-column: 1;
    max-width: 100%;
  }

  .learning-card {
    padding: 1.8rem 1.2rem;
  }

  .card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .card-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
  }

  .card-icon i {
    font-size: 1.3rem;
  }
}

/* Desktop : >1200px - Deux colonnes côte à côte (50/50) */
@media (min-width: 1201px) {
  #section-maitriser {
    padding: 8rem 3rem 4rem 3rem;
    gap: 4rem;
  }

  .hero-title {
    font-size: 3.7rem;
  }

  .hero-description {
    font-size: 1.35rem;
  }

  .hero-buttons {
    gap: 1.5rem;
  }

  .btn1,
  .btn2 {
    min-width: 300px;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
  }
}

/* Tablet : 768px - 1200px - Deux colonnes côte à côte mais compactes */
@media (max-width: 1200px) and (min-width: 769px) {
  #section-maitriser {
    padding: 7rem 2rem 3rem 2rem;
    gap: 2.5rem;
    min-height: 70vh;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn1,
  .btn2 {
    min-width: 160px;
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 450px;
  }
}

/* Mobile : <768px - Colonnes empilées verticalement */
@media (max-width: 768px) {
  #section-maitriser {
    flex-direction: column;
    padding: 6rem 1.5rem 3rem 1.5rem;
    gap: 3rem;
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    margin-top: 2.5rem;
    max-width: 100%;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 3rem;
    text-align: center;
  }

  .hero-description {
    font-size: 1.1rem;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .btn1,
  .btn2 {
    width: 100%;
    min-width: auto;
    padding: 1rem 1.5rem;
  }

  .hero-image {
    max-width: 100%;
    order: 1;
  }

  .hero-image img {
    max-width: 100%;
    width: 100%;
  }
}

/* Small Mobile : <420px - Éléments ultra-compacts */
@media (max-width: 420px) {
  #section-maitriser {
    padding: 5rem 1rem 2rem 1rem;
    gap: 2rem;
  }

  .hero-content {
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-buttons {
    max-width: 100%;
    gap: 0.75rem;
  }

  .btn1,
  .btn2 {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .hero-image img {
    max-width: 100%;
    width: 100%;
  }
}

/* footer */

footer {
  color: white;
  animation: fadeInUp 1s ease-out 0.9s both;
}

footer li {
  list-style: none;
}

footer a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.footer1-gitmaster {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #190033;
  height: 15rem;
}

.ul-footer li a {
  display: inline-block;
  padding-bottom: 10px;
  transition: all 0.3s ease;
}

.ul-footer li a:hover {
  color: #2475ff;
  transform: translateX(5px);
}

footer input {
  padding: 10px;
  border: none;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

footer input:focus {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(36, 117, 255, 0.3);
}

footer input[placeholder="Votre email"] {
  width: 200px;
  font-size: 1rem;
}

footer button {
  background-color: #2475ff;
  padding: 5px;
  border: none;
  width: 40px;
  height: 39px;
  position: absolute;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  margin-top: 15px;
  Cursor: pointer;
  transition: all 0.3s ease;
}

footer button:hover {
  transform: scale(1.1);
}

footer i {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

footer i:hover {
  transform: scale(1.1);
}

footer a {
  text-decoration: none;
  color: white;
}

.footer2-gitmaster li {
  list-style: none;
  display: inline;
  margin: 15px;
}

.footer2-gitmaster {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #182e7a;
  height: 4rem;
}

.footer2-gitmaster a:hover {
  border-bottom: #2475ff 3px solid;
}

/* Desktop : >1200px - Menu complet et horizontal */
@media (min-width: 1201px) {
  #header-gitmaster {
    width: 90%;
    padding: 0 30px;
  }

  .nav-menu ul {
    gap: 10px;
  }

  .nav-menu li a {
    padding: 15px 25px;
  }
}

/* Tablet : 768px - 1200px - Menu réduit mais horizontal */
@media (max-width: 1200px) and (min-width: 769px) {
  #header-gitmaster {
    width: 94%;
    padding: 0 20px;
  }

  .nav-menu li a {
    padding: 12px 18px;
    font-size: 0.95rem;
  }

  .title-container h3 {
    font-size: 1.4rem;
  }

  .cta-button {
    padding: 8px 14px;
    font-size: 0.95rem;
  }
}

/* Mobile : <768px - Menu burger avec animation fluide */
@media (max-width: 768px) {
  #header-gitmaster {
    height: 4.5rem;
    padding: 0 15px;
    width: 96%;
  }

  .burger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #182e7a 0%, #1a3a8f 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu li a {
    display: block;
    padding: 20px 30px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem;
    border-bottom: none;
  }

  .nav-menu li a::after {
    display: none;
  }

  .nav-menu li a:hover {
    background: rgba(36, 117, 255, 0.1);
    color: #2475ff;
  }

  .div1-logo-gitmaster {
    gap: 10px;
  }

  .title-container h3 {
    font-size: 1.3rem;
  }

  .div2-logo-gitmaster {
    gap: 12px;
  }

  .cta-button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .footer1-gitmaster {
    flex-direction: column;
    height: auto;
    gap: 20px;
    padding: 24px 16px;
    text-align: center;
  }

  .footer2-gitmaster {
    flex-direction: column;
    height: auto;
    gap: 10px;
    padding: 12px 0;
  }
}

@media (max-width: 576px) {
  header button {
    padding: 8px 12px;
    font-size: 0.95rem;
    margin-right: 8px;
  }

  .ul-footer li a {
    padding-bottom: 6px;
  }

  .floating-ball.ball-2,
  .floating-ball.ball-4 {
    opacity: 0.4;
    filter: blur(1px);
  }
}

/* Small Mobile : <420px - Éléments compacts et adaptés */
@media (max-width: 420px) {
  .footer1-gitmaster {
    margin-top: 4rem;
  }

  #header-gitmaster {
    width: 98%;
    height: 4rem;
    padding: 0 10px;
  }

  .div1-logo-gitmaster {
    gap: 8px;
  }

  .logo-container img {
    width: 35px;
    height: 35px;
  }

  .title-container h3 {
    font-size: 1.1rem;
  }

  .burger-menu {
    width: 25px;
    height: 20px;
  }

  .burger-menu span {
    height: 2px;
  }

  .nav-menu {
    width: 250px;
    padding-top: 70px;
  }

  .nav-menu li a {
    padding: 16px 25px;
    font-size: 1rem;
  }

  .div2-logo-gitmaster {
    gap: 8px;
  }

  .toggle-switch {
    width: 40px;
    height: 22px;
  }

  .slider:before {
    height: 16px;
    width: 16px;
  }

  .toggle-switch input:checked+.slider:before {
    transform: translateX(18px);
  }

  .cta-button {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

.floating-ball.ball-3,
.floating-ball.ball-5 {
  display: none;
}


#cta-section {
  margin: 5rem 0 5rem 0;
  background-color: #190033;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: 2.2rem;
}

.cta-subtitle {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 20px 25px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.cta-primary {
  background-color: #2475ff;
  color: white;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(36, 117, 255, 0.4);
}

.cta-secondary {
  background-color: white;
  color: #2475ff;
}

.cta-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  #cta-section {
    margin: 3.5rem 1rem 0 1rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .cta-title {
    font-size: 1.6rem;
  }

  .cta-buttons a {
    width: 100%;
    text-align: center;
  }
}