/* Reset global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}

:root {
  --background: rgb(255, 255, 255);
  --second-background: rgb(245, 245, 245);
}

/* Body */
body {
  min-height: 100vh;
  background-color: var(--background);
  color: #1a1a1a;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2em 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

ul {
  display: flex;
  align-items: center;
  gap: 3em;
}

nav ul a {
  color: #1a1a1a;
  opacity: 0.7;
  transition: 0.2s ease-in-out;
}

nav ul a:hover {
  opacity: 1;
}

.logo {
  font-size: 2em;
  color: #1a1a1a;
  font-weight: 800;
  opacity: 0.8;
  transition: 0.2s ease-in-out;
}

.logo:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  padding: 0.5em 1em;
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 0.5em;
  font-size: 1.1em;
  border: 2px solid #1a1a1a;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  background-color: #1a1a1a;
  color: var(--background);
}

span {
  background: linear-gradient(to right, #000000, #6b6b6b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#menu {
  color: #1a1a1a;
  font-size: 3em;
  display: none;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 5% 15%;
}

/* Home */
#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  color: #1a1a1a;
}

#home img {
  width: 18vw;
  border-radius: 50%;
  margin-top: 3em;
}

.info-box {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.5em;
  max-width: 600px;
}

.info-box h1 {
  font-size: 5em;
  font-weight: 500;
}

.info-box h1 span {
  white-space: nowrap;
}

.info-box h3 {
  font-size: 2em;
  font-weight: 400;
}

.info-box p {
  opacity: 0.7;
}

.btn-box .btn:nth-of-type(2) {
  background-color: #1a1a1a;
  color: var(--background);
}

.btn-box .btn:nth-of-type(2):hover {
  background-color: var(--background);
  color: #1a1a1a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 20px;
  background-color: var(--background);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #000000, #999999);
}

/* About */
#about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5em;
  flex-direction: row; 
  flex-wrap: nowrap;   
  background-color: rgb(240, 240, 240);
}

#about img {
  width: 35vw;    
  max-width: 450px;
  border-radius: 1em;
}

.about-box {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2em;
  max-width: 600px;
  color: #1a1a1a;
}

.about-box h1 {
  font-size: 5em;
}

.about-box p {
  color: #1a1a1a;
  opacity: 0.8;
}

.skills {
  display: flex;
  text-align: left;
  gap: 10em;
  flex-wrap: wrap;
}

.skills ul {
  font-size: 1.3em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
  opacity: 0.8;
  align-items: baseline;
}

.skills ul li span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.3em;
  transition: 0.3s ease-in-out;
}

.skills ul li span:hover {
  transform: translateX(10px);
}

.skills ul li i {
  font-size: 1.2em;
}

.about-box h2 {
  font-size: 2.5em;
}


#services {
  background: #ffffff;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3.5em;
  margin-top: 4em;
}

/* Carte */
.box {
  background: #fff;
  border-radius: 2em;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 80px rgba(0,0,0,0.12);
}

/* Contenu interne */
.box-inner {
  display: flex;
  flex-direction: column;
}

/* Vidéo plus grande */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Texte aéré */
.content {
  padding: 2.2em 2.2em 2.5em;
}

.content h1 {
  font-size: 1.9em;
  margin-bottom: 0.6em;
}

.content p {
  font-size: 1.05em;
  line-height: 1.7;
  opacity: 0.75;
}

/* Mobile */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }

  .content {
    padding: 1.8em;
  }
}


/* Contact */
#contact {
  background-color: rgb(240, 240, 240);
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2em;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

form .input-box {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  gap: 1em;
  width: 100%;
}

.input-box span {
  font-size: 1.5em;
}

form input {
  font-size: 1.3em;
  padding: 1em 1em;
  border-radius: 0.5em;
  border: 1px solid #ccc;
  outline: none;
  width: 100%;
}

form input:focus {
  background: rgb(245, 245, 245);
}

/* Footer */
footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background-color: var(--background);
  width: 100%;
  padding: 5em 15%;
  flex-wrap: wrap;
  gap: 5em;
}

.col-left {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.col-box {
  display: flex;
  align-items: center;
  gap: 1em;
}

.col-box i {
  font-size: 2em;
}

.col-box span {
  font-size: 1.2em;
}

.col-right {
  display: flex;
  flex-direction: column;
  gap: 1em;
  color: #1a1a1a;
  max-width: 500px;
}

.col-right span {
  font-size: 1.3em;
}

.col-right .social-icons {
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 1em;
}

.col-right .social-icons i {
  font-size: 2em;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.social-icons i:hover {
  color: #555;
}

/* Media Queries */
@media (max-width: 968px) {
  section {
    padding: 8em 10%;
  }

  nav .btn {
    display: none;
  }

  #menu {
    display: block;
  }

  .links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1em 3em;
    color: #1a1a1a;
    display: none;
    flex-direction: column;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
  }

  .links a {
    margin: 2em 0;
    display: block;
    font-size: 1.5em;
    color: #1a1a1a;
  }

  .links.active {
    display: flex;
  }
#home h1 {
  font-size: 2.5em; 
}

#home h3 {
  font-size: 1.5em; 
}

#home p {
  font-size: 1em;
  padding: 0 1em;
}

#home img {
  width: 40vw; 
  max-width: 180px;
  margin-top: 2em;
}

.btn-box .btn {
  font-size: 0.9em;
  padding: 0.5em 0.8em;
}

.btn-box {
  flex-direction: column;
  gap: 1em;
}


  #about {
    flex-direction: column;
    gap: 3em;
    padding: 8em 10%;
  }

  #about img {
    width: 60%;
    max-width: 350px;
  }

  #about h1 {
    font-size: 3em;
  }

  #about ul {
    font-size: 1em;
  }

  .skills {
    gap: 2em;
    flex-direction: column;
  }

  #services .header,
  #contact .header {
    font-size: 3em;
  }

  #contact .input-box span {
    font-size: 1.2em;
  }

  .input-box input {
    padding: 0.8em 1em;
  }
}

/* Footer responsive */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 3em;
    padding: 3em 10%;
  }
}

form textarea {
  font-size: 1.3em;       
  padding: 1em;           
  border-radius: 0.5em;   
  border: 1px solid #ccc;
  outline: none;
  width: 100%;            
  min-height: 150px;      
  resize: vertical;       
}

form textarea:focus {
  background: rgb(245, 245, 245);
}
.logo {
  display: flex;
  align-items: center;
  padding: 0.2em 0; /* ajustable selon la hauteur de la navbar */
}

.logo-img {
  width: 50px;   /* largeur du logo dans la navbar */
  height: 50px;  /* hauteur du logo */
  object-fit: contain;
}
