* {
  outline: 0;
}

html {
  height: 100%;
}

body {
  font-family: "Segoe UI", sans-serif;
  min-height: 100%;
  margin: 0px;
  padding: 0px;
  text-decoration: none;
  background-color: aliceblue;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}

nav img {
  height: 120px;
}

nav ul {
  display: flex;
}

nav li {
  font-size: 125%;
  font-family: "Segoe UI", sans-serif;
  display: inline-block;
  margin-right: 35px;
  position: relative;
  letter-spacing: 1px;
}

header {
  padding: 0.65em;
}

h2 {
  font-size: 250%;
  color: #303030;
  display: inline-block;
  margin-left: 9.5%;
  margin-right: 11%;
  margin-top: 5%;
}

a {
  display: inline-block;
  text-decoration: none;
  color: #303030;
}

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

a.lien::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: #303030;
  transform: scaleX(0);
  transform-origin: 0 0.5;
  transition: 0.3s ease;
  margin-bottom: -5px;
}

/*Pour faire l'animation au hover sur les lien de la barre de navigation*/
a.lien:hover::after {
  transform: scaleX(1);
}

#Ligne_horizontale {
  background-color: #3b5253;
  border-radius: 10px;
  display: block;
  height: 2px;
  width: 85%;
  margin: 0 auto;
  animation-name: apparait;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

#ligne {
  background-color: #3b5253;
  border-radius: 10px;
  display: block;
  height: 2px;
  margin: 0 auto;
  margin-bottom: 25px;
  animation-name: apparait;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

/*Animation ligne en dessous header au lancement du site*/
@keyframes apparait {
  0% {
    width: 0%;
  }
  100% {
    width: 85%;
  }
}

#front {
  border-right: #303030 6px double;
  max-height: 100%;
  max-width: 100%;
  width: 50%;
}

.devis_button {
  
  display: block;
  margin: 5% auto 5% auto; /* centre horizontalement */
  padding: 15px 30px;
  min-width: 300px;
  max-width: 90vw;
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: beige;
  background: linear-gradient(
    90deg,
    rgb(4, 94, 251) 0%,
    rgb(24, 152, 238) 100%);
  border: 2px solid #008cff; 
  border-radius: 1000px;
  box-shadow: 12px 12px 24px rgba(0, 174, 255, 0.64);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.devis_button::before {
  content: "";
  border-radius: 1000px;
  min-width: calc(300px + 12px);
  min-height: calc(60px + 12px);
  border: 6px solid #008cff;
  box-shadow: 0 0 60px rgba(0, 174, 255, 0.64);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease-in-out 0s;
}

.devis_button:hover,
.devis_button:focus {
  color: beige;
  transform: translateY(-6px);
}

.devis_button:hover::before,
.devis_button:focus::before {
  opacity: 1;
}

.devis_button::after {
  width: 30px;
  height: 30px;
  border-radius: 100%;
  border: 6px solid #00aeff;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.devis_button:hover::after,
.devis_button:focus::after {
  animation: none;
  display: none;
}

#prix{
  margin: 5%;
  margin-left: 10%;
  margin-right: 10%;
}



footer {
  background-color: rgba(28, 28, 28, 0.85);
  color: aliceblue;
  padding: 20px;
  text-align: center;
  font-family: sans-serif;
  height: 20%;
}

footer h3 {
  margin-bottom: 25px;
  font-size: 1.2em;
}

footer a {
  color: #0077cc;
}

footer a:hover {
  text-decoration: underline;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  margin: 0 20px;
  display: inline-block;
}

social-icons img {
  width: 24px;
  height: 24px;
}

.copyright {
  margin-top: 20px;
  font-size: 0.9em;
  color: #999;
}

#presentation {
  border: 2px solid;
  color: #303030;
  font-size: 100%;
  margin: 5%;
  margin-left: 10%;
  border-radius: 15px;
  padding: 30px;
  max-width: 40%;
}

#objectif {
  border: 2px solid;
  color: #303030;
  font-size: 100%;
  border-radius: 15px;
  padding: 30px;
  max-width: 40%;
  margin-left: auto;
  margin-right: 10%;
}


#attention{
  color :#414141;
  margin: 5%;
}

#merci {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 10% auto; 
}

#merci h1 {
    margin-bottom: 20px;
}

.check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.check-circle::before {
    content: '✔';
    font-size: 40px;
    color: white;
}


h1 {
  text-align: center;
}

#service {
  width: 20%;
}

#cesi {
  width: 25%;
}

#html {
  width: 25%;
  margin-left: 10%;
}

#bloc_1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#bloc_2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 5%;
}

p {
  font-family: "Segoe UI", sans-serif;
  font-size: 125%;
}


/* Container principal des cartes */
#tarification {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2%;
  margin: 5% auto;
  max-width: 80%;
}

/* Carte individuelle */
.tarif_card {
  flex: 1 1 200px;
  max-width: 300px;
  margin: 10px;
  border: 2px solid #0077cc;
  color: #303030;
  box-shadow: 4px 2px 2px grey;
  border-radius: 25px;
  width: 25%;
  padding: 20px;
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
  backface-visibility: hidden;
  transform-style: preserve-3d;

  /* ✅ MODIFS ajoutées */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 500px;
}

/* ✅ MODIF : paragraphe du prix aligné en bas */
.tarif_card p {
  margin-top: auto;
  text-align: center;
}

/* Effet au survol */
.tarif_card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #0077cc;
}

/* ✅ MODIF : ligne visuelle cohérente */
#ligne1 {
  background-color: #3b5253;
  border-radius: 10px;
  display: block;
  height: 2px;
  width: 60%;
  margin: 10px auto 25px auto;
  animation-name: apparait;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

/* Liste des services dans chaque carte */
.card {
  margin: auto;
  list-style: none;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: scale(1.03);
}

.card li {
  margin-bottom: 12px;
  font-size: 15px;
  position: relative;
  padding-left: 24px;
}

.card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0077cc;
  font-weight: bold;
}

/* Lien "ici" dans le paragraphe du prix */
#ici {
  font-weight: bold;
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}

#ici:hover {
  color: #005fa3;
}


div li {
  font-family: "Segoe UI", sans-serif;
  font-size: 125%;
}

#contact {
  display: flex;
  justify-content: center;
  padding: 15px;
  margin-top: 5%;
}

#contact1 {
  background-color: white;
  margin: auto;
  border: 2px solid;
  color: #303030;
  border-radius: 25px;
  padding: 20px;
  width: 25%;
}

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

#contact-section {
  margin-top: 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  max-width: 100%;
  box-sizing: border-box;
}



.contact-box {
  box-sizing: border-box;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(0, 119, 204, 0.1);
  font-family: "Segoe UI", sans-serif;
  transition: transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 5%;
}


.contact-box:hover {
  transform: scale(1.02);
}

.contact-box h2 {
  font-family: "Nunito", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1.3px;
  background: linear-gradient(90deg, #1e6ddf, #5aa7e8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 4px rgba(30, 109, 223, 0.4);
}



.contact-box p {
  margin-bottom: 50px;
  color: #555;
  text-align: left;
}

.socials ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.socials li {
  margin-bottom: 25px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-item a {
  text-decoration: none;
  color: #303030;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.social-item a:hover {
  color: #0077cc;
}

.social-item img {
  width: 24px;
  height: 24px;
}

.formulaire form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-sizing: border-box;
}

/* LABELS */
label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
  color: #303030;
}

/* CHAMPS DE TEXTE ET TEXTAREA */
input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  box-sizing: border-box;
  resize: none; 
  overflow: hidden; 
}


/* Responsive */
@media screen and (max-width: 768px) {

  #bloc_1 {
  display: flex;             
  flex-direction: column;     
  text-align: center;
  width: 100%;  
  }

  #contact-section {
    flex-direction: column;
    align-items: center;
  }

  .contact-box {
    width: 90%;
  }


  #presentation {
  border: 2px solid;
  color: #303030;
  font-size: 100%;
  margin: auto;
  margin-top: 10%;
  border-radius: 15px;
  padding: 30px;
  max-width: 70%;
  }

  #objectif {
  border: 2px solid;
  color: #303030;
  font-size: 100%;
  margin: 70px;
  border-radius: 15px;
  padding: 30px;
  max-width: 70%;
  margin: auto;
  }

  #bloc_2 {
    flex-direction: column;
    text-align: center;
  }

  #service {
    margin-top: 5%;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: auto;
  }

  #cesi {
    margin-top: 5%;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: auto;
  }

  #html {
    margin-top: 5%;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin: auto;
  }
}

h3 {
  text-align: center;
}




#overlay {
  font-size: 1000px;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media only screen and (max-width: 1000px) {
  .barre {
    background-color: #303030;
    width: 20px;
    height: 2px;
    border-radius: 100px;
    margin: auto;
    margin-top: 5px;
    display: block;
  }

  h2{
    font-size: 200%;
  }
  .barre:first-child {
    margin-top: 0px;
  }

  #menu {
    width: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 5%;
    height: 100%;
  }

  li {
    margin-bottom: 40px;
    left: 0px;
    display: block;
  }

  a {
    color: #e5dde6;
  }

  /* Mobile panel starts closed; open via .open class */
  #barre_menu {
    background-color: #303030;
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 250px; /* largeur fixe */
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999;
    padding: 0;
    overflow-y: auto;
  }
  #barre_menu.open {
    transform: translateX(0);
  }

  /* wrapper: espace pour la croix, menu commence en dessous */
  #barre_menu .menu-inner {
    padding-top: 96px;
    background-color: #303030;
    min-height: 100%;
    color: #e5dde6;
  }

  /* stack items vertically */
  #barre_menu ul {
    padding: 20px;
    list-style: none;
    display: block;
    margin-top: 50%;
  }

  /* baisse verticale supplémentaire pour que le texte des items ne soit pas collé en haut */
  #barre_menu li {
    display: block;
    font-size: 110%;
  }

  ul li:first-child {
    margin-top: 60px;
  }

  @keyframes apparait1 {
    0% {
      width: 0px;
    }
    100% {
      width: 250px;
    }
  }

  @keyframes apparait2 {
    0% {
      width: 250px;
    }
    100% {
      width: 0px;
    }
  }

  a.lien:hover::after {
    display: none;
  }

  /* CLOSE BUTTON: vraie croix en pseudo-éléments */
  #croix {
    cursor: pointer;
    position: absolute;
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #croix::before,
  #croix::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: #e5dde6;
    left: 50%;
    top: 50%;
    transform-origin: center;
  }
  #croix::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  #croix::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
