@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-image: url('images/geometry-7723325_1920.jpg');
  background-attachment: fixed;      /* le fond reste fixe */
  background-repeat: no-repeat;      /* ne pas dupliquer l’image */
  background-size: cover;            /* couvrir tout l’écran */
  background-position: center;       /* centrer l’image */
}

body.active {
  overflow: hidden;
}

header {
  width: 100vw;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15%;
  background-color: whitesmoke;
  position: relative;
  z-index: 1;
  color: #2980b9;
  box-shadow: 0 1px 0 gray;
}

ul {
  list-style: none;
  display: flex;
}

ul li {
  margin: 0 10px;
}

a {
  text-decoration: none;
  color: #3C3C3C;
  font-weight: bold;
  padding: 10px 20px;
  transition: 0.3s;
  border-radius: 6px;
}

a:hover {
  background-color: #2980b9;
  color: whitesmoke;
  box-shadow: 0 1px 3px grey;
}

a:active {
  background-color: #186497;
  color: whitesmoke;
  box-shadow: 0 1px 3px grey;
}

main {
  display: flex;
  justify-content: center;
  align-items: first baseline;
}

.logo {
  display: flex;
  font-size: 34px;
  font-weight: bold;
  align-items: center;
}

.reduced-img {
  max-width: 100%;
  /* ou 200px */
  height: auto;
  /* conserve le ratio */
  max-width: 100%;
  /* évite de dépasser le parent */
}

.section {
  display: none;
  padding: 20px;
  margin-top: 10px;
  width: 780px;
  color: whitesmoke;
}

.service-01 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.name-service {
  background-color: #1b9937;
  padding: 10px;
  border-radius: 10px;
}

.description-service {
  background-color: #2c3e50;
  font-size: smaller;
  padding: 10px;
  border-radius: 10px;
}

.btn-service {
  background-color: #3498db;
  text-align: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}

.btn-service:hover {
  background-color: #186497;
  color: whitesmoke;
}

.btn-service:active {
  background-color: whitesmoke;
  color: #3498db;
}

#apropos-text {
  font-size: 1.0rem;
  max-width: 700px;
  text-align: center;
  padding: 20px;
  font-weight: bold;
}

/* ------- application zypass css DEBUT ------- */

.zypass {
  position: fixed;
  /* 🔁 passe de absolute à fixed */
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background-color: rgb(45, 45, 45);
  color: #2a79ad;
  /* bordeaux */
  z-index: 0;
  /* ✅ derrière le header en z-index: 1 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: left 1s ease;
  overflow: hidden;
}

.zypass.active {
  left: 0;
}

.zypassContainer {
  display: flex;
  flex-direction: column;
  width: 90vw;
  justify-content: center;
  align-items: center;
  border: solid 0.5px whitesmoke;
  border-radius: 10px;
  padding: 10px;
}

.zypassHeader {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.zypassTitle {
  font-size: 40px;
  padding: 5px;
  margin: 5px;
  font-weight: bold;
  text-overflow: ellipsis;
  font-family: Orbitron, sans-serif;
}

.zypassBtn {
  max-width: 50px;
  height: 50px;
  margin: 5px;
  cursor: pointer;
  border: solid whitesmoke 0.5px;
  border-radius: 5px;
  background-color: #FF4040;
  box-sizing: border-box;
}

.zypassBtn:active {
  background-color: #9c2b2b;
}

.zypassSelect {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.zypassPassCodeBtn {
  text-align: center;
  width: 50%;
  margin: 5px;
  padding: 5px;
  cursor: pointer;
  border-radius: 5px;
  border: solid whitesmoke 0.5px;
  background-color: rgb(30, 30, 30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #27AE60;
  font-family: Orbitron, sans-serif;
}

.zypassPassCodeBtn.active {
  background-color: rgb(60, 60, 60);
}

.zypassPhraseCodeBtn {
  text-align: center;
  width: 50%;
  margin: 5px;
  padding: 5px;
  cursor: pointer;
  border-radius: 5px;
  border: solid whitesmoke 0.5px;
  background-color: rgb(60, 60, 60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #27AE60;
  font-family: Orbitron, sans-serif;
}

.zypassPhraseCodeBtn.active {
  background-color: rgb(30, 30, 30);
}

.zypassModules {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 5px;
  padding: 5px;
}

.passCodeModule {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 10px;
  border: solid 0.5px whitesmoke;
  background-color: rgb(30, 30, 30);
  border-radius: 5px;
  overflow: hidden;
}

.block1 {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 0.5px solid whitesmoke;
}

.loChar {
  color: blanchedalmond;
  font-family: Orbitron, sans-serif;
}

.upChar {
  color: blanchedalmond;
  font-family: Orbitron, sans-serif;
}

.nuChar {
  color: blanchedalmond;
  font-family: Orbitron, sans-serif;
}

.lenChar {
  font-family: Orbitron, sans-serif;
  color: blanchedalmond;
}

.block2 {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 10px;
  border: 0.5px solid whitesmoke;
  margin: 10px 0;
  border-radius: 5px;
}

.block3 {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  color: blanchedalmond;
  font-family: Orbitron, sans-serif;
  padding: 10px;
  border: 0.5px solid whitesmoke;
  margin: 10px 0;
  border-radius: 5px;
}

.block4 {
  display: flex;
  justify-content: center;
  padding: 20px;
  color: orange;
  font-family: Orbitron, sans-serif;
}

.phraseCodeModule {
  display: none;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border: solid 0.5px whitesmoke;
  background-color: rgb(30, 30, 30);
  border-radius: 5px;
  text-align: center;
  flex-direction: column;
  overflow: hidden;
}

.passCodeModule.active {
  display: none;
}

.phraseCodeModule.active {
  display: flex;
}

.inputText {
  margin: 20px;
  padding: 5px;
  max-width: 200px;
  font-size: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  align-items: center;
  font-family: Orbitron, sans-serif;
}

.btnContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.btn {
  margin: 10px;
  padding: 4px;
  text-align: center;
  border: 1 solid whitesmoke;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  border: 0.5px solid whitesmoke;
}

.btn:active {
  border: 0.5px solid green;
}

.resultPhraseCode {
  margin: 20px;
  text-align: center;
  color: orange;
}

.description-service {
  overflow: hidden;
  /* Cache le surplus */
  text-overflow: ellipsis;
  /* Ajoute "..." */
}

/* ------- application zypass css FIN ------- */

/* ------- Responsive 450px ------- */

@media screen and (max-width: 270px) {
  .logo {
    color: transparent;
  }
}

/* ------- Responsive 450px ------- */

@media screen and (max-width: 450px) {

  .logo {
    font-size: 1.5rem;
  }

  .reduced-img {
    width: 50%;
    /* ou 200px */
    height: auto;
    /* conserve le ratio */
    max-width: 100%;
    /* évite de dépasser le parent */
  }

  .button {
    background-size: contain;
    background-repeat: no-repeat;
  }

}

/* ------- Responsive 450px FIN ------- */

/* ------- Responsive 800px ------- */

@media screen and (max-width: 800px) {
  .service-01 {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .name-service {
    background-color: #1b9937;
    width: 80%;
    padding: 10px;
    margin: 10px;
  }

  .description-service {
    background-color: #2c3e50;
    width: 80%;
    padding: 10px;
    margin: 10px;
  }

  .btn-service {
    background-color: #2980b9;
    width: 80%;
    padding: 10px;
    margin: 10px;
    cursor: pointer;
  }

  .btn-service:hover {
    background-color: whitesmoke;
    color: #3498db;
  }
}

/* ------- Responsive 800px FIN ------- */

/* ------- Responsive 1152px ------- */
@media screen and (max-width: 1152px) {
  ul {
    flex-direction: column;
    position: absolute;
    top: 0;
    left: -100vw;
    /* cacher le menu */
    width: 100%;
    height: 100vh;
    background-color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 1s ease;
    z-index: 0;
  }

  ul.active {
    left: 0;
    /* afficher le menu */
  }

  ul li {
    margin: 20px 0;
  }

  ul li a {
    text-transform: uppercase;
    font-size: 20px;
  }

  .button {
    height: 50px;
    width: 50px;
    background-image: url('images/menu_40dp_434343_FILL0_wght400_GRAD0_opsz40.png');
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
  }

  .button:active {
    background-color: #2980b9;
    background-image: url('images/menu_40dp_F3F3F3_FILL0_wght400_GRAD0_opsz40.png');
    border-radius: 10px;
  }

  .buttonOut {
    height: 50px;
    width: 50px;
    background-image: url('images/close_40dp_434343_FILL0_wght400_GRAD0_opsz40.png');
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
  }

  .buttonOut:hover {
    background-image: url('images/close_40dp_F3F3F3_FILL0_wght400_GRAD0_opsz40.png');
  }

}

/* ------- Responsive 1100px FIN ------- */