body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* :root {
  --primary: #5e2ca7;
  --secondary: #ff8a00;
  --text: #333;
  --bg-light: #f9f5fb;
} */

html {
  scroll-behavior: smooth;
}

/* Nav */
.main-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px;
  margin: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a,
.main-nav a:link,
.main-nav a:visited {
  color: #5e2ca7;
  font-weight: bold;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  box-shadow: inset 0 -2px 0 currentColor;
}

.main-nav a {
  display: inline-block;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.main-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* Navigation list for accessibility */
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1;
  justify-content: space-evenly;
  max-width: 1200px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 4px;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.nav-list a:hover {
  transform: scale(1.05);
}

.nav-list a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.logo-name {
  max-width: 190px;
  height: auto;
}

.main-title {
  color: #fff;
  font-size: 30px;
  margin: 0;
}
/* Header */
.header {
  position: relative;
  text-align: center;
  color: #fff;
  background-image: url("../assets/illustrations/artemislab-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  /* min-height: 60vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

.header-overlay {
  display: none;
}

.header-text {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.header-text img {
  max-width: 300px;
  width: 50%;
  height: auto;
}

.header-text h1 {
  font-size: 4.5rem;
  margin: 20px;
}

.header-text h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 40px 0;
  max-width: 1050px;
  color: #fff;
}

.cta {
  background-color: #ff8a00;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 21px;
  border-radius: 5px;
  cursor: pointer;
  margin: 20px;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  background-color: #e67600;
  transform: scale(1.05);
}

/* About */

.about-section {
  padding: 40px 20px;
  background-color: #f9f5fb;
  text-align: center;
  align-items: center;
}
h2 {
  color: #5e2ca7;
  font-size: 24px;
  margin-bottom: 10px;
}

.about-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  max-width: 1150px;
  margin: auto;
  padding: 0px 30px 0px 30px;
}

.about-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Services */

.services {
  text-align: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  align-items: center;
  max-width: 1300px;
  margin: 40px auto;
  padding: 0px 30px 0px 30px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.service-card {
  background: #fff;
  border: 1px solid #e6ddf0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: default;
  align-items: center;
  width: 210px;
  max-width: 210px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card h3 {
  margin: auto;
  font-size: 1.2rem;
  color: #5e2ca7;
}

.service-card p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: #5e2ca7;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #5e2ca7;
}

.service-card:hover .service-icon,
.service-card:focus-visible .service-icon {
  color: #ff8a00;
}

/* Projects */
.projects {
  text-align: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  align-items: center;
  max-width: 1200px;
  margin: 50px auto 70px auto;
  padding: 0px 30px 0px 30px;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.project-card {
  background: #fff;
  border: 1px solid #e6ddf0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 20px;
  padding: 20px;
  transition: transform 0.3s ease;
  align-items: center;
  width: 350px;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: #5e2ca7;
}

.project-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.2rem;
  color: #5e2ca7;
}

.project-card p {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 10px;
}

.project-card a {
  color: #ff8a00;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover,
.project-card a:focus-visible {
  text-decoration: underline;
}

/* Carrousel réalisations */
.carousel {
  position: relative;
  margin: 40px auto;
  --gap: 12px;
  max-width: 1200px;
  padding: 0 24px; /* espace pour les flèches visibles sans déborder */
}
.carousel__track-container {
  overflow: hidden;
}
.carousel__track {
  display: flex;
  gap: var(--gap);
  align-items: center;
  will-change: transform;
  transform: translateX(0);
  list-style: none;
  margin: 0;
  padding: 0;
}
.carousel__slide {
  flex: 0 0 390px;
  width: 390px;
  height: 195px;
  box-sizing: border-box;
  padding: 0 calc(var(--gap) / 2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff8a00;
  color: #fff;
  border: 0;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.carousel__nav svg {
  display: block;
  width: 18px;
  height: 18px;
}
.carousel__nav:focus {
  outline: 3px solid #fff;
}
.carousel__nav--prev {
  left: 8px;
}
.carousel__nav--next {
  right: 8px;
}

@media (min-width: 800px) {
  /* Desktop: uniform larger slides */
  .carousel__track > .carousel__slide {
    flex: 0 0 630px;
    width: 630px;
    height: 315px;
  }
  .carousel__track > .carousel__slide img {
    width: 100%;
    height: 100%;
  }
  .carousel__nav--prev {
    left: 8px;
  }
  .carousel__nav--next {
    right: 8px;
  }
}

@media (max-width: 420px) {
  .carousel {
    padding: 0 8px;
  }
  .carousel__track > .carousel__slide {
    flex: 0 0 330px;
    width: 330px;
    height: 165px;
  }
  .carousel__track > .carousel__slide img {
    width: 100%;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    transition: none;
  }
}

/* Process */
.process {
  padding: 4rem 1.5rem;
  background: #f9f9ff;
}

.process h2 {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 2rem;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  align-items: center;
}

/* Numérotation automatique */
.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e0ff;
}

.process-step-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #f0f0ff;
}

.process-step-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.process-step-content p {
  margin: 0;
  line-height: 1.6;
}

.process-step-content strong {
  display: block;
  margin-top: 0.5rem;
  color: #4f46e5;
}

.process-conclusion {
  margin-top: 4rem;
  text-align: center;
}

.process-conclusion h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.process-cta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  background: linear-gradient(90deg, #5e2ca7 0%, #ff8a00 100%);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.process-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(94, 44, 167, 0.3);
}

.process-cta-title {
  font-size: 1.15rem;
  font-weight: 400;
}

.process-cta-action {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem;
}

.process-cta-note {
  font-size: 1.15rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .process h2 {
    font-size: 1.6rem;
  }

  .process-steps li {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .process-step-icon {
    margin: 0 auto;
  }

  .process-steps li::before {
    top: 0.75rem;
    right: 1rem;
    font-size: 2rem;
  }

  .process-conclusion h4 {
    font-size: 1.2rem;
  }

  .process-cta {
    padding: 1rem 1.5rem;
  }

  .process-cta-title {
    font-size: 1rem;
  }
}

/* Footer */
.footer-highlight {
  background-color: #ff8a00;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
}

.footer-highlight p {
  font-size: 18px;
  margin: 0 0 5px 0;
  color: black;
}

.footer-highlight address {
  font-style: normal;
}

.footer-cta {
  background-color: #5e2ca7;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  margin: 6px 0 12px 0;
  text-decoration: none;
  display: inline-block;
}

.footer-cta:hover {
  background-color: #4b238f;
  transform: scale(1.02);
}

.footer-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.footer-main {
  background-color: #5e2ca7;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin: 0;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  /* increase clickable area */
  display: inline-block;
  padding: 8px 10px;
}
.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.footer-socials p {
  display: inline;
  text-align: center;
  font-size: 14px;
  margin: 0;
  font-weight: bold;
}

.social-media-icon {
  margin: 6px;
  width: 30px;
  height: auto;
}

/* Make the logo link easier to tap */
.logo-link {
  display: inline-block;
  padding: 6px;
  margin-right: 8px;
}
.logo-link img {
  display: block;
  max-width: 150px;
  height: auto;
}

@media (max-width: 768px) {
  .footer-link {
    padding: 10px 12px;
  }
  .logo-link {
    padding: 8px;
  }
}

.social-media-icon:hover,
.social-media-icon:focus-visible {
  transform: scale(1.1);
}

/* Mentions légales */

.legal {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.legal h2,
.legal h3 {
  color: #5e2ca7;
  padding: 0;
  margin: 25px 0 5px 0;
}

.legal p {
  padding: 0;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  /* tablettes */
  .services-list {
    flex-wrap: wrap;
  }
  .service-card {
    width: 45%;
    margin: 10px;
    padding-top: 15px;
  }
}

@media (max-width: 768px) {
  /* mobiles */
  .main-nav {
    flex-direction: column;
    gap: 10px;
  }
  .service-card {
    width: 90%;
    margin: 10px auto 20px auto;
    padding-top: 20px;
    display: flex;
    justify-content: center;
  }
  .header-text h1 {
    font-size: 3rem;
  }
  .header-text h2 {
    font-size: 1.4rem;
  }

  .services-list {
    align-items: center;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links {
    padding: 0 10px;
  }
}

@media (max-width: 500px) {
  .header-text h1 {
    font-size: 2.5rem;
  }
  .header-text h2 {
    font-size: 1.2rem;
  }
  .header-text {
    padding: 1rem;
  }

  .nav-list {
    padding: 10px;
    flex-direction: column;
    gap: 3px;
  }
}
