@font-face {
  font-family: "roboto";
  src: url("../font/roboto/Roboto-Regular.ttf");
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("../font/dys/OpenDyslexic3-Regular.ttf");
}
@font-face {
  font-family: "Special_Elite";
  src: url("../font/Special_Elite/SpecialElite-Regular.ttf");
}

*,
*::before,
*::after {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #000000;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  font-style: 16px;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  min-height: 90vh;
  background: white;
  margin: 0.6rem auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.container header {
  width: 100%;
  background-color: #0c2a5c;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
  height: 112px;
  margin: 0.4rem 0 2rem 0;
}
header {
  display: grid;
  grid-template-columns: 2fr 10fr;
}
header img {
  max-height: 100px;
  margin: 6px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

header h1 {
  margin-top: 14px;
}

.titre {
  text-align: center;
  flex-grow: 1;
}

.titre h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h1,
h2 {
  text-transform: uppercase;
  text-align: center;
}

h1 {
  font-family: "Special_Elite";
  color: rgb(245, 245, 245);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
h2 {
  margin: 0.2rem 0 0.6rem 0;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 1px;
}

.sousTitre {
  font-family: "Special_Elite", cursive;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #faf5e8;
}
.sousTitre span {
  text-transform: none;
  color: #eab92d;
  font-style: italic;
  line-height: 1.3rem;
}
.etab {
  font-size: 0.6rem;
  font-style: italic;
  text-align: center;
  color: #f6ba43;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
p {
  font-size: 1.2rem;
  text-align: justify;
}

a,
a:active,
a:focus,
a:hover {
  color: #00264a;
  text-decoration: none;
}

.testInit {
  margin-top: 1rem;
  text-align: center;
}

/* Boutons */
.btn-orange {
  margin-top: 20px;
  background-color: #ff7300;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 80%;
}
.btn-orange:hover {
  background-color: #e55d00;
}

.btn-vert {
  background: #28a745;
  padding: 12px 20px;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  border-radius: 10px;
}

.btn-vert:hover {
  background: #218838;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  padding: 12px 20px;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  border-radius: 10px;
}

.btn-delete:hover {
  background-color: #c82333;
}
.btnVersDemo {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: rgb(75, 75, 75);
  border: 2px darkcyan dashed;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  margin: 2rem 0 3rem 0;
  text-align: center;
  transition: all 0.2s ease-in;
}

.btnVersDemo:hover {
  cursor: pointer;
  border: 2px darkcyan solid;
}
/* Alignements, espaces, flottements  */
.flex-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.float-left {
  float: left;
  margin: 0 1rem 0 0;
}

.inv,
.hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vis {
  display: block;
}
.space-20 {
  margin-top: 20px;
}
.space-50 {
  margin-top: 50px;
}
.space-100 {
  margin-top: 100px;
}
.w-100 {
  width: 100%;
}
/* Horloge */
.hms {
  width: 120px;
  margin: 1em auto;
  padding: 0.4em 1em;
  font-family: "Arial", sans-serif;
  background-color: #222;
  border-radius: 8px;
  border: 1px solid #444;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.maDate {
  font-size: 10px;
  font-weight: 300;
  font-style: italic;
  color: #939393;
}

.horloge {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f0f0f0;
}
/* Firefox */
.firefox {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 10px;
}

.firefox h3 {
  color: red;
  line-height: 1;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  text-align: center;
}
.firefox p {
  color: black;
}
.flex-fire {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: 4rem;
  margin: 2rem 0;
}

/* Infos fonctionnement, success, error */
.infoFonct {
  background: #e3f2fd;
  color: darkblue;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 2rem;
  height: 130px;
  display: flex;
}
.infoFonct img {
  float: left;
  height: calc(100%);
  padding-right: 1rem;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.infosAjout {
  text-align: center;
  font-size: 1.2rem;
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin: 2rem 1rem;
}
.infosAjout p {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e55a2b;
}
.info {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 2rem;
  height: 130px;
  display: flex;
}
.panoInfo {
  float: left;
  height: calc(100%);
  padding-right: 1rem;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.cadreInfo {
  background: #e3f2fd;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: flex;
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
  margin: 1rem 0;
}
.success-message {
  background-color: #d4edda;
  color: #155724;
  font-size: 1.6rem;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  padding: 10px;
  margin: 30px 20px;
}
/* Mot de passe */
.authPW {
  position: relative;
  font-family: "Share Tech Mono", monospace;
  background-color: #002b5c;
  color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 640px;
  margin: 3rem auto 2rem;
}
.authPW h2 {
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  font-size: 2.6rem;
  margin: 1em 0;
  color: #fafafa;
  font-weight: bolder;
  text-transform: uppercase;
}

.authPW .inPw {
  width: 80%;
  font-size: 2.5em;
  margin: 0.2em auto 0.2em;
  background: white;
  border-radius: 5px;
  text-align: center;
}
.input-container {
  position: relative;
  margin-bottom: 25px;
}

.password-input {
  width: 100%;
  padding: 15px 50px 15px 15px;
  border: none;
  border-radius: 8px;
  font-size: 32px;
  background: #f5f5f5;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.password-input::placeholder {
  color: #999;
  font-size: 32px;
}

.password-input:focus {
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.eye-icon img {
  width: 100%;
  height: 100%;
  display: none;
}

.eye-icon img.active {
  display: block;
}

.validate-btn {
  display: block;
  margin: 0 auto;
  width: 100%;
  padding: 15px;
  background: #ff6b35;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.validate-btn:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.validate-btn:active {
  transform: translateY(0);
}
/* Footer */
footer {
  margin: 1rem 0 2rem 0;
  max-width: 960px;
  width: 100%;
  flex-shrink: 0;
  color: rgb(95, 95, 95);
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.4;
}

.footerGrid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 2fr 4fr 2fr;
}
.grid-2 {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2fr 2fr;
}
.hr-light {
  height: 1px;
  background-color: blue;
  border: none;
  margin: 1.5rem auto 1rem;
}
/* Media Queries pour la responsivité */
@media (min-width: 481px) {
  h1 {
    font-size: 1rem;
  }
  .col-gauche img {
    height: calc(100% - 4px);
    margin: 2px;
    object-fit: contain;
    display: block;
    border-radius: 2px;
  }
}
@media (min-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  .col-gauche img {
    height: calc(100% - 6px);
    margin: 3px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
  }
  .BtnInstallation {
    font-size: 1.4rem;
  }
}
@media (min-width: 960px) {
  .col-gauche img {
    height: calc(100% - 8px);
    margin: 4px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
  }
  h1 {
    font-size: 1.8rem;
  }
}
