/* -------------------------------------------------------
 * 🛠️ ==> RESET CONFIGURATION
 * ------------------------------------------------------- */
* {
  -webkit-overflow-scrolling: touch;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
body {
  line-height: 1;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
:focus {
  outline: 0;
}
ins {
  text-decoration: none;
}
del {
  text-decoration: line-through;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
select,
input,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
header,
footer,
section,
aside,
nav {
  display: block;
}
@media only screen and (max-device-width: 480px) {
  body {
    -webkit-text-size-adjust: 100%;
  }
}

* {
  outline: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}
img {
  border: 0;
  width: auto;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0 0 2em;
  padding: 0;
}
h1 {
  font-size: 20px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
h4 {
  font-size: 14px;
}
h5 {
  font-size: 13px;
}
h6 {
  font-size: 12px;
}
.clear {
  clear: both;
}
.ui-loader {
  display: none;
}

#boxPageOverlay,
#boxPage,
form label input,
form label textarea,
form label select,
form .label input,
form .label select,
form input.submit {
  transition: all 350ms ease-out;
}

/* -------------------------------------------------------
 * 🛠️ DEFAULT FORMS
 * ------------------------------------------------------- */
form {
  padding: 0 0 20px;
}
form label {
  position: relative;
  display: block;
  margin: 5px 0 15px;
  text-align: left;
  font-weight: normal;
}
form label span.label,
form span.label {
  display: block;
  text-align: left;
  padding: 0;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: bold;
}
form label input,
form label textarea,
form label select,
form .label input,
form .label select {
  width: 100%;
  max-width: 390px;
  border: 1px solid #ccc;
  padding: 0;
  height: 40px;
  text-indent: 10px;
  vertical-align: top;
  font-weight: normal;
  font-size: 15px;
}
form label textarea {
  height: 120px;
  text-indent: 0;
  padding: 5px;
  width: 430px;
  resize: none;
}
form label input:focus,
form label textarea:focus,
form label select:focus,
form .label input:focus,
form .label select:focus {
  background: #eee;
}
form input.submit {
  margin: 20px auto;
  padding: 0 25px;
  display: block;
  background: #4f5254;
  color: var(--color-text);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  height: 38px;
  line-height: 38px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-indent: 0;
}
form input.submit:hover,
form input.submit:focus {
  background: #717a80;
}
form label.check,
form label.radio,
form .label.radio label,
form .label.check label {
  display: inline-block;
  width: 33%;
  margin: 4px 0 4px;
  font-weight: normal;
}
form label.check input,
form label.checkbox input,
form label input.checkbox,
form label.radio input,
form .label.radio input,
form label input.radio {
  width: auto;
  height: auto;
  margin: 0;
}
form label input.file {
  width: auto;
  border: 0;
  background: none;
  text-indent: 0;
}

/* -------------------------------------------------------
 * 🛠️ SELECT ARROW REPLACEMENT
 * ------------------------------------------------------- */
select {
  height: 30px;
  border: 0;
  padding-left: 10px;

  /* -------------------------------------------------------
 * ⚡ SMALL ARROW ALONE 
 * ------------------------------------------------------- */
  background-image: linear-gradient(45deg, transparent 50%, #000 50%),
    linear-gradient(135deg, #000 50%, transparent 50%) !important;
  background-position: calc(100% - 17px) 1em, calc(100% - 10px) 1em !important;
  background-size: 7px 8px, 7px 10px !important;
  padding-right: 40px;
  background-repeat: no-repeat !important;
}
option {
  background: var(--color-text);
  color: #000;
}

/* -------------------------------------------------------
 * 🛠️ FORMS VERIF
 * ------------------------------------------------------- */
form label span.verif,
form .lab span.verif {
  position: absolute;
  right: -30px;
  width: 20px;
  height: 20px;
  top: 10px;
  vertical-align: top;
}
form label.checkbox span.verif {
  top: 0px;
}
form label span.verif.valid,
form .lab span.verif.valid {
  background: url(../images/verif_valid.png?t) no-repeat center center;
}
form label span.verif.error,
form .lab span.verif.error {
  background: url(../images/verif_error.png?t) no-repeat center center;
}
form label span.veriftxt,
form .lab span.veriftxt {
  color: red;
  line-height: 14px;
  position: absolute;
  top: 0px;
  right: 20px;
  z-index: 15;
  background: var(--color-text);
  padding: 4px 10px;
  display: none;
  text-align: right;
  white-space: nowrap;
}
form label span.verif.valid span.veriftxt,
form .lab span.verif.valid span.veriftxt {
  color: #009deb;
}
form label span.verif:hover span.veriftxt,
form .lab span:hover span.veriftxt {
  display: block;
}
form label span.veriftxt:empty,
form .lab span.veriftxt:empty {
  display: none !important;
}

/* -------------------------------------------------------
 * 🛠️ FORM INPUT FILE & PREVIEW FILE 
 * ------------------------------------------------------- */
form input[type="file"] {
  padding: 0;
  text-indent: 0;
  border: 0;
  box-shadow: none;
  height: auto;
}
form .previewFile .file {
  display: inline-block;
  margin: 0 5px 5px 0;
  height: 80px;
  width: 80px;
  background: var(--color-text) no-repeat center center / contain;
  border: 1px solid #999;
}

/* -------------------------------------------------------
 * 🛠️ RADIO / CHECKBOX REPLACEMENT
 * 🛠️ masque les checkbox et radio
 * ------------------------------------------------------- */
[type="checkbox"]:checked,
[type="checkbox"]:not(:checked),
[type="radio"]:not(:checked),
[type="radio"]:checked {
  position: absolute;
  left: -9999px;
}

/* -------------------------------------------------------
 * 🛠️ On customise le label
 * ------------------------------------------------------- */
[type="checkbox"]:not(:checked) + .label,
[type="checkbox"]:checked + .label,
[type="radio"]:not(:checked) + .label,
[type="radio"]:checked + .label {
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-right: 1em;
  line-height: 1.8em;
}
[type="checkbox"]:not(:checked) + .label:before,
[type="checkbox"]:checked + .label:before,
[type="radio"]:not(:checked) + .label:before,
[type="radio"]:checked + .label:before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 24px;
  background: var(--color-text);
  margin-right: 10px;
  vertical-align: middle;
  color: transparent;
  font-size: 1em;
  transition: all 200ms ease-out;
  text-align: center;
  border: 2px solid #757575;
  border-radius: 10px;
  letter-spacing: 0;
  text-indent: 0;
}

/* -------------------------------------------------------
 * 🛠️ style pour la checkbox, plus carré
 * ------------------------------------------------------- */
[type="checkbox"]:not(:checked) + .label:before,
[type="checkbox"]:checked + .label:before {
  border-radius: 14px;
  border: 2px solid #c8c8c8;
  color: #c8c8c8;
}

/* -------------------------------------------------------
 * 🛠️ On customise le label quand la case est cochée
 * ------------------------------------------------------- */
[type="checkbox"]:checked + .label:before,
[type="radio"]:checked + .label:before {
  color: #a9a9a9;
  background: var(--color-text);
  font-size: 0;
  font-weight: bold;
}

/* -------------------------------------------------------
 * 🛠️ Rond: radio
 * ------------------------------------------------------- */
[type="radio"]:checked + .label:before {
  content: "\2714";
  font-size: 18px;
}

/* -------------------------------------------------------
 * 🛠️ Coche : checkbox
 * ------------------------------------------------------- */
[type="checkbox"]:checked + .label:before {
  content: "\2714";
  font-size: 18px;
}

/* -------------------------------------------------------
 * 🛠️ SWEET ALERT CONFIG
 * ------------------------------------------------------- */
.swal2-popup {
  border-radius: 30px !important;
  background: var(--back-sweetalert) !important;
}
.swal2-title {
  color: var(--color-sweetalert-title) !important;
}
.swal2-content {
  color: var(--color-sweetalery-content) !important;
}
.swal2-icon.swal2-error {
  border-color: var(--color-sweetalert-error) !important;
}
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background: var(--color-sweetalert-error) !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
  border-color: var(--color-sweetalert-success) !important;
}
.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background: var(--color-sweetalert-success) !important;
}
.swal-button {
  background-color: var(--button-back) !important;
  color: var(--button-color) !important;
}
.swal-button:active,
.swal-button:hover {
  background-color: var(--button-hover-back) !important;
  color: var(--button-hover-color) !important;
}
.swal2-styled:focus,
.swal-button:focus {
  box-shadow: none !important;
}
.swal2-styled.swal2-confirm {
  background-color: var(--button-back) !important;
  border-radius: 30px !important;
  color: var(--button-color) !important;
}
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
  background: var(--back-sweetalert-overlay) !important;
}

/* -------------------------------------------------------
 * 🛠️ SCROLLBAR
 * ------------------------------------------------------- */
::-webkit-scrollbar-track {
  background-color: var(--color-scrollbar);
  border: 2px solid var(--color-scrollbar);
  border-width: 4px 0;
}
::-webkit-scrollbar {
  width: 10px;
  background-color: var(--color-scrollbar);
  border: 2px solid var(--color-scrollbar);
  border-width: 4px 0;
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-scrollbar2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-scrollbar2b);
}
::-webkit-scrollbar-button {
  border-style: solid;
  height: 0;
  width: 6px;
  background: var(--color-scrollbar);
}

/* -------------------------------------------------------
 * 🛠️ GLIGHTBOX AND DEFAULT PAGES
 * ------------------------------------------------------- */
.glightbox-clean .gslide-description,
.glightbox-modern .gslide-description {
  background: var(--back-box);
}
.glightbox-clean .gdesc-inner,
.glightbox-modern .gdesc-inner {
  padding: 8px 10px;
}
.glightbox-clean .gslide-title,
.glightbox-modern .gslide-title {
  margin-bottom: 0;
  font-size: var(--size-box-title);
  color: var(--color-box-title);
}
.glightbox-unique .glightbox-clean .gnext,
.glightbox-unique .glightbox-modern .gnext,
.glightbox-unique .glightbox-clean .gprev,
.glightbox-unique .glightbox-modern .gprev {
  display: none !important;
}
.glightbox-unique .glightbox-container .ginner-container {
  max-width: var(--max-width-box);
  border-radius: 20px;
  font-size: var(--size-box);
  overflow: hidden;
}
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev,
.glightbox-modern .gclose,
.glightbox-modern .gnext,
.glightbox-modern .gprev {
  border-radius: 50%;
}
.glightbox-clean .gclose svg,
.glightbox-modern .gclose svg {
  margin: 0 auto;
}
