/* =============================================================================
   RAZ des css du site
   ========================================================================== */
@viewport {
  width: device-width;
  zoom: 1;
}

/* switching box model for all elements */
*,
*::after,
*::before {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-flex: 0 1 auto;
}

.chromeframe {
  position: absolute;
  top: 0;
}

/* soft reset */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  scroll-behavior: smooth;
}

ul, ol {
  padding-left: 0;
  list-style-position: inside;
}

li {
  margin: 0;
  padding: 0;
}

ul.unstyled {
  list-style: none;
}

img {
  border: 0;
  vertical-align: middle;
}

audio,
canvas,
video {
  display: inline-block;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 0;
}

/* base font-size corresponds to 10px and is adapted to rem unit */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
/* font-sizing for content */

/* preserves vertical-rythm, thanks to http://soqr.fr/vertical-rhythm/ */
p,
ul,
ol,
dl,
blockquote,
pre,
td,
th,
label,
textarea,
caption,
details,
figure {
  margin: 0;
  line-height: inherit;
}

code,
pre,
samp,
kbd {
  white-space: pre-line; /* IE fix */
  white-space: pre-wrap;
  font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
  line-height: inherit;
}

code,
kbd,
mark {
  border-radius: 0.2rem;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

kbd {
  padding: 0 0.2rem;
  border: 0.1rem solid #999999999;
}

code {
  padding: 0.2rem 0.4rem;
  background: rgba(0, 0, 0, 0.04);
  color: #bb11b1111;
}

mark {
  padding: 0.2rem 0.4rem;
  background: #ffff0ff00;
}

sup,
sub {
  position: relative;
}

sup {
  bottom: 0.5ex;
}

sub {
  top: 0.5ex;
}

/* avoid top margins on first content element */
p:first-child,
ul:first-child,
ol:first-child,
dl:first-child,
blockquote:first-child,
pre:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

/* avoid margins on nested elements */
li p,
li ul,
li ol {
  margin-top: 0;
  margin-bottom: 0;
}

/* max values */
img,
table,
td,
blockquote,
code,
pre,
textarea,
input,
video {
  max-width: 100%;
}
img {
  max-height: 100%;
}

/* margin-bottom on tables */
table {
  margin: 0 auto;
}
input,
button,
select,
label {
  vertical-align: middle; /* @bugfix alignment */
  font-family: inherit;
  border-radius: 0;
}

/* 'x' appears on right of search input when text is entered. This removes it */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Removes inner padding and border in FF3+ */
button::-moz-focus-inner,
input[type='button']::-moz-focus-inner,
input[type='reset']::-moz-focus-inner,
input[type='submit']::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.cleft {
  clear: left !important;
}

.cright {
  clear: right !important;
}

.cboth {
  clear: both !important;
}

.fleft {
  float: left !important;
}

.fright {
  float: right !important;
}

.fnone {
  float: none !important;
}

.noborder {
  border: 0 none !important;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.txtleft {
  text-align: left;
}

.txtright {
  text-align: right;
}

.txtcenter {
  text-align: center;
}

.txtjustify {
  text-align: justify;
}

.vtop {
  vertical-align: top;
}

.vmiddle {
  vertical-align: middle;
}

.vbottom {
  vertical-align: bottom;
}

img.left {
  margin-right: 1em;
}

img.right {
  margin-left: 1em;
}

img.left,
img.right {
  margin-bottom: 0.5rem;
}

.width30 {
  width: 30%;
}

.width40 {
  width: 40%;
}

.width50 {
  width: 50%;
}

.width60 {
  width: 60%;
}

.width70 {
  width: 70%;
}

.width80 {
  width: 80%;
}

.width90 {
  width: 90%;
}

.width100 {
  width: 100%;
}

.height100 {
  height: 100%
}

.scrolled {
  overflow-y: scroll;
  overflow-x: hidden;
}
/* table layout */
.row {
  width: 100%;
  display: table;
  table-layout: fixed;
}

.row > *,
.col {
  display: table-cell;
  vertical-align: top;
}

.inbl {
  display: inline-block;
  vertical-align: top;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.lowercase::first-letter {
  text-transform: uppercase;
}

[class*="pixel_"] {
  display: inline-flex;
  margin: 0 0.1rem 0.1rem 0;
  text-decoration: none;
  justify-content: center;
  align-items: center;
}

.pixel_8 {
  flex: 0 0 0.8rem;
  height: 0.8rem;
  width: 0.8rem;
  font-size: 0.8rem;
}

.pixel_16 {
  flex: 0 0 1.6rem;
  height: 1.6rem;
  width: 1.6rem;
  font-size: 1.4rem;
}

.pixel_32 {
  flex: 0 0 3.2rem;
  height: 3.2rem;
  width: 3.2rem;
  font-size: 2.6rem;
}

.pixel_40 {
  flex: 0 0 4rem;
  height: 4rem;
  width: 4rem;
  font-size: 3.4rem;
}

.pixel_64 {
  flex: 0 0 6.4rem;
  height: 6.4rem;
  width: 6.4rem;
  font-size: 5.6rem;
}

.pixel_96 {
  flex: 0 0 9.6rem;
  height: 9.6rem;
  width: 9.6rem;
  font-size: 7.6rem;
}

.pixel_128 {
  flex: 0 0 12.8rem;
  height: 12.8rem;
  width: 12.8rem;
  font-size: 12rem;
}

.pixel_160 {
  flex: 0 0 16rem;
  height: 16rem;
  width: 16rem;
  font-size: 14rem;
}

.pixel_192 {
  flex: 0 0 19.2rem;
  height: 19.2rem;
  width: 19.2rem;
  font-size: 16rem;
}

.pixel_16 a {
  height: 1.6rem;
  width: 1.6rem;
  font-size: 1.4rem;
}

.pixel_32 a {
  height: 3.2rem;
  width: 3.2rem;
  font-size: 3rem;
}

.pixel_64 a {
  height: 6.4rem;
  width: 6.4rem;
  font-size: 5.6rem;
}

.pixel_96 a {
  height: 9.6rem;
  width: 9.6rem;
  font-size: 7.6rem;
}

.pixel_128 a {
  height: 12.8rem;
  width: 12.8rem;
  font-size: 12rem;
}

.pixel_160 a {
  height: 16rem;
  width: 16rem;
  font-size: 41rem;
}

.pixel_192 a {
  height: 19.2rem;
  width: 19.2rem;
  font-size: 16rem;
}

[class*="pixel_"] a,
[class*="pixel_"] a {
  display: inline-block;
  text-decoration: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
[class*="pixel_"],
.btn {
  cursor: pointer;
}

input,
label,
button {
  float: none;
  border: 0 none;
  margin: 0;
  padding: 0;
}

input {
  border: 1px solid #3b3b3b;
}

/* Print styles!
------------------------------------------------------------------------------- */
@media print {
  p,
  blockquote {
    orphans: 2;
    widows: 2;
  }

  blockquote,
  ul,
  ol {
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  caption {
    page-break-after: avoid;
  }
}

/* Media queries!
------------------------------------------------------------------------------- */
@-webkit-viewport {
  width: device-width;
  zoom: 1;
}

@-moz-viewport {
  width: device-width;
  zoom: 1;
}

@-ms-viewport {
  width: device-width;
  zoom: 1;
}

@-o-viewport {
  width: device-width;
  zoom: 1;
}

@viewport {
  width: device-width;
  zoom: 1;
}

:focus {
  outline: 0 none;
}

input[type="search"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input[type="radio"],
input[type="checkbox"] {
  margin: 4px 0 0;
  margin-top: 1px \9;
  line-height: inherit;
}

input[type="file"] {
  display: block;
  border: 0 none;
}

select[multiple],
select[size] {
  height: auto;
}

select optgroup {
  font-size: inherit;
  font-style: inherit;
  font-family: inherit;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: thin dotted #333333;
  outline-offset: -2px;
}

input[required] {
  border: 1px solid orange;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: 0 0 0 100rem white inset;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

[class*="flex-"] {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

[class*="flex-"][class*="-col"] {
  flex-direction: column;
}
[class*="-rowrev"] {
  flex-direction: row-reverse;
}
[class*="-colrev"] {
  flex-direction: column-reverse;
}
[class*="flex-"][class*="-wrap"] {
  flex-wrap: wrap;
}
[class*="fJcenter"] {
  justify-content: center;
}
[class*="fJstart"] {
  justify-content: flex-start;
}
[class*="fJend"] {
  justify-content: flex-end;
}
[class*="fJaround"] {
  justify-content: space-around;
}
[class*="fJbetween"] {
  justify-content: space-between;
}
[class*="fJevenly"] {
  justify-content: space-evenly;
}
[class*="fAstart"] {
  align-items: flex-start;
}
[class*="fAend"] {
  align-items: flex-end;
}
[class*="fAcenter"] {
  align-items: center;
}
[class*="fAstretch"] {
  align-items: stretch;
}
[class*="fAbaseline"] {
  align-items: baseline;
}
[class*="fSstart"] {
  align-self: flex-start;
}
[class*="fSend"] {
  align-self: flex-end;
}

.grid-flex {
  flex: 1;
}
.inline-field {
  display: inline;
}
.odd {
  background-color: #ffffff;
}
.even {
  background-color: #f5f5f5;
}

.odd:hover,
.even:hover {
  background-color: #ededed;
}
.nowrap  {
  white-space: nowrap;
}

@media (max-width: 640px) {
  /* passer body (et tous les éléments de largeur fixe) en largeur automatique */
  body {
    width: auto;
    margin: 0;
    padding: 0;
  }

  /* fixer une largeur maximale de 100% aux éléments potentiellement problématiques */
  img,
  table,
  td,
  blockquote,
  code,
  pre,
  textarea,
  input,
  iframe,
  object,
  embed,
  video {
    max-width: 100%;
    max-height: 100%;
  }

  /* conserver le ratio des images */
  img {
    height: auto;
  }

  /* gestion des mots longs */
  textarea,
  table,
  td,
  th,
  code,
  pre,
  samp {
    -webkit-hyphens: auto; /* césure propre */
    -moz-hyphens: auto;
    hyphens: auto;
    word-wrap: break-word /* passage à la ligne forcé */
  }

  code,
  pre,
  samp {
    white-space: pre-wrap /* passage à la ligne spécifique pour les éléments à châsse fixe */
  }
}

@media (max-device-width: 768px) and (orientation: landscape) {
  html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
}
@supports (overflow: overlay) {
  *::-webkit-scrollbar {
    display: block;
    width: 16px;
  }
  *::-webkit-scrollbar-button {
    display: none;
  }
  *::-webkit-scrollbar-track {
    background-color: #00000000;
  }
  *::-webkit-scrollbar-track-piece {
    background-color: #00000000;
  }
  body {
    overflow: overlay;
  }
  * {
    --scrollbar-color: #00000000;
  }
  *:hover,
  *:focus,
  *:focus-within {
    --scrollbar-color: #00000040 !important;
  }
  *::-webkit-scrollbar-thumb {
    background-color: #00000000;
    border: 5px solid transparent;
    border-radius: 24px;
    box-shadow: 4px 0px 0px 4px var(--scrollbar-color) inset;
  }
  *::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-color);
    border: 0px solid transparent;
    box-shadow: none;
  }
}
