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

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 12px;
  /* font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400; */
  color: #1c2126;
  background-color: #1c2126;
}

.main,
.retelechg {
  width: 100%;
  max-width: 750px;
  margin: 16px auto;
  padding: 10px 25px;
  border-radius: 14px;
  box-shadow:
    rgba(0, 0, 0, 1) 0px 14px 28px,
    rgba(0, 0, 0, 1) 0px 10px 10px;
}

.main {
  background-color: #e1e4e6;
}
.retelechg {
  padding-top: 2px;
  background-color: #c9ccce;
}

h1,
h2 {
  text-align: center;
  margin: 5px 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 19px;
  color: #3f4548;
}

.retelechg h2 {
  padding-top: 5px;
}

button {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.messg {
  padding: 4px 0;
  color: rgb(182, 13, 13);
  border-top: 1px solid #4b5960;
  border-bottom: 1px solid #4b5960;
}

.content {
  /* margin-top: 30px; */
}

ul {
  line-height: 1.4;
}

.gras {
  font-weight: 500;
}

.rouge {
  font-weight: 500;
  color: #90503b;
}

form {
  outline: none;
}

/* Zone nouveau téléchargement */

.redownload-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* margin-top: 20px; */
}

.redownload-fields .field {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}

.redownload-fields label {
  margin-bottom: 6px;
  font-weight: 600;
}

.redownload-fields input {
  box-sizing: border-box;
  height: 23px;
  border: none;
  border-bottom: 1px solid #4b5960;
  color: #1c2126;
  background-color: #c9ccce;
  padding: 0 1px;
  font-family: Roboto;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.redownload-fields input:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 2px solid #d44d63;
}
.redownload-btn {
  display: inline-block;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  font-family: Roboto, sans-serif;
  padding: 4px 8px;
  transition: all 0.2s ease;
  background: #4f46e5;
  color: #ffffff;
  outline: none;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.redownload-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Bouton de téléchargement */

.download-container {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 6px;
}
.redownload-container {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  margin-bottom: 4px;
}
a {
  text-decoration: none;
  color: brown;
  /* font-weight: 500; */
}
a:hover {
  color: #4f46e5;
}
.download-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  font-family: Roboto, sans-serif;
  transition: all 0.2s ease;

  background: #4f46e5;
  color: #ffffff;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.download-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.download-btn:active {
  transform: translateY(0);
}

/* Lang switcher */

.lang-switcher {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  /* margin-bottom: 16px; */
}

.lang-switcher button {
  padding: 0.5rem 0.9rem;
  border: 2px solid #555;
  background: #1c2126;
  color: #ccc;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  letter-spacing: 0.7px;
}

.lang-switcher button[aria-pressed='true'] {
  background: #741605;
  color: #fff;
  /* font-weight: 500; */
}

section[data-lang] {
  display: none;
}

html[lang='fr'] section[data-lang='fr'],
html[lang='en'] section[data-lang='en'] {
  display: block;
}

/* Bouton de copie de la référence de commande */

.order-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

#order-id {
  font-family: monospace;
  letter-spacing: 1px;
  color: #f2f2f2;
}

.copy-btn {
  border: 1px solid #948648;
  background: transparent;
  color: #1c2126;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-family: Roboto;
  font-size: 13px;
}

.copy-btn:hover {
  background: rgba(148, 134, 72, 0.15);
}
