/* Animation body */

html, body {
	width:100%; 
	height:100%; 
	padding:0px; 
	margin:0px;
	overflow: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  z-index: auto;
	max-width: 100vw;
	background: #191d1e; /* Old browsers */
	background: -moz-linear-gradient(0deg,  #191d1e 50%, #283139 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right bottom, color-stop(50%,#191d1e), color-stop(100%,#283139)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(0deg,  #191d1e 50%,#283139 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(0deg,  #191d1e 50%,#283139 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(0deg,  #191d1e 50%,#283139 100%); /* IE10+ */
	background: linear-gradient(0deg,  #191d1e 50%,#283139 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#191d1e', endColorstr='#283139',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
	background-attachment: fixed
}

#projector {
  position: absolute; 
  top: 0px;
  left: 0px;
  width:100%;
  height: 100%;
  display: block;
  pointer-events: none;
} 

.center-div {
	width:580px;
    height:374px;
    position:absolute;
    left:50%;
    top:50%;
    margin-left: -290px;
    margin-top:  -187px;
}

#preloaderDiv
{
	position:absolute;
	left:50%;
  top:50%;
  margin-left: -27px;
  margin-top:  -27px;
}

#logo{
	opacity:0;
    filter: alpha(opacity=0);
}

#date2014
{
	position:absolute;
	padding-left: 210px;
	padding-top:15px;
	opacity:0;
	top:303px;
	left:0;
  filter: alpha(opacity=0);
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* PAS -1 */
  pointer-events: none; /* très important */
  overflow: hidden;
}

#particles-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/*~~~~~~~~~~~~~~~~~~*/

/* Header */

header {

    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(8px);
    z-index: 1000;

}

.header-scnd {
  height: 140px;
  transition: height 0.3s ease, background-color 0.3s ease;
}

/* Header Animation */

.header-scrolled {
  background-color: #1c1c1c;
  transition: background-color 0.3s ease;
}

/* Centrage et alignement */

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    transition: height 0.3s ease;
}

/*Over-all nav bar */ 

.main-nav {

    flex: 1;

}

.nav-link {

    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;

}

/* Nav links */

.nav-link a, .offscreen-menu a {

    text-decoration: none;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 2.25rem;
    transition: color 0.3s;

}

.offscreen-menu li {
  list-style: none;
  justify-content: center;
}

.nav-link a:hover {

  color: #cfaf50; /* Exemple : or doux */

}

/* Logo navigation */

.logo-reload-page img {

    max-height: 200px;
    width: auto;

}

.logo-reload-page img :hover {

    cursor: pointer;

}

/*contact header*/

.contact-wrapper {

    display: flex;

}

.contact-wrapper .btn-primary {

    padding: 10px 20px;
    background-color: #cfaf50;
    color: #333;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s;

}

.contact-wrapper .btn-primary:hover {

    background-color: #a67c00;

}

.hero-service-bouton .btn-primary {
    padding: 10px 20px;
    background-color: #cfaf50;
    color: #333;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.hero-service-bouton .btn-primary:hover {
    background-color: #a67c00;
}

/* Icône menu (mobile) */
.menu-toggle {

    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;

}

.menu-toggle span {

    width: 25px;
    height: 3px;
    background: white;
    display: block;
    border-radius: 2px;
    
}

/* Menu Toggle */

.offscreen-menu {
    background-color: #333;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    transition: .3 ease;
}

/* Toggle active */

.offscreen-menu.active {
    right: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Responsiveness header*/

@media (max-width: 768px) {

    .nav-link {
        display: none; /* Masquer nav */
    }

    .contact-wrapper {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

}
/*~~~~~~~~~~~~~~~~~~*/

/* Main */

main {
  box-sizing: border-box;
  width: 100%;
  z-index: 1;
}

/*~~~~~~~~~~~~~~~~~~*/

/*Hero Section*/

.container-for-hero {
  position: relative;
  max-width: 1000px;
  padding: 0 16px;
  z-index: 2;
}

.hero-container, .hero-service, .hero-contact, .hero-reference, .hero-mention-legale {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  z-index: 2;
}

.hero-service, .hero-reference, .hero-mention-legale {
  padding-top: 140px;
}

.hero-contact{
  padding-top: 200px;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  z-index: 2;
}

.phone-link {
  position: relative;
  display: inline-block;
  cursor: pointer;
  z-index: 90;
}

.phone-link .icon-phone {
  width: 300px;
  height: 300px;
  fill: white;
  transition: fill 0.3s ease;
}

.phone-icon-wrapper {
  width: 350px;
  height: 350px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.icon-phone {
  pointer-events: auto;
}

.phone-link:hover .icon-phone {
  fill: #cfaf50;
}

.phone-link:hover .phone-icon-wrapper {
  border: 2px solid #4169E1;
}

.hero-service-title h1, .hero-contact-title h1, .hero-reference-title h1, .hero-mention-legal-title h1 {
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 5rem;
}

/*Hero Responsiveness*/

@media (min-width: 768px) {

  @media screen and (min-width: 768px) {
    main {
      padding-top: 50px !important; /* Ajuste selon la vraie hauteur du header desktop */
    }
  }

  .hero {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .hero__photo {
    order: 2;
    margin-left: 3rem;
    position: relative;
  }

  .hero__photo::before {
    content: "";
    border: 2px solid var(--color-accent);
    width: 300px;
    height: 353px;
    position: absolute;
    left: -10px;
    bottom: -10px;
    opacity: .3;
    z-index: 1;
  }
}

.hero__subtitle {
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  line-height: 20px;
}

.hero__title {
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 46px;
  margin-top: 1rem;
}

.hero__footer {
  display: flex;
  flex-direction: column;
  writing-mode: vertical-rl;
  font-size: 1rem;
  padding-top: 1rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero__footer {
    flex-direction: row;
    padding-top: 2rem;
  }
  .hero__footer .btn {
    margin-right: 1rem;
  }
}

/*~~~~~~~~~~~~~~~~~~*/


/*Infos Section*/

.infos-expertise {
  max-width: 100%;
  padding: 4rem 2rem;
  gap: 2rem;
  background-color: #fafafa;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.container-infos {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;  
}

.presentation {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Pre-sizing*/

.presentation-wrapper,
.presentation__content,
.presentation__media {
  max-width: 100%;
  box-sizing: border-box;
  background-color: #fafafa;
}

/*End pre-sizing*/

.presentation__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%; 
  flex: 1 1 300px;
  max-width: 100%;
  min-width: 0;
}

.presentation__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.presentation__text {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
  word-break: break-word;
}

.presentation__media {
  display: flex;
  align-items: center;     
  justify-content: center;
  flex: 1 1 300px;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  padding: 1rem;
  box-sizing: border-box;
  background-color: #fafafa;
}

.presentation__media img {
  flex: 1 1 250px;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
}

/*Responsiveness*/

@media (max-width: 768px) {
  .presentation {
    flex-direction: column;
    align-items: center;
  }

  .presentation__content,
  .presentation__media {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Qualities & Skills */

.complement-infos {
  padding: 4rem 0;
  background-color: #fafafa;
}

.qualities-title {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
}

.grid-qualities {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.qualities-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.qualities-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: .5rem;
  color: #222;
}

.qualities-card p {
  font-family: "Inter", sans-serif;
}

/* Safety responsiveness */

@media (max-width: 768px) {
  .qualities-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Section additionnal and background images */

.detail-additional {
  position: relative;
  padding: 4rem 0;
  background-image: url("img/pexels-divinetechygirl-1181271.jpg"); /* ou .png, .webp */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white; /* ou noir + fond transparent selon l’image */
  z-index: 1;
}

.hero-service {
  position: relative;
  background-image: url("img/pexels-pixabay-265152.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1;
}

.hero-contact {
  position: relative;
  background-image: url("img/pexels-roberto-hund-5356627.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1;
}

.hero-reference {
  position: relative;
  background-image: url("img/pexels-fauxels-3183153.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1;
}

.hero-mention-legale {
  position: relative;
  background-image: url("img/pexels-ekaterina-bolovtsova-6077181.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  z-index: 1;
}

.detail-additional::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-service::before {
    content: "";
    position: absolute;
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-contact::before {
    content: "";
    position: absolute;
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-reference::before {
    content: "";
    position: absolute;
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-mention-legale::before {
    content: "";
    position: absolute;
    display: block;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.detail-additional .container-detail-additionnal {
  position: relative;
  z-index: 1;
}

.additionnal-title {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
}

.additionnal-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.additionnal-text {
  flex: 1 1 300px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.additionnal-text p,
.additionnal-text ul {
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.additionnal-media img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: #cfaf50;
  font-family: "Space Grotesk", sans-serif;
  font-weight: bold;
  color: black;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.detail-button:hover {
  background-color: #a67c00;
}

/* Responsiveness */

@media (max-width: 768px) {
  .additionnal-content {
    flex-direction: column;
    text-align: center;
  }

  .additionnal-media {
    order: -1;
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Section info */

.infos-contact {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin-top: 2rem;
}

.info-phone {
  color: white;
  font-weight: bold;
  font-size: 3rem;
  text-decoration: none;
}

.info-mail {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/*~~~~~~~~~~~~~~~~~~*/

/* Footer style */

.footer-wrapper {
  background-color: #1e1e1e;
  color: #f4f4f4;
  padding: 2rem 0;
}

.footer-logo-contact .footer-logo img {
  height: 100px;
  width: auto;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
}

.footer-logo-contact, .footer-nav, .footer-social {
  flex: 1 1 200px;
  min-width: 150px;
}

.footer-logo-contact .footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f4f4f4;
  text-decoration: none;
}

.footer-contact a {
  display: block;
  color: #f4f4f4;
  text-decoration: none;
  margin-top: 0.5rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li + li {
  margin-top: 0.5rem;
}

.footer-nav a {
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffd700;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link .icon {
  width: 32px;
  height: 32px;
  fill: #f4f4f4;
  transition: fill 0.3s ease;
}

.social-link:hover .icon {
  fill: #cfaf50;;
}

.footer-social a {
  display: inline-block;
  margin-right: 1rem;
  color: #f4f4f4;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.875rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
}

/* Footer responciveness */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social a {
    margin: 0 0.5rem;
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Services */

.wrapper-service-design,
.wrapper-service-prototypage,
.wrapper-service-dev,
.wrapper-service-maintenance {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
}

.wrapper-service-text {
  flex: 1;
  padding: 1rem;
}

.wrapper-service-media {
  flex: 1;
  height: 100%;
  min-height: 400px;
  display: flex;
  background-size: cover;
  background-position: center;
  align-items: stretch;
}

.wrapper-service-design, .wrapper-service-dev {
  background-color: white;
}

.wrapper-service-prototypage .wrapper-service-media {
  min-height: 350px;
}

.wrapper-service-media img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Stop image distortion */
}

.container-text-title h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.wrapper-service-prototypage .container-text-title h2,
.wrapper-service-maintenance .container-text-title h2 {
  color: #cfaf50;
  font-weight: bold;
}

.wrapper-service-dev .container-text-title h2,
.wrapper-service-design .container-text-title h2 {
  color: #4169E1;
  font-weight: bold;
}

.container-text-paragraph p {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.wrapper-service-prototypage .container-text-paragraph p,
.wrapper-service-maintenance .container-text-paragraph p {
  color: white;
}

#blue-mark {
  background: none;
  color: #4169E1;
  font-weight: 900;
}

#or-mark {
  background: none;
  color: #cfaf50;
  font-weight: 900;
}

/* Responsive service */

@media screen and (max-width: 768px) {
  .wrapper-service-design,
  .wrapper-service-prototypage,
  .wrapper-service-dev,
  .wrapper-service-maintenance {
    flex-direction: column !important;
    text-align: center;
  }

  .wrapper-service-text {
    width: 90%;
  }

  .wrapper-service-media {
    display: none;
  }

  .wrapper-service-maintenance .wrapper-service-media {
    display: block;
    width: 100%;
    height: 200px; /* ou selon besoin */
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Contact */

.contact-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
}

.checkbox-group {
  display: flex;
  align-items: center;
  width: 80%;
}

.checkbox-group input[type="checkbox"] {
  width: 200px;
  margin: 0 4px 0 0;
  padding: 0;
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
}

.btn-submit {
  background-color:#cfaf50;
  color: black;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  display: block;
  margin: 0 auto;
}

.btn-submit:hover {
  background-color: black;
  color: white;
}

/* Responsiveness */

@media (max-width: 600px) {
  .contact-container {
    padding: 20px;
  }
}

/* Message erreure */

.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

/*~~~~~~~~~~~~~~~~~~*/

/* Référence */ 

.mise-à-jour {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  z-index: 2;
  background-color: white;
}

@media(max-width: 600px){
  .hero-reference-title h1 {
    font-size: 3rem;
  }
}

/*~~~~~~~~~~~~~~~~~~*/

/* Mention legale */

.wrapper-legale {
  background-color: white;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333;
  line-height: 1.6;
  background-color: white;
}

.legal-page .legal-section {
  margin-bottom: 2.5rem;
}

.legal-page .legal-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #000;
}

/* Responcive mention */

@media (max-width: 600px) {
  .legal-page {
    padding: 30px 15px;
  }

  .hero-mention-legal-title h1 {
    font-size: 1.75rem;
  }
}

/*~~~~~~~~~~~~~~~~~~*/