@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Montserrat:wght@400;600&display=swap");

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

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

.centrer-text {
  text-align: center;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #f7f7fa;
  margin: 0;
  color: #222;
  position: relative;
  z-index: 0;
}

.conteneur {
  position: relative;
}

#eltAbsolute {
  position: absolute;
  right: 60px; 
  top: 20px; 
  transform: scale(1.25) rotate(-15deg) skewX(10deg);
  transition: transform 0.3s ease-in-out;
}

#eltAbsolute:hover {
  transform: scale(1.35) rotate(-10deg) skewX(0deg);
}

.site-wrapper {
  position: relative;
  z-index: 2;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  opacity: 0.3;
  background-image: radial-gradient(#5c5cb2 0.75px, transparent 0.75px),
    radial-gradient(#5c5cb2 0.75px, #ffffff 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  pointer-events: none;
  z-index: 0;
}

header {
  background: #ffffff;
  color: #2d2d2d;
  padding: 32px 0 18px 0;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 2.5em;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 2px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  z-index: 3;
}

.fond-principal {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(40, 40, 60, 0.07);
  padding: 36px 28px 28px 28px;
  z-index: 3;
}

.fond-section1 {
  background-color: #f8f8fc;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(40, 40, 60, 0.04);
  padding: 16px 14px;
  margin-bottom: 18px;
  z-index: 3;
}

.btn-accueil,
.bouton-aleatoire {
  display: inline-block;
  padding: 7px 20px;
  background: #3a3a7c;
  color: #fff;
  border: 1px solid #2d2d5c;
  border-radius: 6px;
  font-size: 1em;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(40, 40, 60, 0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  color: #fff !important;
  z-index: 3;
}

.btn-accueil:hover,
.bouton-aleatoire:hover {
  background: #222255;
  box-shadow: 0 2px 10px rgba(40, 40, 60, 0.16);
  transform: scale(1.06);
  color: #fff !important;
}
.center-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

a {
  color: #3a3a7c;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted #bdbde6;
  transition: color 0.2s, border-bottom 0.2s;
  z-index: 3;
}
a:hover {
  color: #222255;
  border-bottom: 1px solid #3a3a7c;
  z-index: 5;
}

.favoris-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 8px;
  z-index: 5;
}

.favoris-btn {
  display: flex;
  flex: 1 1 40%;
  min-width: 180px;
  justify-content: center;
  background: #5c5cb2;
  color: #fff;
  border: 1px solid #3a3a7c;
  border-radius: 8px;
  padding: 8px 22px;
  margin: 6px 4px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(40, 40, 60, 0.08);
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  cursor: pointer;
  z-index: 5;
}

.favoris-btn:hover,
.nav-btn:hover {
  background: #3a3a7c;
  color: #fff;
  border: 1px solid #222255;
  box-shadow: 0 2px 10px rgba(40, 40, 60, 0.16);
}

.navigation-container {
  position: relative;
  width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.navigation-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.nav-btn {
  display: inline-block;
  padding: 7px 20px;
  background: #5c5cb2;
  color: #fff;
  border: 1px solid #3a3a7c;
  border-radius: 6px;
  font-size: 1em;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(40, 40, 60, 0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  z-index: 2;
  color: #fff !important;
  z-index: 5;
}

.nav-btn-top {
  align-self: center;
}
.nav-btn-bottom {
  align-self: center;
}
.nav-btn-left {
  align-self: center;
}
.nav-btn-right {
  align-self: center;
}

@media screen and (max-width: 768px) {
  header {
    font-size: 1.9em;
    padding: 24px 0 14px 0;
  }

  .fond-principal {
    max-width: 92%;
    margin: 20px auto;
    padding: 28px 18px 20px 18px;
  }

  .navigation-container {
    width: 100%;
    padding: 0 8px;
  }

  .btn-accueil,
  .bouton-aleatoire,
  .nav-btn,
  .favoris-btn {
    padding: 16px 22px !important;
    font-size: 1.15rem !important;
    border-radius: 10px;
    min-width: 0;
    margin: 8px 0;
    display: inline-block;
    width: auto;
  }

  .favoris-btn-group {
    gap: 10px 12px;
  }

  .fond-section1 {
    padding: 12px 10px;
  }
}

@media screen and (max-width: 425px) {
  body {
    font-size: 16px;
  }

  header {
    font-size: 1.6em;
    padding: 18px 0 12px 0;
  }

  .fond-principal {
    max-width: 96%;
    margin: 12px auto;
    padding: 18px 12px;
    border-radius: 12px;
  }

  .navigation-container {
    width: 100%;
    padding: 0 6px;
  }

  .btn-accueil,
  .bouton-aleatoire,
  .nav-btn,
  .favoris-btn {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 20px 18px !important;
    font-size: 1.4rem !important;
    border-radius: 12px !important;
    margin: 10px 0 !important;
    text-align: center;
  }

  .favoris-btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .centrer img,
  .fond-principal img {
    max-width: 100%;
    height: auto;
  }

  .fond-section1 {
    padding: 10px 8px;
  }
}

.container {
  padding: 3em;
}
input, label {
  color: #6300a0;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
}

.form__group {
  padding: 1em;
}
input {
  border: 2px solid #dddde0;
  border-radius: 100rem;
  outline: none;
  padding: 0.5rem 1.5rem;
  width: 100%;
  background: #f8f8fc;
  transition : all 1s;
}

input:focus {
  border: 2px solid #6300a0;
}

input:not(:focus):invalid {
  background: #b20a37;
  border: 2px solid #b20a37;
  color: #f8f8fc;
}

.btn-submit{
  display: flex;
  flex: 1 1 40%;
  min-width: 180px;
  justify-content: center;
  background: #5c5cb2;
  color: #fff;
  border: 1px solid #3a3a7c;
  border-radius: 8px;
  padding: 8px 22px;
  margin: 6px 4px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(40, 40, 60, 0.08);
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  cursor: pointer;
  z-index: 5;
}

.btn-submit:hover{
  background: #3a3a7c;
  color: #fff;
  border: 1px solid #222255;
  box-shadow: 0 2px 10px rgba(40, 40, 60, 0.16);
}
