/* VARIABLES */
/* FONT FACE */
@font-face {
  font-family: "SM";
  src: url("/FONTS/SM.TTF");
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  box-sizing: border-box;
}
body {
  background-color: #eef9ff;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  font-size: 16px;
}
/* TITRES */
h1,
h2,
h3 {
  font-family: "SM";
}
h1 {
  font-size: 100px;
}
h2 {
  font-size: 50px;
}
p {
  font-size: 20px;
}
/* SECTIONS */
section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#accueil {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff 0%, #e5d4ff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}
/* GLITCH ANIMATION TITRE */
.glitch-title {
  position: relative;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 #ffb400;
  animation: glitchTop 2s infinite linear alternate-reverse;
}
.glitch-title::after {
  left: -2px;
  text-shadow: -2px 0 orange;
  animation: glitchBottom 2s infinite linear alternate-reverse;
}
/* KEYFRAMES GLITCH + FLOAT */
@keyframes glitchTop {
  0% {
    clip-path: inset(0 0 80% 0);
  }
  20% {
    clip-path: inset(0 0 50% 0);
  }
  40% {
    clip-path: inset(0 0 90% 0);
  }
  60% {
    clip-path: inset(0 0 40% 0);
  }
  100% {
    clip-path: inset(0 0 70% 0);
  }
}
@keyframes glitchBottom {
  0% {
    clip-path: inset(80% 0 0 0);
  }
  20% {
    clip-path: inset(50% 0 0 0);
  }
  40% {
    clip-path: inset(90% 0 0 0);
  }
  60% {
    clip-path: inset(40% 0 0 0);
  }
  100% {
    clip-path: inset(70% 0 0 0);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
/* NAVIGATION */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  opacity: 0;
  transform: translateY(-120%);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.6s ease;
  z-index: 1000;
  pointer-events: none;
}
header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  backdrop-filter: blur(10px);
  background-color: rgba(123, 44, 191, 0.85);
}
header nav {
  display: flex;
  align-items: center;
}
header nav ul {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  list-style: none;
}
header nav ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), background-color 0.3s ease;
}
header nav ul li:hover {
  transform: scale(1.1) rotateZ(2deg);
  background-color: #46196c;
}
header nav ul li a {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
header nav ul li a:hover {
  color: #ffb400;
  text-shadow: 0 0 15px #ffb400;
}
header nav ul li:nth-child(3) a {
  font-family: "SM";
}
/* AUTRES SECTIONS */
#apropos {
  height: 700px;
  background-color: #dd93ff;
}
#apropos h2 {
  padding-top: 20px;
}
#apropos p {
  padding: 50px 10px;
}
#apropos #images {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding: 50px;
}
#apropos #images img {
  min-height: 200px;
  min-width: 200px;
  background-color: orange;
}
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}
