@font-face {
    font-family: "swiss-721";
    src: url('fonts/swiss-721/Swiss\ 721\ Medium.otf');
}

@font-face {
    font-family: "swiss-721-light";
    src: url('fonts/swiss-721/Swiss\ 721\ Light.otf');
}

body {
  background-image: url("images/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "swiss-721", Arial, Helvetica, sans-serif;
  margin: 0;
  /* leave space for the fixed header so content isn't hidden behind it */
  padding-top: 60px;
  color: #24292b;
}

h1 {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
}

h2 {
  text-align: center;
  font-size: 35px;
}

a {
  color: inherit;
}

.encadre{
  margin: 15px;
  font-size: 30px;
}

.encadre p, .encadre h1 {
  padding: 15px;
  color: white;
  font-size: 30px;
  text-align: center;
  margin: 0px;
  padding: 15px;
}

.encadre h1 {
  background-color: rgba(238, 129, 3, 0.85);
  border-top-right-radius: 12.5px;
  border-top-left-radius: 12.5px;
  margin-bottom: 0;
  backdrop-filter: blur(4px);
}

.encadre p {
  background-color: rgba(36, 41, 43, 0.85);
  border-bottom-right-radius: 12.5px;
  border-bottom-left-radius: 12.5px;
  margin-top: 0;
  backdrop-filter: blur(4px);
}

main a {
  text-decoration: none;
}

button {
  font-size: 30px;
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background-color: rgba(127, 127, 127, 0.75);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

button:hover {
  opacity: 0.9;
}

button.primary {
  background-color: rgba(238, 129, 3, 0.85)
}

button.secondary {
  background-color: rgba(127, 127, 127, 0.75)
}

.encadre p:nth-of-type(2) a {
  color: white;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80vh;
  justify-content: center;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* keep header above other content */
  background-color: rgba(238, 129, 3, 0.85098);
  backdrop-filter: blur(4px);
}

header ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

header ul li{
  display: inline-block;
  margin: 0 15px;
  padding: 15px 0;
}

header ul li a{
  text-decoration: none;
  color: white;
  font-size: 20px;
}

#a-propos {
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

#a-propos h2 {
  color: #ee8103;
  margin-bottom: 20px;
  text-transform: uppercase;
}

ul.services {
  list-style: none;
  padding-left: 0;
}

ul.services li::before {
  content: "🔹 ";
  margin-right: 8px;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  min-width: 200px;
  max-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(238, 129, 3, 0.3);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.service-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

#carousel{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Pas la meilleur pratique */
x-carousel{
  max-height: 400px;
}

#contact{
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(36, 41, 43, 0.85);
  backdrop-filter: blur(4px);
  color: white;
}

#contact form{
  display: flex;
  flex-direction: column;
  width: 600px;
  max-width: 90%;
  gap: 15px;
}

footer{
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  text-align: center;
  padding: 50px;
}

#seemore-btn{
  font-size: 25px;
}