:root {
  --primary: #ffca3a;
  --dark: #000000;
  --light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "roboto", sans-serif;
}

.lato-regular {
  font-family: "Lato", sans-serif;
  font-weight: bold;
  font-style: normal;
}

body {
  background: linear-gradient(155deg, rgba(235, 133, 0, 1) 30%, rgba(82, 125, 255, 1) 60%, rgba(0, 0, 0, 1) 100%);
  color: var(--dark);
  line-height: 1.4;
}

.separateur {
  margin-bottom: 1.2em;
  border: 1px solid black;
}

/* HEADER + MENU BURGER */

/* === Header global === */

header {
  background-color: #000; /* fond noir */
  color: orange;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  margin: auto;
  align-items: center;
  position: relative;
  top: 0;
  z-index: 10;
}

/* sticky activé */

header.sticky {
  position: sticky;
  top: 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  animation: slideDown 0.3s forwards;
}

/* Animation optionnelle */

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-logo {
  margin: 0;
  color: orange;
}

/* === Liens du menu === */

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: orange;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover{
  color: white;
}

/* === Burger caché par défaut === */

.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: orange;
}

/* RESPONSIVE < 600px */

@media (max-width: 700px) {

  header {
    display: block;
  }
  
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.952);
    border: solid 2px #ff9900;
    position: absolute;
    top: 60px; /* juste sous le header */
    right: 15px;
    padding: 10px;
    border-radius: 6px;
    z-index: 100;
    gap: 0;
  }

  .nav-links a {
    padding: 8px 0;
    border-bottom: 1px solid rgb(255, 255, 255);
  }

  .nav-links.show {
    display: flex;
  }
}

/* SECTION PRESENTATION */

.h1presentation {
  font-size: 45px;
  text-transform: uppercase;
}

.p-presentation {
  font-size: 20px;
}

#presentation {
  background-image: url("../Img/wallpaper2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 750px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-top: 1.5em;
  margin: 0;
  z-index: 1;
  overflow: visible;
  border-bottom: solid 2px black;
}

#presentation .text-container {
  width: 50%;
  max-width: 800px;       /* limite la largeur max du texte */
  margin-right: auto;      /* pousse le bloc vers la droite */
  margin-left: auto;
  padding-left: 3.5em;     /* petit espace à gauche */
  padding-right: 3.5em;
  color: white;
  text-align: center;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: bold;
}

#presentation .cta {
  align-self: center; /* bouton aligné à droite */
}

.cta-margin {
  margin-top: 0.7em;
}

.cta {
  display: inline-flex;       /* important pour hover sur texte + icône */
  align-items: center;
  justify-content: center;
  gap: 0.5rem;               /* espace entre icône et texte */
  background: #ff9900;
  color: #000;
  padding: 0.4rem 1rem;
  border-radius: 35px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-weight: bold;
  border: solid 2px rgb(0, 0, 0);
  cursor: pointer;
  font-size: 25px;
}

.cta:hover {
  background: #eb8500;
  color: white;
}

.cta i {
  display: inline-block;   /* assure que l'icône est pris en compte dans le hover */
}


.cta.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta.with-icon img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

section:not(#presentation) {
  max-width: 1400px;
  margin: auto;
}

/* SECTION SERVICES */

.titre-scan {
  background-color: #0000007c;
  text-transform: uppercase;
  position: relative;
  border: 2px solid #ff9900;
  border-radius: 5px;
  color: #ff9900;
  font-size: 2rem;
  overflow: hidden;
  max-width: 22%;
  margin: 0 auto; /* ← centre horizontalement */
  text-align: center;
}

.titre-scan-processus{
  border: 2px solid #d1c5ff;
  color: #d1c5ff;
  padding-left: 0.1em;
  padding-right: 0.1em;
}

.titre-scan-google {
  border: 2px solid #527DFF;
  color: #527DFF;
}

.titre-scan-contact {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.titre-scan-pre {
  max-width: 40%;
}

.titre-scan::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.247), transparent);
  animation: scan 2s infinite;
}

@keyframes scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

section#services {
  margin-top: -15em; /* ou plus si tu veux qu'il déborde davantage */
  position: relative;
  z-index: 5;
  border-radius: 20px;
  padding: 40px 20px;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Carte Services */

.cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.card {
  background: #fff;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  margin-top: 1em;
  border: 2px solid black;
  flex: 0 1 calc(33.333% - 2rem); /* 3 colonnes */
  min-width: 240px;
  box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
}

.p-service {
  font-weight: bold;
  padding-top: 0.5em;
  padding-left: 0.8em;
  padding-right: 0.8em;
}

.icon-title {
  align-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.icon-title img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.illustration {
  max-width: 290px;
  margin: 0.5em auto;
  display: block;
  border: solid 3px black;
}

/* SECTION PROCESSUS */

.processus-pack {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  text-align: center;
  align-items: center;
}

.processus-mini-pack {
  font-weight: bold;
  max-width: 400px;
}

.processus-img-container{
  width: 200px;
  height: 200px;
  border: solid 3px #000000;
  border-radius: 50%;
  overflow: hidden;
  margin: auto;
}

.processus-img {
  width: 100px;
  object-fit: contain;
}

.processus-img-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5em;
  background-color: #ffffff;
}

.p-processus {
  padding-left: 3em;
  padding-right: 3em;
}

/* SECTION FORMULAIRE */

#contact {
  display: flex;
  justify-content: center;
}

#map {
  margin-top: 2em;
}

.map-container {
  max-width: 600px;
  max-height: 450px;
  margin: 2rem auto;
  border: 2px solid black;
  border-radius: 10px;
  overflow: hidden;
}

#map h2 {
  text-align: center;
  margin-bottom: 1rem;
}

form {
  margin-top: 3em;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 520px;
  border: solid 2px black;
}

input, textarea {
  border: 2px solid black; /* bordure noire par défaut */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input.valid, textarea.valid {
  border-color: 2px solid green;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input.invalid, textarea.invalid {
  border-color: 2px solid red;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form button {
  align-self: center; /* ← centre le bouton dans la colonne flex */
}

label {
  font-weight: bold;
  margin-bottom: 0.1em;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.7em;
}

button {
  background: #527DFF;
  color: #000;
  padding: 0.8rem;
  border: solid 2px rgb(0, 0, 0);
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
  max-width: 200px;
  margin-top: 1em;
}

button:hover {
  background: #eb8500;
  border: solid 2px black;
  color: white;
}

footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

p.copy{
  color: #527DFF;
  font-weight: bold;
}

/* 1400  RESPONSIVE*/

@media (max-width: 1400px) {
  #presentation {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    min-height: auto;
  }

  #presentation .text-container {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  #presentation {
    height: auto;
  }

  section#services {
    margin-top: 2rem;
    padding: 1rem 1rem;
    
  }

}

/* 1300 RESPONSIVE */

@media (max-width: 1300px) {
  .card {
    flex: 0 1 calc(50% - 2rem); /* 2 colonnes */
    max-width: 450px;
  }

  .illustration {
    max-width: 100%;
  }

  #contact {
    display: block;
    text-align: center;
  }

}

/* 780 RESPONSIVE */

@media (max-width: 780px) {
  .card {
    text-align: center;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .icon-title {
    justify-content: center;
  }

  .titre-scan {
    max-width: 100%;
  }

  .processus-pack {
    flex-direction: column;
    gap: 2rem;
  }

  #contact-form {
    max-width: 350px;
  }
}
