/* Variables CSS - Ajout de commentaires et regroupement logique */
:root {
  /* Couleurs principales */
  --primary-blue: #123872;
  --accent-blue: #0dcaf0;
  --link-blue: #6cb8ff;
  --link-hover-orange: rgb(255, 146, 74);
  --yellow: #fff7bc;
  --orange: #eab92d;
  --red: #ef5350;
  --green: #198754;
  --brown: brown;
  --grey: #44a299;
  --grey-green: #6c757d;
  --violet: #123872;
  --salmon: #fa8072;
  --chocolate: #d2691e;
  --amber: #ffc107;
  --text-light: #fffbf5;
  --text-blue-light: #0090ad;
  --text-orange-light: #ffc880;
  --text-yellow-light: #feb24c;
}

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

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

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

body {
  background: rgb(29, 5, 89);
  background: linear-gradient(4deg, rgb(20, 0, 70) 0%, rgba(15, 15, 15, 1) 30%, rgba(0, 0, 0, 1) 100%);
  color: #fff;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 980px;
  min-height: 90vh;
  margin: 0 auto;
  overflow: hidden;
}

.header {
  /* background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px); */
  border: #28a745 2px solid;
  border-radius: 15px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger {
  background: none;
  color: orange;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.hamburger:hover {
  background-color: rgba(102, 126, 234, 0.1);
}

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

.titre h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.sousTitre {
  font-size: 1.2rem;
  font-style: italic;
  text-align: center;
  color: #6cb8ff;
}
.etab {
  font-size: 0.6rem;
  font-style: italic;
  text-align: center;
  color: #f6ba43;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
a,
a:active,
a:focus,
a:hover {
  color: #6cb8ff;
  text-decoration: none;
}

/* Input */
input.search {
  font-size: 1.8rem;
  color: #212529;
  margin: 0 0 12px 0;
  outline: 0;
  width: 100%;
  z-index: 2;
  border-radius: 10px;
  border: 3px solid transparent;
  transition: border-color 0.2s ease-in;
  padding: 0.3rem 1.25rem;
}

input:focus {
  border-color: #eab92d;
}

.search-form {
  width: 100%;
  margin: 0 auto;
}

.search-action {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 3fr 2fr;
}

.explication {
  font-size: 1.2rem;
  font-family: "Roboto", sans-serif;
  font-style: italic;
  text-align: center;
  opacity: 0.8;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.suggestions {
  max-height: 200px;
  background: #123872;
  overflow: auto;
  border-radius: 0.5rem;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: #888 #123872;
  /* Firefox */
  clip-path: inset(0 round 0.5rem);
  /* optionnel : masque */
}

.suggestions::-webkit-scrollbar {
  background: #123872;
  width: 20px;
}

.suggestions::-webkit-scrollbar-track {
  background: #123872;
  border-radius: 0.5rem;
}

.suggestions::-webkit-scrollbar-thumb {
  background-color: #123872;
  border-radius: 0.5rem;
}

.suggestions li {
  font-family: "roboto";
  font-size: 1rem;
  background: #123872;
  list-style: none;
  color: rgb(255, 255, 255);
  margin: 0;
  padding: 10px;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  transition: ease 0.1s;
}

.suggestions li:hover {
  background: rgb(28, 28, 28);
  color: #e6cb00;
  cursor: pointer;
}

.suggestions .active {
  border-left: 12px solid yellowgreen;
  padding-left: 1rem;
  transition: 0.2s ease-in;
}

.suggestions .hc {
  color: #0dcaf0;
}

span.population {
  font-size: 15px;
  line-height: 2;
  color: #e6cb00;
  font-weight: 600;
  margin-right: 2em;
}

/* Styles spécifiques aux zones d'action */
.btnValideClasses {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: brown;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 1.8rem;
  color: #fff7bc;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  transition: 0.2s ease-in;
}

.btnValideClasses:hover {
  border: 1px solid #123872;
}

.infosSel {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Roboto", sans-serif;
  transition: 0.2s ease-in;
  color: aquamarine;
  border: 1px dashed yellowgreen;
  border-radius: 0.5rem;
  cursor: pointer;
}

.infosSel:hover {
  background: rgb(43, 43, 43);
}

.infosSelChiffre {
  font-size: 1.8rem;
  font-family: "Roboto", sans-serif;
  color: #fff7bc;
  margin-right: 0.4rem;
}

.infosSelSup {
  font-size: 0.8rem;
  font-family: "Roboto", sans-serif;
}
.testInit {
  margin-top: 1rem;
  text-align: center;
}
.infosSelEffacer {
  color: #6cb8ff;
}
/* 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;
}

/* Flexbox pour les boutons de temps */
.flex-temps {
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto;
}

/* Boutons de temps (durée) */
.btnTempsOLD {
  font-family: "Roboto", sans-serif;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #3c76a7, #225c8d);
  border: 2px solid #0dcaf0;
  border-radius: 0.5rem;
  text-transform: uppercase;
  transition: 0.2s ease-in;
  color: #00d9ff;
  width: 72px;
  height: 72px;
  font-size: 0.5rem;
  margin: 0.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btnTemps {
  width: 80px;
  height: auto;
}

.btnTemps:hover {
  cursor: pointer;
}
.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;
}
@media (min-width: 481px) {
  .btnTemps {
    width: 92px;
    height: auto;
  }
}

@media (min-width: 768px) {
  .btnTemps {
    width: 150px;
    height: auto;
  }
}

@media (min-width: 960px) {
  .btnTemps {
    width: 180px;
    height: auto;
  }
}

.imgIll {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.bravo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  pointer-events: none;
}

.bravo-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.bravo-message {
  background: #000000;
  color: #fff;
  font-size: 3rem;
  padding: 5rem 2rem;
  text-align: center;
  text-transform: uppercase;
  animation: popIn 1s ease;
}
/* Boutons gestion */
.lienGestion {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btnGestion {
  width: 220px;
  font-weight: 500;
  display: inline-block;
  border: 2px solid goldenrod;
  font-size: 1.1rem;
  padding: 0.8rem 0.2rem;
  text-transform: uppercase;
  border-radius: 0.75rem;
  color: #ffdeb4;
  text-align: center;
  display: inline-block;
  margin: 0.2rem;
  transition: all 0.3s ease;
}

.btnGestion:hover {
  /*b ackground-color: #005a9e;*rgba(220, 20, 60, 0.8)  color: #ffa735;*/
  transform: scale(1.04);
  background: black;
}
.lisezMoi {
  margin-top: 16rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}
.btnPresents {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  display: inline-block;
  background-color: #0078d4;
  border: 0;
  font-size: 2rem;
  padding: 0.8rem 1.5rem;
  text-transform: uppercase;
  border-radius: 0.75rem;
  color: #ffdeb4;
  text-align: center;
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
}
.btnPresents a {
  color: inherit;
}

.btnPresents:hover {
  /*b ackground-color: #005a9e; background: rgba(220, 20, 60, 0.8);*/
  transform: scale(1.05);
  color: black;
}
/* 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 1rem 0;
}

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

.vis {
  display: block;
}
.w-100 {
  width: 100%;
}
.space-50 {
  margin-top: 50px;
}

/* Modale */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
}

.modal-content {
  max-width: 960px;
  background: rgb(14, 14, 14);
  color: wheat;
  margin: 1rem auto;
  border-radius: 10px;
  /* position: absolute;
            top: 50%;
            transform: translateY(-50%); */
  overflow-y: auto;
}

.modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 30px;
  line-height: 1.6;
}
.modal-body ul {
  margin-left: 2rem;
}
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 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;
}

/*  */
/* Footer */
footer {
  margin: 1rem 0 2rem 0;
  max-width: 960px;
  width: 100%;
  flex-shrink: 0;
  color: #f6ba43;
  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;
}

.hr-light {
  height: 1px;
  background-color: blue;
  border: none;
  margin: 1.5rem auto 1rem;
}
