@charset "utf-8";

/* CSS Document */
/* Reset des règles par défaut */
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,
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,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
button {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font: inherit;
  vertical-align: baseline;
}

ol,
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

input {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font: inherit;
  vertical-align: baseline;
}

textarea,
input {
  font-family: inherit;
  font-size: inherit;
}

/* Règles globales */
@font-face {
  font-family: "DM-Sans";
  font-weight: 400;
  src: url("../fonts/DMSans-Regular.ttf") format("TrueType");
}

@font-face {
  font-family: "DM-Sans";
  font-weight: 700;
  src: url("../fonts/DMSans-Bold.ttf") format("TrueType");
}

body {
  font-family: DM-sans, Arial, sans-serif;
  --color1: #27262b;
  --color2: #e9eaec;
  --color3: #2f84f3;
  --color4: #17294d;
  --color5: #b1afb2;
  --color6: #1d1d20;
  /* bas footer uniquement */
  --color7: #dc1414;
  --colorError: var(--color2);
  color: var(--color1);
  background: var(--color2);
}

@media (max-width: 599px) {
  body {
    font-size: .9rem;
  }
}

h1 {
  font-weight: 400;
  font-size: 1.5rem;
}

h2 {
  font-weight: 400;
  font-size: 2rem;
}

h3 {
  font-weight: 400;
  font-size: 1.5rem;
}

p {
  line-height: 1.5rem;
}

a {
  color: var(--color3);
  transition: 300ms;
}

a:visited {
  color: var(--color3);
}

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

a:active {
  color: var(--color4);
}

.standard>div {
  width: min(1400px, 90%);
  margin: auto;
}

/* NAV */

nav {
  width: 100%;
  position: fixed;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  z-index: 10;
}

nav a {
  color: var(--color4);
}

nav a:hover {
  color: var(--color3);
}

.menu-logo {
  background-color: var(--color2);
  height: 48px;
  width: calc(48px * 2);
}

.menu-logo>a {
  display: block;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-logo>a>img {
  width: 100%;
  height: 90%;
  object-fit: contain;
  object-position: left 50%;
}


@media (min-width: 1200px) {

  nav {
    background-color: var(--color2);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 10px -5px;
  }

  .adresse {
    flex: 100%;
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    height: 48px;
    background-color: var(--color2);
  }

  .adresse>div>a {
    display: flex;
    gap: .5rem;
    justify-content: center;
    align-items: center;
  }

  .menu {
    flex: 1;
  }

  .menu-items {
    flex: 4;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 2rem;
    height: 48px;
    box-sizing: border-box;
  }

  .menu-item:last-child {
    margin-right: 5vw;
  }

  .menu>.menu-logo {
    margin-left: calc(5vw + 48px);
    position: relative;
    transform: scale(2);
    top: -24px;
  }

  .adresse-icon svg {
    width: 16px;
    height: 16px;
    position: relative;
    top: .15rem;
    left: -.2rem;
    border: 1px solid var(--color4);
    background-color: var(--color4);
    color: var(--color2);
    padding: .5rem;
    border-radius: 5px;
    transition: 300ms;
  }

  .adresse>div>a:hover,
  .adresse>div>a:hover .adresse-icon svg {
    background-color: transparent;
    color: var(--color3);
  }

  .adresse>div>a:hover .adresse-icon svg {
    border: 1px solid var(--color3);
  }

  .menu-hamburger {
    display: none;
  }

}

@media (max-width: 1200px) {

  .adresse {
    flex: 1;
    order: 2;
    display: flex;
    justify-content: right;
    align-items: center;
    height: 55px;
    gap: 1rem;
    background-color: var(--color2);
  }

  .menu {
    order: 1;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 55px;
    gap: 1rem;
    background-color: var(--color2);
  }

  /* La transition sur la propriété max-height, invisible car postérieure à la translation, est présente pour que le contenu en dessous du menu soit accessible */
  /* Autrement, même invisible avec un contenu extérieur à l'écran, le div menu-items continuerait à occuper toute la largeur sur la hauteur qu'il possède */
  /* On ne pourrait donc cliquer sur aucun lien ou bouton sur ce tiers supérieur de l'écran */
  .menu-items {
    order: 3;
    flex: 100%;
    transition: transform 0.5s ease-in-out, max-height 0.1s linear 0.5s;
    background-color: var(--color2);
    transform: translateX(-100%);
    max-height: 0;
  }

  .menu-items.active {
    transform: translateX(0%);
    max-height: 350px;
    transition: transform 0.5s ease-in-out;
  }

  .menu>button {
    margin-left: 1rem;
  }

  .adresse>div:last-child {
    margin-right: 1rem;
  }

  .adresse-texte {
    display: none;
  }

  .adresse-icon {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color4);
    border-radius: 10px;
    width: 48px;
    height: 48px;
  }

  .adresse-icon svg {
    width: 65%;
    height: 65%;
  }

  .menu-logo>a>img {
    height: 100%;
  }

  .menu-item {
    text-align: center;
    padding: 1rem 0;
  }

  .menu-hamburger {
    background-color: transparent;
    width: 48px;
    height: 48px;
    border: 1px solid var(--color4);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    padding: 0;
  }

  .line {
    fill: none;
    stroke: var(--color4);
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }

  .line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
  }

  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }

  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }

  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
  }

  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }
}

.menu-item {
  position: relative;
}

.menu-item:before {
  content: '';
  display: block;
  position: absolute;
  left: -10px;
  top: -10px;
  height: calc(100% + 20px);
  width: calc(100% + 20px);
  border-radius: 5px;
  background-color: var(--color3);
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: scale(0, 1);
  transform: scale(0, 1);
  z-index: 1;
}

.menu-item:hover:before {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.menu-item>a {
  position: relative;
  z-index: 2;
}

.menu-item:hover>a {
  color: var(--color2);
}

.menu-item:last-child:before {
  background-color: var(--color7);
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.menu-item:last-child>a {
  color: var(--color2);
}

@media (max-width: 1200px) {
  .menu-item:before {
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    border-radius: 0;
  }
}

/* HEADER */

header {
  width: 100%;
  height: 800px;
  box-sizing: border-box;
  background-color: var(--color4);
  position: relative;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: 50% 50%;
}

@media (min-width: 600px) {
  header {
    background-image: url('../images/travaux-plomberie-beziers.jpg');
  }
}

@media (max-width: 600px) {
  header {
    background-image: url('../images/travaux-plomberie-beziers-smartphone.jpg');
  }
}

header>div:first-child {
  text-align: center;
  max-width: min(600px, 90%);
  color: var(--color2);
}

@media (min-width: 1400px) {
  header>div:first-child {
    margin-left: 15vw;
    margin-right: auto;
  }
}

header>div:first-child>h2 {
  font-weight: 700;
  background-color: var(--color3);
  width: fit-content;
  padding: 0 1rem;
  margin: 0 auto 1rem auto;
  border-radius: 5px;
}

header>div:first-child>h1>span {
  font-size: 3rem;
  font-weight: 700;
}

header>div:first-child>h1>span>span {
  color: var(--color3)
}


header>div:first-child>div {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

header>div:first-child>div>button {
  display: block;
  width: fit-content;
  cursor: pointer;
  color: var(--color2);
  text-decoration: none;
  background-color: var(--color7);
  outline: none;
  border: 1px solid var(--color7);
  border-radius: 5px;
  padding: 1rem;
  transition: 300ms;
}

header>div:first-child>div>button:hover {
  background-color: transparent;
  border: 1px solid var(--color2);
}

header>div:first-child>div>button:nth-child(2) {
  color: var(--color2);
  background-color: transparent;
  border: 1px solid var(--color2);
}

header>div:first-child>div>button:nth-child(2):hover {
  background-color: rgba(255, 255, 255, .2);
}

header>div:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -4rem;
}

@media (max-width: 600px) {
  header {
    height: auto;
    padding: 12rem 0 0 0;
  }

  header>div:nth-child(2) {
    position: relative;
    top: 4rem;
  }
}

header>div:nth-child(2)>div {
  width: 250px;
  height: 150px;
  background-color: dimgray;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 10px;
}

header>div:nth-child(2)>div>img {
  position: absolute;
  width: 100%;
  left: 0;
  height: 100%;
  top: 0;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(.5);
  transition: 300ms;
}

header>div:nth-child(2)>div:hover>img {
  filter: brightness(.8);
}

header>div:nth-child(2)>div>h4 {
  position: relative;
  text-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
}

header>div:nth-child(2)>div>h4>a {
  color: var(--color2);
  padding: 3rem 4rem;
}

header>div:first-child>h2,
header>div:first-child>h1,
header>div:first-child>div>button:first-child,
header>div:first-child>div>button:last-child {
  opacity: 0;
  animation: opacity 1s ease-in-out forwards;
}

header>div:first-child>h1 {
  animation-delay: 500ms;
}

header>div:first-child>div>button:first-child {
  animation-delay: 1000ms;
}

header>div:first-child>div>button:last-child {
  animation-delay: 1200ms;
}

/* ZONE INTERVENTIONS */

.intervention {
  padding: 6rem 0 2rem 0;
}

.intervention>div>h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.intervention>div>div:nth-child(2) {
  display: flex;
  column-gap: 2rem;
  row-gap: .5rem;
  flex-wrap: wrap;
  justify-content: left;
}

.intervention>div>div:nth-child(2)>div {
  flex: 30%;
  text-align: center;
}

@media (max-width: 1000px) {
  .intervention>div>div:nth-child(2)>div {
    flex-grow: 0;
    flex-basis: calc(50% - 1rem);
  }
}

.intervention>div>div:nth-child(3) {
  margin-top: 2rem;
  text-align: center;
}

/* PRESENTATION */

.presentation {
  padding: 8rem 0;
  background-color: var(--color4);
  color: var(--color2);
}

.presentation>div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6rem;
}

@media (max-width: 1000px) {
  .presentation>div {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

.presentation>div>div:first-child {
  max-width: 500px;
}

.presentation>div>div:first-child>h5 {
  position: relative;
  margin-bottom: 1rem;
}

.presentation>div>div:first-child>h5::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 30px;
  height: 1px;
  background-color: var(--color7);
}

@media (max-width: 1000px) {
  .presentation>div>div:first-child>h5::after {
    left: calc(50% - 15px);
  }
}

.presentation>div>div:first-child>h2>span {
  color: var(--color3);
}

.presentation>div>div:last-child {
  max-width: 500px;
}

.presentation>div>div:last-child>p>span {
  font-weight: 700;
  color: var(--color3);
}

@media (min-width: 1000px) {
  .presentation>div>div:last-child>p {
    text-align: justify;
  }

  .presentation>div>div:last-child>p:first-child {
    text-indent: 50px;
  }
}

.presentation>div>div:last-child>p:not(:first-child) {
  margin-top: 2rem;
}

.presentation>div>div:first-child>h5,
.presentation>div>div:first-child>h2,
.presentation>div>div:last-child>p {
  opacity: 0;
  transition: 1000ms;
  transition-timing-function: ease-in-out;
}

.presentation>div>div:first-child>h2 {
  transition-delay: 500ms;
}

.presentation>div>div:last-child>p {
  transition-delay: 1000ms;
}

.presentation>div.active>div:first-child>h5,
.presentation>div.active>div:first-child>h2,
.presentation>div.active>div:last-child>p {
  opacity: 1;
}

/* PRESTATIONS */

@media (max-width: 1000px) {
  .prestations {
    margin: 2rem 0;
  }
}

.prestations>div>div:last-child {
  background-color: var(--color4);
  color: var(--color2);
  box-sizing: border-box;
  padding: 2rem;
}

@media (min-width: 1000px) {
  .prestations>div {
    position: relative;
    padding: 1rem 1rem 4rem 1rem
  }

  .prestations>div>div:first-child {
    height: 650px;
    width: 80%;
    margin-left: auto;
  }

  .prestations>div>div:last-child {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    max-width: 60%;
    z-index: 2;
  }

  .prestations.rtl>div>div:first-child {
    margin-left: 0;
    margin-right: auto;
  }

  .prestations.rtl>div>div:last-child {
    left: auto;
    right: 1rem;
  }
}

.prestations>div>div:last-child>button {
  display: block;
  width: fit-content;
  cursor: pointer;
  color: var(--color2);
  text-decoration: none;
  background-color: var(--color7);
  outline: none;
  border: 1px solid var(--color7);
  border-radius: 5px;
  padding: 1rem;
  margin: 1rem 0;
  transition: 300ms;
}

.prestations>div>div:last-child>button:hover {
  background-color: var(--color4);
  border: 1px solid var(--color2);
}

@media (max-width: 1000px) {
  .prestations>div>div:first-child {
    width: 100%;
  }

  .prestations>div>div:last-child {
    position: relative;
    text-align: center;
    width: 85%;
    margin: -10% auto 0 auto;
  }

  .prestations>div>div:last-child>button {
    margin: 1rem auto;
  }
}

.prestations>div>div:first-child>img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1000px) {
  .prestations>div>div:first-child>img {
    height: 250px;
  }
}

.prestations>div>div:last-child>h3 {
  text-transform: uppercase;
  font-size: 1.5rem;
}

.prestations>div>div:last-child>p {
  margin: 2rem 0;
}

.prestations>div>div:last-child>p>span {
  font-weight: 700;
  color: var(--color3);
}

.prestations>div>div:last-child>div:nth-child(3) {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 4rem 0;
}

/* AVIS GOOGLE */

.avis-google {
  padding: 2rem 0;
}

.avis-google>div>div:first-child>h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.avis-google-slider {
  max-width: 600px;
  margin: auto;
}

.avis-google-slider>div:first-child>div.avis-google-slide {
  height: 173px;
}

@media (max-width: 600px) {
  .avis-google-slider {
    max-width: 400px;
  }

  .avis-google-slider>div:first-child>div.avis-google-slide {
    height: 151px;
  }
}

.avis-google-slider>div:not(:first-child)>div.avis-google-slide {
  display: none;
}

.avis-google-slide {
  background-color: var(--color4);
  color: var(--color2);
  padding: 1rem;
  margin: 1rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 10px 10px -5px;
  text-align: center;
}

@media (max-width: 599px) {
  .avis-google-slide {
    padding: .5rem;
    margin: .5rem;
  }
}

.avis-google-quote {
  font-size: 1.5rem;
  margin-right: .2rem;
}

.avis-google-quote:last-child {
  position: absolute;
}

.avis-google-slide>div:nth-of-type(1) {
  text-align: center;
  font-weight: 700;
}

.avis-google-slide>div:nth-of-type(2) {
  text-align: center;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.avis-google-slide>div:nth-of-type(2)>i {
  font-size: .8rem;
  margin: .1rem;
  color: gold;
}

.avis-google-slide>div:nth-of-type(2)>i.grey {
  color: grey;
}

.avis-google-slider .slick-prev::before,
.avis-google-slider .slick-next::before {
  color: var(--color4);
  transition: 300ms;
}

@media (max-width: 599px) {
  .avis-google-slider .slick-prev {
    left: -15px;
    z-index: 2;
  }

  .avis-google-slider .slick-next {
    right: -15px;
    z-index: 2;
  }
}

.avis-google-slider .slick-dots li button::before {
  color: var(--color4);
  transition: 300ms;
}

.avis-google-slider .slick-dots li.slick-active button::before {
  color: var(--color4);
}

.avis-google>div>div:last-child {
  text-align: center;
}

.avis-google>div>div:last-child>div:first-child {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin: 4rem 0 1rem 0;
}

.avis-google>div>div:last-child>div:first-child>i {
  color: #e2ad1b;
  font-size: 2rem;
}

.avis-google>div>div:last-child>div:last-child>div:first-child {
  font-weight: 700;
}

.avis-google>div>div:last-child>div:last-child>div>a {
  display: block;
  width: fit-content;
  margin: 2rem auto 1rem auto;
  padding: 1rem;
  background-color: var(--color7);
  color: var(--color2);
  border-radius: 5px;
  font-weight: 700;
}

.avis-google>div>div:last-child>div:last-child>div>a:hover {
  background-color: var(--color4);
}

/* MARQUES */

.marques {
  padding: 4rem 0;
}

.marques>div>h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.marques>div>div {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.marques>div>div>div {
  height: 150px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marques>div>div>div>img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 1000px) {
  .marques>div>div {
    gap: 2rem;
  }
}

/* ATOUTS */

.avantages {
  padding: 2rem 0;
}

.avantages>div>h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.avantages>div>div {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  overflow: hidden;
}

@media (max-width: 600px) {
  .avantages>div>div {
    gap: 2rem;
  }
}

.avantages>div>div>div {
  text-align: center;
  width: 150px;
}

.avantages>div>div>div>div:first-child {
  font-size: 2rem;
  color: #444;
  margin: 0 auto 1rem auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  /*border: 2px solid var(--color1);*/
  background-color: var(--color4);
  color: var(--color2);
  border-radius: 10px;
}

.avantages>div>div>div>div:last-child {
  max-width: 150px;
}

.avantages>div>div>div {
  opacity: 0;
}

.avantages>div>div>div.active {
  animation: to-left 1.5s ease-in-out forwards;
}

@media (min-width: 1200px) {
  .avantages>div>div>div:nth-child(2).active {
    animation-delay: 300ms;
  }

  .avantages>div>div>div:nth-child(3).active {
    animation-delay: 600ms;
  }

  .avantages>div>div>div:nth-child(4).active {
    animation-delay: 900ms;
  }
}

/* GALERIE */

.s-gallery {
  padding: 4rem 0;
}

.s-gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery {
  width: min(1600px, 90%);
  margin: auto;
}

.gallery .slick-prev::before,
.gallery .slick-next::before {
  color: var(--color4);
  transition: 300ms;
}

@media (max-width: 599px) {
  .gallery .slick-prev {
    left: 5px;
    z-index: 2;
  }

  .gallery .slick-next {
    right: 5px;
    z-index: 2;
  }

  .gallery .slick-prev::before,
  .gallery .slick-next::before {
    opacity: 1;
    color: var(--color2);
  }
}


.gallery .slick-dots li button::before {
  color: var(--color4);
  transition: 300ms;
}

.gallery .slick-dots li.slick-active button::before {
  color: var(--color4);
}

.gallery>div:not(:first-child)>div.gallery-slide {
  display: none;
}

.gallery div.gallery-slide {
  height: 500px;
}

/* règle temporaire le temps que s'initialise slick. Les 30px supplémentaires seront pris par la div des dots */
.gallery>div>div.gallery-slide {
  height: 530px;
}

@media (min-width: 800px) {
  .gallery div.gallery-slide {
    position: relative;
    height: 300px;
    margin: 0 .5rem;
  }

  /* règle temporaire le temps que s'initialise slick. Les 30px supplémentaires seront pris par la div des dots */
  .gallery>div>div.gallery-slide {
    height: 330px;
  }

  .gallery div.gallery-slide::after {
    position: absolute;
    content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 16 16' ><path fill-rule='evenodd' d='M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z' fill='%23f6f1eb'/><path d='M10.344 11.742c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1 6.538 6.538 0 0 1-1.398 1.4z' fill='%23f6f1eb'/><path fill-rule='evenodd' d='M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5z' fill='%23f6f1eb'/></svg>");
    width: 48px;
    height: 48px;
    left: calc(50% - 48px/2);
    top: calc(50% - 48px/2);
    transition: 300ms;
    opacity: 0;
    pointer-events: none;
  }

  .gallery div.gallery-slide img {
    transition: 300ms;
  }

  .gallery div.gallery-slide:hover img {
    filter: brightness(30%);
    cursor: pointer;
  }

  .gallery div.gallery-slide:hover::after {
    opacity: 100%;
  }
}

.gallery div.gallery-slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* GALLERY SCREEN */

#gallery-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.9);
  z-index: 10;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 799px) {

  #gallery-screen {
    gap: 1rem;
  }
}

#gallery-screen>div:first-child {
  height: 70%;
  max-width: 90%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

#gallery-screen>div:first-child>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 150ms;
}

#gallery-screen>div:nth-child(2) {
  height: 10%;
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}

@media (max-width: 799px) {

  #gallery-screen>div:nth-child(2) {
    gap: 1rem;
  }
}

#gallery-screen>div:nth-child(2)>img {
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: 300ms;
}

#gallery-screen>div:nth-child(2)>img:hover {
  filter: contrast(1.5);
}

#gallery-screen>svg {
  position: fixed;
  cursor: pointer;
  color: white;
  background: transparent;
  --size: 24px;
  width: var(--size);
  height: var(--size);
  transition: 150ms;
  padding: 1rem;
}

#gallery-screen>svg:hover {
  transform: scale(1.1);
}

#gallery-screen>svg[data-function=close] {
  top: 15px;
  right: 15px;
}

#gallery-screen>svg[data-function=update] {
  top: calc((100% - (70% + 2rem + 10%)) / 2 + 35% - (var(--size) + 1rem) / 2);
  /* marge d'en haut (soit la totalité de la page moins le contenu central puis divisé par deux) + moitié de la hauteur de l'image */
}

@media (max-width: 799px) {

  #gallery-screen>svg[data-function=update] {
    display: none;
  }
}

#gallery-screen>svg[data-direction=prev] {
  left: calc(10% - var(--size) / 2);
}

#gallery-screen>svg[data-direction=next] {
  right: calc(10% - var(--size) / 2);
}

/* FORMULAIRE */

.s-formulaire {
  padding: 4rem 0;
  background-color: var(--color4);
  color: var(--color2);
}

.s-formulaire>div {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.s-formulaire>div>div:first-child {
  text-align: center;
}

.s-formulaire>div>div:first-child>h2 {
  margin-bottom: 2rem;
}

.s-formulaire>div>div:first-child>i {
  font-size: 4rem;
}

@media (min-width: 1200px) {
  .s-formulaire>div>div>form {
    max-width: 400px;
    text-align: left;
  }
}

@media (max-width: 1200px) {
  .s-formulaire>div {
    flex-direction: column;
    gap: 2rem;
  }

  .s-formulaire>div>div>form {
    text-align: center;
  }
}

.s-formulaire>div>div>form>div {
  margin: 1rem 0;
}

.s-formulaire>div>div>form input[type=text],
.s-formulaire>div>div>form input[type=email],
.s-formulaire>div>div>form textarea {
  padding: 10px;
  width: 100%;
  color: var(--color1);
  background: var(--color2);
  outline: none;
  transition: color 0.5s;
  box-sizing: border-box;
  border: 0;
}

.s-formulaire>div>div>form input[type=text]::placeholder,
.s-formulaire>div>div>form input[type=email]::placeholder,
.s-formulaire>div>div>form textarea::placeholder {
  color: var(--color1);
  opacity: 1;
  font-size: 1rem;
  font-family: DM-sans, Arial, sans-serif;
}

.s-formulaire>div>div>form input[type=text]:focus,
.s-formulaire>div>div>form input[type=email]:focus,
.s-formulaire>div>div>form textarea:focus {
  color: var(--color3);
}

.s-formulaire>div>div>form input[type=checkbox] {
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--color3);
  border: 0;
  outline: none;
}

.s-formulaire>div>div>form input[type=submit],
.s-formulaire>div>div>form button.enablerecaptcha {
  width: 100%;
  background: var(--color7);
  color: var(--color2);
  border: 1px solid var(--color7);
  border-radius: 5px;
  cursor: pointer;
  padding: 10px;
  transition: 0.5s;
  font-family: DM-sans, Arial, sans-serif;
}

.s-formulaire>div>div>form input[type=submit]:hover,
.s-formulaire>div>div>form button.enablerecaptcha:hover {
  background: var(--color4);
  border: 1px solid var(--color2);
}

.s-formulaire>div>div>form input[type=submit].active {
  background: var(--color7);
  color: var(--color7);
  border: 1px solid var(--color7);
  cursor: auto;
}

.s-formulaire>div>div>form .response {
  text-align: center;
  width: 100%;
}

.s-formulaire>div>div>form .form-error {
  color: var(--colorError);
  box-sizing: border-box;
}

.s-formulaire>div>div>form div.miel {
  width: 0;
  height: 0;
  overflow: hidden;
  margin-top: -1rem;
  padding: 0;
}

/* FOOTER */

footer {
  padding: 4rem 0 1rem 0;
  background-color: var(--color1);
  color: var(--color2);
}

footer>div:first-child {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 1000px) {
  footer>div:first-child {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
}

footer>div:first-child>div:first-child {
  max-width: 200px;
  text-align: center;
}

footer>div:first-child>div:first-child>div:first-child {
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

footer>div:first-child>div:first-child>div:first-child>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

footer>div:first-child>div>div {
  margin: .5rem 0;
}

footer>div:first-child>div:nth-child(2)>div:first-child,
footer>div:first-child>div:nth-child(2)>div:nth-child(4) {
  font-weight: 700;
}

footer>div:first-child>div:nth-child(2)>div:nth-child(4) {
  margin-top: 2rem;
}

footer>div:first-child>div:nth-child(2)>div:last-child {
  display: flex;
  gap: .5rem;
}

@media (max-width: 1000px) {
  footer>div:first-child>div:nth-child(2)>div:last-child {
    justify-content: center;
  }
}

footer>div:first-child>div:nth-child(3)>div:last-child {
  width: min(348px, 90%);
  aspect-ratio: 348 / 300;
  display: grid;
  place-items: center;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, .3) 0px 20px 30px -10px;
}

footer>div:first-child>div:nth-child(3)>div:last-child>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

@media (max-width: 1000px) {
  footer>div:first-child>div:nth-child(3) {
    width: 90%;
    margin: auto;
  }

  footer>div:first-child>div:nth-child(3)>div:last-child {
    margin: auto;
  }
}

footer>div:first-child>div i.bi::before {
  font-size: 1rem;
}

footer>div:first-child>div:nth-child(2)>div:last-child i.bi::before {
  font-size: 1.5rem;
}

footer>div:first-child a {
  color: var(--color2);
}

footer>div:first-child a:hover {
  color: var(--color3);
}

footer>div:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  footer>div:last-child {
    flex-direction: column;
    gap: 1rem;
  }
}

footer>div:last-child button {
  cursor: pointer;
  background-color: transparent;
  outline: none;
  transition: 300ms;
  color: var(--color2);
}

footer>div:last-child button:hover {
  color: var(--color3);
}

.copyright {
  padding: .5rem;
  text-align: center;
  background-color: var(--color6);
  color: var(--color2);
}

.copyright>div {
  width: min(1400px, 90%);
  margin: auto;
}

@media (max-width: 600px) {
  .copyright>div {
    width: 70%;
  }
}

.copyright>div a {
  color: inherit;
}

.copyright>div a:hover {
  color: var(--color3);
}

/* GESTION DES POPUPS */

div[data-function="popup"] {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .8);
  justify-content: center;
  align-items: center;
}

div[data-function="popup"][aria-expanded="false"] {
  display: none;
}

div[data-function="popup"][aria-expanded="true"] {
  display: flex;
  z-index: 55;
}

div[data-function="popup"]>div {
  background-color: var(--color2);
  width: min(1200px, 80%);
  padding: 2rem;
  box-sizing: border-box;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 599px) {
  div[data-function="popup"]>div {
    padding: .5rem;
    max-height: 90%;
  }
}

button[data-function="close-popup"][data-forme="croix"] {
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, .05);
  color: var(--color1);
  transition: 150ms;
  box-sizing: border-box;
}

button[data-function="close-popup"][data-forme="croix"]:hover {
  background-color: rgba(0, 0, 0, .1);
}

button[data-function="close-popup"][data-forme="bouton"] {
  display: block;
  margin: auto;
  padding: 1rem;
  cursor: pointer;
  background-color: var(--color3);
  border-radius: 5px;
  color: var(--color2);
  transition: 300ms;
}

button[data-function="close-popup"][data-forme="bouton"]:hover {
  background-color: var(--color4);
}

/* BANDEAU DES COOKIES */

.cookie-bandeau {
  background: var(--color4);
  color: var(--color2);
  position: fixed;
  bottom: 25px;
  width: 100vw;
  z-index: 50;
}

.cookie-bandeau.active {
  display: none;
}

.cookie-bandeau button {
  border: none;
  padding: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px 0 5px;
  background: var(--color3);
  color: var(--color2);
  transition: 0.5s;
}

.cookie-bandeau button:last-child {
  background: transparent;
  border: 1px solid var(--color2);
  color: var(--color2);
}

.cookie-bandeau button:not(:last-child):hover {
  background: var(--color2);
  color: var(--color4);
}

.cookie-bandeau button:last-child:hover {
  background: rgba(255, 255, 255, .1);
}

.cookie-bandeau>div {
  margin: auto;
  padding: 10px 0;
  width: 80vw;
}

.cookie-bandeau>div>div:nth-child(1) {
  text-align: left;
}

@media (max-width: 599px) {
  .cookie-bandeau>div>div:nth-child(1) {
    text-align: center;
  }
}

@media (max-width: 1199px) {
  .cookie-bandeau>div>div:nth-child(2) {
    text-align: center;
    margin-top: 15px;
  }
}

@media (min-width: 1200px) {
  .cookie-bandeau>div {
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 50px;
  }

  .cookie-bandeau>div>div:nth-child(1) {
    flex: 2;
  }

  .cookie-bandeau button {
    margin: 0 0 0 5px;
    padding: 1rem;
  }
}

@media (max-width: 450px) {
  .cookie-bandeau button:last-child {
    margin: 1rem 0;
  }
}

.cookie-bandeau>div>div:first-child button[data-id="confidentialite"] {
  padding: 0;
  border: 0;
  margin: 0;
  display: inline;
  text-decoration: underline;
  background: transparent;
  transition: 300ms;
}

.cookie-bandeau>div>div:first-child button[data-id="confidentialite"]:hover {
  background: transparent;
  color: var(--color3);
}

/* PREFERENCES COOKIES */

#cookies-prefs {
  width: min(300px, 90%);
  margin: 5rem auto;
  padding: 10px;
  text-align: center;
}

#cookies-prefs h2 {
  margin-bottom: 2rem;
}

#cookies-prefs>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
}

#cookies-prefs>div>div:nth-child(1) {
  text-align: left;
}

#cookies-prefs input[type=submit] {
  border: none;
  padding: 15px 32px;
  cursor: pointer;
  margin: 10px;
  transition: 0.5s;
  border-radius: 5px;
  background: var(--color3);
  color: var(--color2);
  font-family: DM-sans, Arial, sans-serif;
  font-size: 1rem;
}

#cookies-prefs input[type=submit]:hover {
  background: var(--color4);
}

#cookies-prefs input[type=submit].active {
  background: var(--color4);
  color: var(--color4);
  cursor: auto;
}

#cookies-prefs .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0;
}

#cookies-prefs .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookies-prefs .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

#cookies-prefs .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

#cookies-prefs input:checked+.slider {
  background-color: var(--color3);
}

#cookies-prefs input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#cookies-prefs .slider.round {
  border-radius: 34px;
}

#cookies-prefs .slider.round:before {
  border-radius: 50%;
}

/* MENTIONS LEGALES ET CONFIDENTIALITE */

div[data-id="mentions"]>div>div {
  margin: 50px auto;
}

div[data-id="mentions"]>div>h2 {
  text-align: center;
}

@media (min-width: 1200px) {
  div[data-id="mentions"]>div>div {
    display: flex;
    justify-content: center;
    column-gap: 100px;
  }
}

@media (max-width: 1199px) {
  div[data-id="mentions"]>div>div {
    text-align: center;
  }
}

div[data-id="confidentialite"] h2 {
  margin: 50px 0;
  text-transform: uppercase;
  text-align: center;
}

div[data-id="confidentialite"] h3 {
  margin: 30px 0;
  text-transform: uppercase;
}

div[data-id="confidentialite"] h4,
div[data-id="confidentialite"] h5 {
  margin: 20px 0;
}

div[data-id="confidentialite"]>div>div {
  margin: 50px auto;
}

div[data-id="confidentialite"] p,
div[data-id="confidentialite"] li {
  text-align: justify;
  margin-bottom: 5px;
}

/* STICKER */

#top {
  cursor: pointer;
  color: var(--color2);
  background-color: var(--color4);
  position: fixed;
  right: 14px;
  bottom: 86px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  transition: 300ms;
  visibility: hidden;
  opacity: 0;
  z-index: 40;
}

@media (max-width: 1199px) {
  #top {
    right: 10px;
  }
}

#top:hover {
  transform: scale(1.1);
}

#top.scrolled {
  visibility: visible;
  opacity: 1;
}

/* ANCHOR */
.anchor {
  position: relative;
  top: -90px;
}

@media (max-width: 1200px) {
  .anchor {
    top: -55px;
  }
}

/* ANIMATIONS */

@keyframes maxheight {
  0% {
    max-height: 0px;
    padding: 0;
  }

  100% {
    max-height: 100px;
    padding: 1rem;
  }
}

@keyframes BGcolor {
  0% {
    background-position: 100% 50%;
  }

  20% {
    background-position: 50% 50%;
  }

  40% {
    background-position: 50% 50%;
  }

  80%,
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-direction {
  0% {
    stroke-dashoffset: 0px;
  }

  100% {
    stroke-dashoffset: -100px;
  }
}

@keyframes fallingstars {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: rotate(315deg) translateX(-1500px);
    opacity: 0;
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(.3) translateY(1000px);
  }

  30% {
    opacity: 1;
    transform: scale(1.5) translateY(0px);
  }

  55% {
    transform: scale(.90);
  }

  70% {
    transform: scale(1.05);
  }

  85% {
    transform: scale(.95);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  @keyframes bounce-in {
    0% {
      opacity: 0;
      transform: scale(.3) translateY(1000px);
    }

    30% {
      opacity: 1;
      transform: scale(1.2) translateY(0px);
    }

    55% {
      transform: scale(.90);
    }

    70% {
      transform: scale(1.05);
    }

    85% {
      transform: scale(.95);
    }

    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
}

@keyframes square {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-1500px) rotate(600deg);
  }
}

@keyframes spin {
  0% {
    transform: translateZ(-50px) rotateY(0);
  }

  100% {
    transform: translateZ(-50px) rotateY(360deg);
  }
}

@keyframes to-left {
  0% {
    opacity: 0;
    transform: translateX(1000px);
  }

  50% {
    opacity: 1;
    transform: translateX(0px);
  }

  60% {
    transform: translateX(20px);
  }

  70% {
    transform: translateX(0px);
  }

  85% {
    transform: translateX(10px);
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes to-right {
  0% {
    opacity: 0;
    transform: translateX(-1000px);
  }

  50% {
    opacity: 1;
    transform: translateX(0px);
  }

  60% {
    transform: translateX(-20px);
  }

  70% {
    transform: translateX(0px);
  }

  85% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes svg-rotate {
  0% {
    transform: scale(4) rotate(45deg);
  }

  100% {
    transform: scale(4) rotate(405deg);
  }
}

@keyframes opacity {
  0% {
    opacity: 0%;
  }

  100% {
    opacity: 100%;
  }
}

@keyframes circleBorder {
  0% {
    stroke-dasharray: 0 648;
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
    stroke-dasharray: 648;
  }
}

@keyframes circleOpacity {
  0% {
    opacity: 1;
    stroke-dashoffset: 0;
    stroke-dasharray: 648;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: 0;
    stroke-dasharray: 648;
  }
}

@keyframes circleBackground {
  0% {
    background: var(--color1);
  }

  100% {
    background: var(--color10);
  }
}

@keyframes circleBack {
  0% {
    background: var(--color10);
  }

  100% {
    background: var(--color1);
  }
}