/* BODY && MAIN STUFF */

* {
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
  /* set base font-size to equiv "10px", which is adapted to rem unit */
  font-size: 62.5%;
  /* IE9-IE11 math fixing. See http://bit.ly/1g4X0bX */
  font-size: calc(1em * 0.625);
}

figure {
  margin: 0;
}

body {
  background: var(--black);
  color: var(--white);
  font-size: 1.8rem;
  margin: 0;
  font-family: var(--sans-serif);
  scroll-snap-type: y mandatory; 
  font-weight: normal;
  font-style: normal;
  line-height: 1.2;
  overflow-x:hidden;
}

section {
  scroll-snap-align: start;     
}

div {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

svg.no-text {
  margin-right: -15px;
  width: auto;
  height: 13px;
}

svg.no-text .hide-text {
  display: none;
}

th{
    font-weight: normal;
}

a:hover {
  color: var(--dominant);
}

h1 {
  font-weight: normal;
}

/*.rituel-images img:hover,
.gallery-item img:hover {
  opacity: 0.5;
  transition: opacity 0.5s;
}
*/
/* HEADER */

.header {
  top: 0;
  z-index: 100;
  background: var(--black);
  gap: var(--gutter);
  font-size: 4.2rem;
  padding: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header img {
    filter: invert(100%);
}

.header .logo {
  grid-area: logo;
}

.header_button {
  grid-area: button;
}

.header_button a {
  background: transparent;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 16px 20px;
  text-decoration: none;
  text-transform: uppercase;
}

.header_menu a:hover {
  color: var(--dominant);
}



/* =====================
   HEADER MENU — IMAGE HOVER
   ===================== */

.header_menu a {
  position: relative;
  display: inline-flex;
  margin: 0 20px;
  text-transform: uppercase;
}

/* wrapper */
.header_menu a > span {
  position: relative;
  display: inline-block;
}

/* text */
.header_menu a > span > span {
  display: inline-block;
}

/* image */
.header_menu a img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  width: 100%;
  visibility: hidden;
  pointer-events: none;
}

/* hover behavior */
.header_menu a:hover img,
.header_menu a.active img {
  visibility: visible;
}

.header_menu a:hover span span,
.header_menu a.active span span {
  opacity: 0;
}




@media (min-width:768px) {
  .header_button a {
    padding: 0 20px;
    margin: 0 20px;
  }
}

.header_externals {
  display: flex;
  grid-area: socials;
  list-style: none;
  margin: 10px 0;
  padding: 0;
  text-transform: uppercase;
}

@media (min-width:768px) {
  .header_externals {
    flex-direction: column;
    margin: 0;
  }
}

.header_externals a {
  display: inline-block;
  margin-right: 15px;
}

.header_externals a:last-child {
  margin-right: 0;
}

.header_externals a:hover {
  text-decoration: underline;
}

.right {
	display: none;
}

@media (min-width:375px) {
.header_mobile {
  display:none;
}
}

/* FOOTER */

footer {
/*  margin-top: var(--gutter);
  font-style: italic;
  display: flex;
  justify-content: space-between;
*/
  font-size: 4.2rem;
}

.scene {
  width: 100%;
  height: 45vw;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: center;
  gap: 2rem; 
  position: relative;
  overflow: hidden;
}

#footer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.scene > *:not(canvas) {
  position: relative;
  z-index: 1;
}

footer .header_menu {
  display: flex;
  justify-content: center;
  text-align: right;
}

.retour-haut {
  position: relative; 
  width: 12rem;
}

.bottom {
  display: flex;           
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

footer img {
  filter: invert(100%);
}

/* TITRES */

.title {
  color: var(--white);
  font-size: 4em;
  font-family: var(--serif);      
}



/* NEWSLETTER */

.newsletter-block {
  margin: calc(var(--gutter) * 3) var(--gutter);
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: white;
  font-style: italic;
}

.newsletter-form input {
  background: transparent;
  border: 2px solid white;
  border-radius: 1em;
  color: white;
  padding: 0.3em 0.6em 0.2em 0.6em;
  font-size: 3rem;
  font-family: var(--sans-serif);
  outline: none;
  min-width: 260px;
  text-transform: uppercase;
}

.newsletter-form input::placeholder {
  color: white;
  opacity: 1;
}

.newsletter-form input:focus {
  animation: shake 0.25s infinite;
}

.newsletter-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid white;
  border-radius: 1em;
  padding: 0.3em 0.6em 0.2em 0.6em;
  font-size: 3rem;
  font-family: var(--sans-serif);
  text-transform: uppercase;
  cursor: pointer;
  color: white;
}

.newsletter-btn:hover {
  animation: shake 0.25s infinite;
}

.newsletter-confirmation {
  margin-top: 1rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  font-family: var(--sans-serif);
}

.newsletter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ABOUT !!!! */

.social-buttons {
  grid-column: 2 / span 6;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: var(--gutter);
}
.social-button {
  display: inline-block;
  border: 2px solid;
  border-radius: 1em;
  padding: 0.3em 0.6em 0.2em;
  font-size: 3rem;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--sans-serif);
}

.social-button:hover {
  animation: shake 0.25s infinite;
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

/* TITRE TOUTES PAGES */

/* TITLE LAYER */

.hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

/* OUTSIDE TITLE */
.hero-title {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1;
  margin: var(--gutter) 0 0 0;
  text-transform: uppercase;
}