/* General */
:root {
  --fond: #fdfaee;
  --vert: #8da786;
  --derive: #6A645A;
  --bordeaux: #A7001E;
  --bleu: #188dd4;
  --whastapp: #25D366;
  --fb: #3B5998;
  --insta: #c135b5;
  --podcast: #872EC4;
  --noir: #000;
  --rouge-fonce: #7C0440;
  --rouge: #F00020;
  --rose: #69264A;
  --white: #ffffff;
  --bigsize: 4vh;
  --mediumsize: 3vh;
  --smallsize: 2vh;
  --copyright: 1vh;
}

@font-face {
  font-family: 'Vibraday-regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Ruda-Regular'),
    url('../fonts/Ruda-Regular.woff2') format('woff2'),
    url('../fonts/Ruda-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Vibraday-bold';
  font-style: bold;
  font-weight: 900;
  font-display: swap;
  src: local('Ruda-Bold'),
    url('../fonts/Ruda-Bold.woff2') format('woff2'),
    url('../fonts/Ruda-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Autery';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Autery'),
    url('../fonts/Autery.woff2') format('woff2'),
    url('../fonts/Autery.woff') format('woff');
}

.alternating {
  animation-name: alternating-text;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
  font-weight: 700;
}

@keyframes alternating-text {
  90% {
    display: none;
  }
}

body {
  font-family: 'Vibraday-regular', sans-serif;
}

header {
  display: grid;
  place-content: center;
  height: 90vh;
  height: 90dvh;
  margin-bottom: 10vh;
  margin-bottom: 10dvh;
  gap: 2.5vmin;
}

header img {
  display: block;
  height: 25rem;
  max-height: 50vw;
  width: auto;
  margin: 0 auto;
  position: fixed;
  top: 50%;
  left: 50%;
  animation: adjust-image linear both;
  animation-timeline: --header-vtl;
  animation-range: exit;
  z-index: -1;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  text-align: center;
  line-height: 1;
  max-width: 80vw;
  padding-top: min(20rem, 60vw);
}

header h1 em,
header h2 {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.4em;
  line-height: 1.2;
}

#page-index header h2 {
display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.2;
  text-wrap: balance;
  text-align: center;  
}

main {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  text-wrap: balance;
}

aside {
  position: fixed;
  top: 1%;
  left: 3%;
}

#page-index aside::after,
#page-merci aside::after,
#page-devis aside::after,
#page-oeth_et_qvt aside::after,
#page-tambour aside::after {
  content: "Immergez vous, écoutez le tambour!"
}

#page-diapasons aside::after {
  content: "Immergez vous, écoutez du diapason!"
}

main section {
  display: inline-table;
  padding: 5px;
  margin: 5px;
  height: auto;
  box-sizing: border-box;
}

section p:first-child {
  font-weight: 900;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: var(--rose);
}

footer {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--copyright);
  text-align: center;
}

.image-radius {
  border-radius: 15%;
}

.image-centered {
  margin-left: auto;
  margin-right: auto;
}

.text-render {
  word-wrap: break-word;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

a {
  font-weight: 700;
  display: contents;
}

#cards {
  padding-bottom: calc(var(--numcards) * var(--card-top-offset));
  margin-bottom: var(--card-margin);
}

#card_1 {
  --index: 1;
}

#card_2 {
  --index: 2;
}

#card_3 {
  --index: 3;
}

#card_4 {
  --index: 4;
}

#card_5 {
  --index: 5;
}

#card_6 {
  --index: 6;
}

#card_7 {
  --index: 7;
}

#card_8 {
  --index: 8;
}

.card {
  position: sticky;
  top: 0;
  padding-top: calc(var(--index) * var(--card-top-offset));
}

.card__content {
  transform-origin: 50% 0%;
  will-change: transform;
}

#cards {
  list-style: none;
  outline: calc(var(--outline-width) * 10) solid hotpink;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--numcards), var(--card-height));
  gap: var(--card-margin);
}

.card {
  outline: var(--outline-width) solid lime;
}

.card__content {
  box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.1), 0 1em 2em rgba(0, 0, 0, 0.1);
  border-radius: 1em;
  overflow: hidden;
  display: grid;
  grid-template-areas: "text img";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  align-items: stretch;
  outline: var(--outline-width) solid blue;
}

.card__content>div {
  grid-area: text;
  width: 80%;
  place-self: center;
  text-align: left;
  line-height: 2;
  margin-top: 60px;
  display: grid;
  gap: 1em;
  place-items: start;
}

.card__content>picture {
  grid-area: img;
  overflow: hidden;
  margin: 0;
}

.card__content>picture>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*TEST OVERLAY */
.img-overlay-wrap {
  position: relative;
  display: inline-block;
  transition: transform 150ms ease-in-out;
}

.img-overlay-wrap img.figuration {
  display: block;
  max-width: 100%;
}

.img-overlay-wrap .svg {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.2;
}

/******** AUDIO ******/

.audio-player {
  --player-button-width: 3em;
  --sound-button-width: 2em;
  --space: .5em;
}

.icon-container {
  width: 100%;
  height: 100%;
  background-color: var(--rose);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.audio-icon {
  width: 90%;
  height: 90%;
}

.controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

.player-button {
  background-color: transparent;
  border: 0;
  width: var(--player-button-width);
  height: var(--player-button-width);
  cursor: pointer;
  padding: 0;
}

.timeline {
  -webkit-appearance: none;
  width: calc(100% - (var(--player-button-width) + var(--sound-button-width) + var(--space)));
  height: .5em;
  background-color: var(--vert);
  border-radius: 5px;
  background-size: 0% 100%;
  background: linear-gradient(90deg, var(--rose) 0%, var(--bleu) 100%);
  background-repeat: no-repeat;
  margin-right: var(--space);
}

.timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: var(--insta);
}

.timeline::-moz-range-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: var(--insta);
}

.timeline::-ms-thumb {
  -webkit-appearance: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: all .1s;
  background-color: var(--insta);
}

.timeline::-webkit-slider-thumb:hover {
  background-color: var(--insta);
}

.timeline:hover::-webkit-slider-thumb {
  opacity: 1;
}

.timeline::-moz-range-thumb:hover {
  background-color: var(--insta);
}

.timeline:hover::-moz-range-thumb {
  opacity: 1;
}

.timeline::-ms-thumb:hover {
  background-color: var(--insta);
}

.timeline:hover::-ms-thumb {
  opacity: 1;
}

.timeline::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.timeline::-moz-range-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.timeline::-ms-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.sound-button {
  background-color: transparent;
  border: 0;
  width: var(--sound-button-width);
  height: var(--sound-button-width);
  cursor: pointer;
  padding: 0;
}

/****AUDIO END******/

.devis header {
  margin-bottom: 0;
  height: 15dvh;
}

.devis header h1 {
  margin: 0;
  font-size: 2.5em;
  text-align: center;
  line-height: 1;
  max-width: 80vw;
  position: fixed;
  top: 0;
  left: 25%;
  padding-top: 0;
}

nav {
  position: fixed;
  top: 6%;
  right: 2%;
  width: 64px;
  height: 64px;
}

.centrage {
  text-align: center;
}

.svgstyle {
  text-shadow: 2px 2px 4px var(--rose);
  font-family: Vibraday-regular;
  letter-spacing: -2px;
  font-size: .9rem;
  word-wrap: break-word;
  background-color: var(--fond);
}