* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #d300a6;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
body{
  background: var(--bg-color);
  color: var(--text-color);
}
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background:rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#menu-icon{
  font-size: 3.5rem;
  color: var(--main-color);
  display: none;
}

.logo{
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.logo:hover{
 transform: scale(1.1); 
}

span{
  background: linear-gradient(
    270deg,
    #b408df 10%,
    #890a5d 100%
  );
  background-clip: text;
  color: transparent;
}
.navbar a{
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}
.navbar a:hover{
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
.gradient-btn{
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(
    270deg,
    #df08bf 10%, 
    #440431
  );
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: var(--text-color);
  border: none;
  text-wrap: nowrap;
}
.gradient-btn:hover{
  transform: scale(1.05);
}

section{
  min-height: 100vh;
  padding: 10rem 15%;
}
.home{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem
}
.home-content{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.home-content h1{
font-size: 8rem;
font-weight: 700;
margin-top: 1.5rem;
line-height: 1;
}
.home-content h3{
  margin: 1rem 0;
  font-size: 3rem;
}
.home-content p{
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
}
.home-img img{
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.home-img img:hover{
  box-shadow: 0 0 100px var(--main-color);
}
.social-icons a{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50px;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover{
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2)translateY(5px);
  box-shadow: 0 0 25px var(--main-color);
}
.btn-group{
  display: flex;
  gap: 1.5rem;
}
.btn{
  display: inline-block;
  padding: 1rem 3rem;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 3rem;
  font-size: 1.8rem;
  color: #080808;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}
.btn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2){
  background-color: #080808;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: #080808;
}

.about-img{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10rem;
  background-color: var(--second-bg-color);
}
.about-img img{
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.about-img img:hover{
  box-shadow: 0 0 50px var(--main-color);
}
.about-content h2{
  font-size: 7rem;
  text-align: left;
}
.about-content p{
  font-size: 1.8rem;
}
.about-content .btn{
  margin: 3rem 0;
}

::-webkit-scrollbar{
  width: 20px;
}
::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
}

::-webkit-scrollbar-track{
  background-color: var(--bg-color);
}

.heading{
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
}

.service{
background-color: var(--bg-color);
color: #080808;
}
.service h2{
  color: var(--text-color);
}
.service-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2.5rem;
}
.service-box{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 600px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
}
.service-box:hover{
  background-color: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
} 
.service-info{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}
.service-info h4{
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;
}
.service-info p{
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}
.service-info i{
  font-size: 8rem;
}

/* ================= PROJECTS ================= */
.projects {
  background: var(--second-bg-color);
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  padding: 4rem 2rem;
  text-align: center;
  transition: 0.3s ease-in-out;
  width: 100%;
}

.project-card:hover {
  box-shadow: 0 0 50px var(--main-color);
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  max-width: 260px;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 2.6rem;
}

.project-card p {
  font-size: 1.5rem;
  line-height: 1.6;
}







.contact {
  background-color: var(--bg-color);
}

.contact form {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.input-group,
.input-group-2 {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.input-box label {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.input-box input,
.input-box textarea {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--main-color);
  background: transparent;
  color: var(--text-color);
  font-size: 1.5rem;
  resize: none;
}

.input-box input:focus,
.input-box textarea:focus {
  outline: none;
  box-shadow: 0 0 15px var(--main-color);
}

.contact .btn {
  margin-top: 2rem;
}






.footer {
  background: var(--second-bg-color);
  padding: 5rem 15%;
  color: var(--text-color);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-about {
  flex: 1 1 250px;
}

.footer-about h3 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-links {
  flex: 1 1 150px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: #ccc;
  font-size: 1.4rem;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: var(--main-color);
}

.footer-social .social-icons a {
  font-size: 2.5rem;
  margin-right: 1.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #222;
  font-size: 1.3rem;
  color: #aaa;
}




/* RESPONSIVE */



@media (max-width: 991px) {
  #menu-icon { display: block; }
  .navbar { display: none; }
  .home { flex-direction: column-reverse; gap: 3rem; text-align: center; }
  .home-content { align-items: center; text-align: center; }
  .about-img { flex-direction: column; text-align: center; }
}

@media (max-width: 360px) {
  html { font-size: 52%; }
  section { padding: 7rem 5%; }
  .home-img img, .about-img img { width: 65vw; }
  .btn-group { flex-direction: column; width: 100%; }
}

@media (max-width: 600px) {
  .input-group,
  .input-group-2 {
    flex-direction: column;
    gap: 1.5rem;
  }
}




/* Styles du burger et menu mobile */
@media (max-width: 991px) {
  /* Burger icon */
  #menu-icon {
    display: block;
    font-size: 3.5rem;
    color: var(--main-color);
    cursor: pointer;
    z-index: 1002;
    transition: 0.3s ease-in-out;
  }

  #menu-icon:hover {
    transform: scale(1.2);
  }

  /* Navbar mobile */
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background-color: var(--second-bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.5s ease-in-out;
    padding: 2rem;
    z-index: 1001;
    border-left: 3px solid var(--main-color);
    box-shadow: -5px 0 25px rgba(63, 2, 42, 0.5);
  }

  .navbar.active {
    right: 0;
  }

  /* Les liens du menu */
  .navbar a {
    font-size: 2.5rem;
    color: var(--text-color);
    padding: 1rem 3rem;
    border-radius: 2rem;
    transition: 0.3s ease-in-out;
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(270deg, #df08a6 10%, #7c0458);
    color: #080808;
    font-weight: 600;
    box-shadow: 0 0 20px #43032f;
  }

  .navbar a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px #03337c;
    background: #080808;
    color: var(--main-color);
  }

  /* Masquer le bouton gradient principal sur mobile */
  .gradient-btn {
    display: none;
  }
}


@media (max-width: 991px) {

  #menu-icon {
    display: block;
    cursor: pointer;
    z-index: 1002;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--second-bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: 0.4s ease-in-out;
    z-index: 1001;
    display: flex;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    font-size: 2.5rem;
    margin: 0;
  }

  .gradient-btn {
    display: none;
  }
}



/* ================= ULTRA MOBILE 320px ================= */
@media (max-width: 320px) {

  html {
    font-size: 50%; /* Réduit légèrement toute l’échelle */
  }

  section {
    padding: 6rem 4%;
  }

  /* HEADER */
  .header {
    padding: 1.5rem 4%;
  }

  .logo {
    font-size: 2rem;
  }

  #menu-icon {
    font-size: 2.8rem;
  }

  /* HOME */
  .home {
    gap: 2rem;
  }

  .home-content h1 {
    font-size: 3.2rem;
  }

  .home-content h3 {
    font-size: 1.8rem;
  }

  .home-content p {
    font-size: 1.3rem;
  }

  .home-img img {
    width: 75vw;
  }

  .btn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* ABOUT */
  .about-img {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .about-img img {
    width: 75vw;
  }

  .about-content h2 {
    font-size: 3.2rem;
  }

  .about-content p {
    font-size: 1.4rem;
  }

  /* SERVICES */
  .service-box {
    padding: 2.5rem 1.5rem;
  }

  .service-info h4 {
    font-size: 2.2rem;
  }

  .service-info p {
    font-size: 1.3rem;
  }

  /* PROJECTS */
  .project-card {
    padding: 2.5rem 1.5rem;
  }

  .project-card h3 {
    font-size: 2rem;
  }

  .project-card p {
    font-size: 1.3rem;
  }

  /* CONTACT */
  .input-group,
  .input-group-2 {
    flex-direction: column;
    gap: 1.2rem;
  }

  .input-box label {
    font-size: 1.3rem;
  }

  .input-box input,
  .input-box textarea {
    font-size: 1.3rem;
    padding: 1.2rem;
  }

  .contact .btn {
    width: 100%;
  }

  /* FOOTER */
  .footer {
    padding: 3rem 4%;
    text-align: center;
  }

  .footer-about p {
    font-size: 1.2rem;
  }

  .footer-links ul li a {
    font-size: 1.4rem;
  }
}



@media (max-width: 600px) {
  .projects-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-card {
    padding: 3rem 1.5rem;
  }

  .project-card h3 {
    font-size: 2.2rem;
  }

  .project-card p {
    font-size: 1.4rem;
  }
}


@media (max-width: 320px) {
  .project-card {
    padding: 2.5rem 1.2rem;
  }

  .project-card img {
    max-width: 200px;
  }

  .project-card h3 {
    font-size: 2rem;
  }

  .project-card p {
    font-size: 1.3rem;
  }
}
