/* General reset */
body, h1, h2, p {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}
body {
    background-color: #181818;
    align-items: center;
    color: #ffffff;
    line-height: 1.6;
}

/* Main Header */
.main-header {
    background-color: #222222;
    color: #ffffff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img {
    height: 80px;
    width: auto;
    border-radius: 50%;
}
.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar ul li a {
    text-decoration: none;
    color: #cccccc;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}
.navbar ul li a:hover {
    color: #ffffff;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: white;
    transition: transform 0.3s, background-color 0.3s;
}
.navbar.active {
    display: block;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #242424;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
@media screen and (max-width: 768px) {
    .navbar ul {
        display: none;
        flex-direction: column;
        gap: 15px;
    }
    .menu-toggle {
        display: flex;
    }
    .navbar.active ul {
        display: flex;
    }
}

/* Hero section */
.hero {
    background: linear-gradient(to bottom right, #333333, #444444);
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Solutions Section */
.solutions {
    background-color: #242424;
    padding: 50px 20px;
    text-align: center;
}
.solutions h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-align: center;
}

/* Grid Section */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.grid-item {
    background-color: #292929;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.1);
}
.grid-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #cccccc;
    transition: color 0.3s ease;
}
.grid-item:hover h3 {
    color: #ffffff;
}
.grid-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Section Portfolio */
.portfolio {
    padding: 60px 20px;
    background-color: #3a3a3a;
    color: #ffffff;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffcc00;
}

.portfolio p {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 40px;
}

/* Style de la section projet */
.project-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1000px;
}

.project-image {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.project-image:hover {
    transform: translateZ(20px);
}

/* Bouton sous l'image */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #202020;
    color: #e0e0e0;
    border: 1px solid #000000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    background-color: #616161;
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #202020;
    color: #cccccc;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}
.footer p {
    margin: 0;
    color: #999999;
}

/* Services Section */
.services-section {
    padding: 50px 20px;
    background-color: #242424;
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service {
    background-color: #292929;
    color: #ffcc00;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 4px 6px #ffcc0055;
}

.service svg {
    margin-left: 20px;
    height: 100px;
    width: 100px;
    text-align: left;
}
.service-content {
    padding: 20px;
    padding-top: 0px;
    text-align: center;
}
.service-content h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.service-content p {
    font-size: 1rem;
    color: #ffffff;
}

/*Portfolio*/

.roadmap {
    text-align: center;
    padding: 50px 20px;
    background-color: #242424;
}
.roadmap h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 40px;
}
.timeline {
    position: relative;
    margin: 0 auto;
    width: 80%;
    padding: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #ffcc00, #ffcc0000);
}
.step {
    position: relative;
    margin: 20px 0;
    padding-left: 30px;
}
.step .content {
    background-color: #292929;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}
.step:hover .content {
    transform: scale(1.05);
    box-shadow: 0 4px 6px #ffcc0055;
}

/* A propos*/

.about {
    padding: 35px 20px;
    background-color: #242424;
    text-align: center;
}

.about-section {
    background-color: #292929;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .about-description {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 35px;
  }
  
  .about-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    margin: auto;
  }
  
  .about-text {
    flex: 1;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    line-height: 1.8;
  }
  
  .about-text h1 {
    font-size: 28px;
    color: #ffcc00ad;
    font-weight: bold;
  }

  .about-text h4 {
    font-size: 16px;
    color: #ffcc00ad;
    margin-top: 0px;
    font-weight: bold;
  }
  
  .about-text p {
    font-size: 16px;
    text-align: justify;
    margin-bottom: 20px;
  }
  
  .about-text a {
    color: #4f46e5; 
    text-decoration: none;
    font-weight: bold;
  }
  
  .about-text a:hover {
    text-decoration: underline;
  }  

/* Section des compétences */
.skills-container {
    display: flex;
    gap: 60px; 
    justify-content: center;
    flex-wrap: wrap;
    margin: 50px auto;
    margin-bottom: 0px;
}

.skills {
    flex: 1;
    max-width: 400px;
    background-color: #292929;
    border-radius: 12px;
    padding: 20px 30px;
    margin: auto 0px;
}
  
  .skills h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffcc00ad;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #323232;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px #ffcc0055;
}
  
  .skill-item svg {
    height: 30px;
    color: #ffcc00ad;
    margin-bottom: 10px;
  }
  
  .skill-item span {
    font-size: 1rem;
    color: #ffffff;
  }

/* Contact */
.section-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: #121212; 
    color: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 600px;
    background-color: #1e1e1e; 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.title-form {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

.form-group-name {
    display: flex;
    gap: 20px; 
    margin-bottom: 20px;
}

.input, .input-message, .form-select {
    width: calc(100% - 20px); 
    padding: 10px;
    border: 1px solid #333333;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    margin: 0 10px 20px 10px;
    box-sizing: border-box;
    font-size: 1rem;
}

.input-message {
    resize: vertical;
    min-height: 100px;
}

.captcha-container {
    margin-top: 20px;
    padding: 0 10px;
}

.success, .error {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.success {
    background-color: #2e7d32;
    color: #a5d6a7;
    border: 1px solid #1b5e20;
}

.error {
    background-color: #b71c1c; 
    color: #ffcdd2;
    border: 1px solid #880e4f;
}

#btn-c {
    width: 100%;
}

@media (max-width: 768px) {
    .form-group-name {
        flex-direction: column;
        gap: 0;
    }
}
