/* Corps du site */
html {
  scroll-behavior: smooth;
  font-family: 'Times New Roman', Times, serif
}

body {
  margin: 0;
  line-height: 1.6;
}

/* Barre de menu flottante */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width:auto;
  padding-inline: 2%;
  padding: 5px 20px;
  padding-block: calc(0.5rem + 0.3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  z-index: 1000;
  background: white;
  border-radius: 30px;
}

.header.scrolled {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width:auto;
  padding-inline: 5%;
  padding: 5px 20px;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 30px;
}

.nav {
  display: flex;
  justify-content: space-evenly; /* répartit l’espace automatiquement */
  align-items: center;
  flex-wrap: nowrap; /* si vraiment trop petit, passe à la ligne */
  gap: 30px;
  flex-direction: row ;
}

.nav a {
  margin: 0 10px;
  text-decoration: none;
  color: black;
  transition: color 0.3s;
  font-size: clamp(0.5rem, 4vw, 1rem)
}

.nav a:hover, .nav a.active {
  color: #0078ff;
}

/* Structure menu */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav li {
  position: relative;
}

/* Dropdown caché par défaut */
.dropdown-content {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px); /* légèrement en bas */
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* évite de cliquer quand c’est invisible */
  position: absolute;
  top: 100%; /* sous le bouton */
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 150px;
  z-index: 999;
}

.dropdown-content.scrolled {
  display: flex;
  flex-direction: column;
  opacity: 0;
  position: absolute;
  transform: translateY(10px); /* légèrement en bas */
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none; /* évite de cliquer quand c’est invisible */
  top: 100%; /* sous le bouton */
  left: 0;
  background:  white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 55px;
  z-index: 999;
}

.dropdown-content li a {
  padding: 10px;
  color: #111;
  opacity: 1;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Items */
.dropdown-content li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Apparition au survol */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  min-width: 150px;
  transform: translateY(0);
  pointer-events: auto; /* réactive les clics */
}

.dropdown:hover .dropdown-content.scrolled {
  display: block;
  opacity: 1;
  min-width: 55px;
  transform: translateY(0);
  pointer-events: auto; /* réactive les clics */
}

/* Cascade d’apparition */
.dropdown:hover .dropdown-content li {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content li:nth-child(1) {
  transition-delay: 0.1s;
}
.dropdown-content li:nth-child(2) {
  transition-delay: 0.2s;
}

/* Bouton */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #0078ff;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: background 0.3s;
  font-size: clamp(1rem, 5vw, 1.5rem)
}

.btn:hover {
  background: #005fcc;
}

/* Fond du site */
.fond1 {
  position: relative;
  height: 100vh;
  background-image: url("../assets/images/fond1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.fond1parallax {
  background: url('../assets/fond1.jpg') no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  z-index: -1;
}

.fond2 {
  position: relative;
  height: auto;
  background-image: url("../assets/images/fond2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

}

.fond2parallax {
  background: url("../assets/images/fond2.jpg") no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  z-index: -1;
}

.fond3 {
  position: relative;
  height: auto;
  background-image: url("../assets/images/fond3.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

}

.fond3parallax {
  background: url("../assets/images/fond3.jpg") no-repeat center center/cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
  z-index: -1;
}


/* Fondu et chargement du site */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fade-int {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-int.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in-page {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Polices du site */
.titre{
  color: white;
	text-shadow: 2px 2px 5px rgba(0,0,0,1);
  margin-top: 50px;
  text-align: center;
  font-size: clamp(0.1rem, 7vw, 2.75rem);
}

.titre-sections{
  text-align: center;
  margin-top: 150px;
  color: black;
  font-size: clamp(1rem, 5vw, 2rem)
}

h1 {
	color: white;
	text-shadow: 2px 2px 5px rgba(0,0,0,1);
  margin-top: 50px;
  text-align: center;
  font-size: clamp(1rem, 5vw, 2rem)
}

h2 {
	margin: 0;
}

h3 {
	font-size: clamp(1rem, 5vw, 2rem)
}

h4{
  color: black;
  margin-top: 100px;
  text-align: center;
  font-size: clamp(0.1rem, 2vw, 2rem)
}

p1 {
	color: white;
	text-shadow: 2px 2px 5px rgba(0,0,0,1);
  font-size: clamp(1rem, 5vw, 1.5rem)
}

p2 {
	color: black;
  font-size: clamp(1rem, 5vw, 1.2rem)
}

p4 {
	color: black;
  font-size: clamp(0.1rem, 2vw, 1.7rem);
  display: flex;
  padding-right: 15%;
  padding-left: 15%;
  text-align: justify;
}

p7 {
	color: black;
}

h27 {
	color: black;
  
}


/* Section solutions */
.solutions-container {
  padding: 120px 40px;
}

.solutions-container h1 {
  text-align: center;
  margin-bottom: 60px;
}

.solution-row {
  display: grid;
  margin-left: 15%;
  margin-top: 150px;
  width: 70%;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 120px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


.solution-logo1 {
  display: flex;
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.solution-logo1 img {
  background-image: url(assets/images/icon1.gif);
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  background-size: cover;
  transition: transform 0.3s ease;
}

.solution-logo2 {
  display: flex;
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.solution-logo2 img {
  background-image: url(assets/images/icon2.gif);
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  background-size: cover;
  transition: transform 0.3s ease;
}

.solution-logo3 {
  display: flex;
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.solution-logo3 img {
  background-image: url(assets/images/icon3.gif);
  width: 120px;
  max-width: clamp(70px, 20vw, 120px);
  height: 120px;
  max-height: clamp(70px, 20vw, 120px);
  background-size: cover;
  transition: transform 0.3s ease;
}


.solution-text h2 {
  margin-bottom: 10px;
  color: black;
  font-size: clamp(0.1rem, 3vw, 2rem);
}

.solution-text p2 {
  margin-bottom: 10px;
  color: black;
  font-size: clamp(0.1rem, 3vw, 1.2rem);
  text-align: justify;
}


/* Section services */
.services-container {
  padding: clamp(0.1rem, 4vw, 4rem);
  text-align: center;
}

.services-container.reduce {
  padding: 4.81% 40px;
  text-align: center;
}

.services-grid {
  display: flex;
  justify-content: space-between;
  gap: clamp(0.1rem, 4vw, 4rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.services-grid.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.service-card {
  flex: 1;
  padding: clamp(0.1rem, 4vw, 4rem);
  border-radius: 120px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h2 {
  margin-bottom: 15px;
  color: black;
  font-size: clamp(0.1rem, 2vw, 1.5rem);
}

.service-card p2 {
  color: black;
  font-size: clamp(0.1rem, 2vw, 1.1rem);
  flex-wrap: wrap;
}

.service-card button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: black;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: clamp(0.1rem, 2vw, 1rem);
}

.service-card button:hover {
  background: #444;
}

/* Détails */
.service-detail {
  opacity: 0;
  flex : 1;
  transform: scale(0.95);
  width: 50%;
  margin-left: 24%;
  padding: 40px 20px;
  border-radius: 120px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: opacity 0.6s ease, transform 0.6s ease;
  color: black;
}

.service-detail h2 {
  color: black;
  font-size: clamp(0.1rem, 2vw, 1.5rem);
}

.service-detail p {
  color: black;
  font-size: clamp(0.1rem, 2vw, 1.1rem);
}

.service-detail.show:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-detail.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.service-detail.show {
  opacity: 1;
  transform: scale(1);
}

.service-detail button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  background: black;
  color: white;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: clamp(0.1rem, 2vw, 1rem);
}

.service-detail button:hover {
  background: #444
}

.hidden {
  display: none;
}

/* Animation de fondu cases services*/
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}


/* Section à propos */
.about-container {
  padding: 120px 40px;
  margin-top: 0;
}

.about-row {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: clamp(10px, 3vw, 40px);
  margin-bottom: 60px;
  padding: 30px;
  border-radius: 90px;
  background: #f9f9f9;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-row:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-logo1 {
  display: flex;
  width: 400px;
  max-width: clamp(100px, 20vw, 400px);
  height: 400px;
  max-height: clamp(100px, 20vw, 400px);
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.about-logo1 img {
  background-image: url(images/team.jpg);
  width: 400px;
  max-width: clamp(100px, 20vw, 400px);
  height: 400px;
  max-height: clamp(100px, 20vw, 400px);
  background-size: cover;
  transition: transform 0.3s ease;
}

.about-logo2 {
  width: 400px;
  max-width: clamp(100px, 15vw, 400px);
  height: 400px;
  max-height: clamp(100px, 15vw, 400px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
}

.about-logo2 img {
  background-image: url(images/vision.jpg);
    width: 400px;
  max-width: clamp(100px, 15vw, 400px);
  height: 400px;
  max-height: clamp(100px, 15vw, 400px);
  background-size: cover; 
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: clamp(0.1rem, 2vw, 1.5rem);
  color: black;
  text-align: justify;
}

.about-text p2 {
  font-size: clamp(0.1rem, 2vw, 1.5rem);
  text-align: justify;
}


/* Contact */
.page {
  padding: 120px 20px;
  max-width: 800px;
  margin: auto;
}

form {
  display: flex;
  flex-direction: column;
}

form input, form textarea {
  margin: 10px 0;
  padding: 10px;
  font-size: 1rem;
}

form button {
  padding: 10px;
  background: #0078ff;
  color: white;
  border-radius: 50px;
  cursor: pointer;
}

form button:hover {
  background: #005fcc;
}

/* Pied de page */
.footer {
  text-align: center;
  padding: 20px;
  background: transparent;
  margin-top: 40px;
  font-size: clamp(0.1rem, 2vw, 1.1rem);
}

.footer a {
  text-decoration: none;
  color: black;
}